Author Topic: How to use variables  (Read 402 times)

So mostly i keep hearing about these vars. i never really figured it out,  could someone tell me how to use them and what they can be used for.


put these on a brick


onactivate>player>setvariable[killer] [1]
onactivate>self>firerelay
onrelay>self>firerelay
onrelay>self>ifvariable[killer] [1]
variabletrue>player>addhealth[100]
variabletrue>player>spawnexplosion>arrow[1.000]
variabletrue>client>bottom>You are invincible!

that will make you emit a grey smoke and will make you un-killable in minigames...

http://returntoblockland.com/forums/viewtopic.php?t=7163

This is the link to a tutorial I wrote on RTB. It should tell you everything you need.


put these on a brick


onactivate>player>setvariable[killer] [1]
onactivate>self>firerelay
onrelay>self>firerelay
onrelay>self>ifvariable[killer] [1]
variabletrue>player>addhealth[100]
variabletrue>player>spawnexplosion>arrow[1.000]
variabletrue>client>bottom>You are invincible!

that will make you emit a grey smoke and will make you un-killable in minigames...
have somebody hit you straight on with a sniper/rocket or 5-10 zombies or swords

OK, you should lock this topic before people like me come in and post.

To kill that invincible variabled Blockhead, you'd all have to shoot it with sniper rifles at once.
Epic, no?