Variables

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

Kala-cha
Forum Addict
Posts: 405
Joined: February 17th, 2007, 9:16 pm

Variables

Post 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?
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Post 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.
Kala-cha
Forum Addict
Posts: 405
Joined: February 17th, 2007, 9:16 pm

Post 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