Page 1 of 1

Variables

Posted: April 30th, 2007, 4:22 am
by Kala-cha
How do variables work? Like in cheats, someone types -gogogo, and it enables cheats and only for them... how do I make that happen?

Posted: April 30th, 2007, 4:30 am
by Xantan
I personally suggest you use a player group variable...

Ie, go to the trigger editor, hit ctrl+b (open variables menu)
make a new variable, any name will work, then choose player group for the type, not array, and leave the default the same.

Then, when someone types -gogo add them to the player group.

Now, add a condition on all your cheats if the player (triggering player) is in the player group (your variable) equal to true

yes, boalean..
if you need more help on this, let me know, was just rushing to answer before I go to bed.

Posted: April 30th, 2007, 4:37 am
by Kala-cha
Alright, I'll try this, thanks again Xantan. XD
(Edit) YOU JUST MADE CHEATING MAPS SO MUCH EASIER FOR ME. lol XD