Author Topic: OnPlayerSay event?  (Read 3057 times)

onRelay>Self>VCE_isValue(NOT VARIABLE!)>[<var:cl:lastMessage> == [whatever]
oops....Im kinda new at VCE :P

onRelay>Self>VCE_isValue(NOT VARIABLE!)>[<var:cl:lastMessage> == [whatever]
im maing a bot and if you want to sell somthing you have to click it and it says "what would you like to sell?" Then right when you say like "food" or somthin it immediatly trigers the event. with what you told me i have to click him again to trigger the events. This is what i want the event i want to do. 


im maing a bot and if you want to sell somthing you have to click it and it says "what would you like to sell?" Then right when you say like "food" or somthin it immediatly trigers the event. with what you told me i have to click him again to trigger the events. This is what i want the event i want to do. 
impossible without mods.

nobody has made a mod yet.

impossible without mods.

nobody has made a mod yet.
is it possible to make though?

Seems possible, but you would need some more complex events and some extra triggers.


impossible without mods.

nobody has made a mod yet.
Seems possible, but you would need some more complex events and some extra triggers.
Onbotactivated > Client > Chatmsg/cntrprint > "Speech"
Onbotactivated > Player > VCEmodvariable > 'options' = 1
Onrelay > Player >VCE_isValue(options = 1) [4 5] <-apply to a brick below perhaps?
Onvartrue > Player > var:lstmsg = "speech" [6 7]
Onvartrue > Player > var:lstmsg = "speech" [8 9]
Onvartrue > stuff
Onvartrue > stuff
Onvartrue > stuff
Onvartrue > stuff

That basically it.

Onbotactivated > Client > Chatmsg/cntrprint > "Speech"
Onbotactivated > Player > VCEmodvariable > 'options' = 1
Onrelay > Player >VCE_isValue(options = 1) [4 5] <-apply to a brick below perhaps?
Onvartrue > Player > var:lstmsg = "speech" [6 7]
Onvartrue > Player > var:lstmsg = "speech" [8 9]
Onvartrue > stuff
Onvartrue > stuff
Onvartrue > stuff
Onvartrue > stuff

That basically it.
Ive already got it. I can do OnChatMessage<Self<IfLastMessage<HI
and that instnatly does somthing when you say that spesific thing and i even tested it. I wanted to make it so you have to type like idk /HI not just hi becase in my RPG what if you say what you want to sell it will sell it and what if they just say it randomly and they didnt want ot sell that item? I kiinda wanna make it like a command event :P

Ive already got it. I can do OnChatMessage<Self<IfLastMessage<HI
and that instnatly does somthing when you say that spesific thing and i even tested it. I wanted to make it so you have to type like idk /HI not just hi becase in my RPG what if you say what you want to sell it will sell it and what if they just say it randomly and they didnt want ot sell that item? I kiinda wanna make it like a command event :P
if you're going to do this with events, there has to be a brick that you activate, whether it's the platform you stand on, or the bot you click in front of you.

you literally cannot do this without relays, but relays will be extremely hacky.

stick to the talk -> click bot.

you can still do <var:cl:lastmsg> = /hi

if you're going to do this with events, there has to be a brick that you activate, whether it's the platform you stand on, or the bot you click in front of you.

you literally cannot do this without relays, but relays will be extremely hacky.

stick to the talk -> click bot.

you can still do <var:cl:lastmsg> = /hi
oh okay thanks



Could you trade with a bot?
no, because bots can't join minigames.

that honestly has nothing to do with this. you just need to learn variables.

no, because bots can't join minigames.

My AdvBots add-on has bots that can join mini-games and drive vehicles.