Author Topic: I need some bot event help.  (Read 749 times)

How do I make it so you can click a bot and it gives you choices on what you want it to do?
    Example:<Clicks bot> "What training would you like? Non moving targets or moving targets?" <chooses non  moving targets> "Non moving targets selected" <non moving targets pop up on bricks>

How do I make bots jump when needed?
    Example:Your "pet" bot is following you and you find a lava hole, you jump over it and then your bot jumps over and you continue on your way.

How do I make it so Bots kill other players but not me?
    Example:You make a bot to guard you so you can edit while in a DM, a few players come over and try to attack you but your bot kills them with a minigun. You are unharmed.

How do I make it so bots will attack a certain TDM team?
    Example:You make a bot for the Blue team and it goes and kills the Red team sniper. Then it runs back to the base.

How do I make it so a bot activates something?
    Example:I make a bot and it goes and clicks a brick, a Ball is released above it and crushes it.

onbotactivated>client>prompt[yes/no][Would you like moving targets?]
onpromptaccept and so on

for the bot activating something
onbotspawn>bot>setmovement[bottobrick][plate next to button]
onbotspawn>bot>setaim[brick][button name] delayed
onbotspawn>bot>playanimation[right arm up] delayed
onbotspawn>namedbrick>dissapear(release the ball) delayed

I need help with these questions too. Also, I dread today...9/11...

1. How do I make it so you can click a bot and it gives you choices on what you want it to do?
    Example:<Clicks bot> "What training would you like? Non moving targets or moving targets?" <chooses non  moving targets> "Non moving targets selected" <non moving targets pop up on bricks>


2. How do I make bots jump when needed?
    Example:Your "pet" bot is following you and you find a lava hole, you jump over it and then your bot jumps over and you continue on your way.


3. How do I make it so Bots kill other players but not me?
    Example:You make a bot to guard you so you can edit while in a DM, a few players come over and try to attack you but your bot kills them with a minigun. You are unharmed.


4. How do I make it so bots will attack a certain TDM team?
    Example:You make a bot for the Blue team and it goes and kills the Red team sniper. Then it runs back to the base.


5. How do I make it so a bot activates something?
    Example:I make a bot and it goes and clicks a brick, a Ball is released above it and crushes it.

1.Varlinks.
Code: [Select]
onBotActivate -> Client -> chatMsg -> <varlink:Option1_choice:1> or <varlink:Option2_choice:2>
onVariableUpdate -> Self -> VCE_ifValue -> <var:cl:choice> -> Equals -> 1
onVariableTrue -> Client -> chatMsg -> You selected Option1!
onVariableFalse -> Client -> chatMsg -> You selected Option2!

2.Have a brick on the edge of the lava hole then when a bot touches it, the bot jumps.

3. Make it so the bots aren't aggressive and have them attack team 'Monsters'. For all the bots you want your ally to attack, set their team to 'Monsters'.

4. When the bot spawns, make it attack team 'Red'. Then for all players on the read team, make a brick that only they can pass through, and when they do set their team to 'Red'.

5. I don't believe bots can click, but you can make a onBotTouch on the brick to check if the bot has a certain variable to release the ball.

Then for all players on the red team,

Fixed.
Also, thanks for the help. This works for me too. You seem to be good with VCE. Could you PM me a small basic tutorial, Orthone?


Varlinks are bork for some people.


http://wiki.returntoblockland.com/index.php?title=Amade%27s_Bot_Events

The article could still actually use alot of work. It was last updated by me a few months ago and my knowledge is still limited.