Author Topic: Interactive Bots  (Read 586 times)

I need some help on this.

How would I get bots that stay in one place, and they could tell you something. Say like, the bot told me to get a coin to get past him, and when I give him his toll, he lets me through.

I also need to know how to get these bots.... :panda: DURRR

Download bot events here to get bots.

For the coin to pass part, this is basically what you have to do for it
http://www.youtube.com/watch?v=issPw6iKlcw
But instead of OnActivate, it would be OnBotActivate. And some other events need to be changed, but I'm sure you have figure it out.

OnBotActivated>Client>VCE_ModVariable>m(or anything you want to call your money this is just the call)>Subtract>1
OnBotActivated>Client>ChatMessage>You have given the guard 1 Coin
OnBotActivated>Client>ChatMessage>You now have <var:cl:(what you called your money)> left.

OnBotActivated > Client > VCE_ifVariable > money >= 1
OnVariableFalse > Client > chatMessage > <color:FFFF33>Guard<color:FFFFFF>: I'll let you pass if you give me a coin.
OnVariableTrue > Client > chatMessage > <color:FFFF33>Guard<color:FFFFFF>: Thanks, you can pass now.
OnVariableTrue > Client > VCE_modVariable > money -= 1
OnVariableTrue > NAMED BRICK: (other side of gate or whatever) > setPlayerTransform > Relative 1 0

Or you can make the gate disappear temporarily, but if it closes before the player gets through, it can be a bit annoying.

You could probably give the client a variable that says they have clearance to open the gate from one side at any time, I guess.