Warcraft III resources & community, 2003–2006 · archived

Trigger Help

4 posts
#1

Trigger Help

How can I write a trigger that allows people to repick in my rpg, but if they try to repick again it doesn't allow it?
#2
have a boolean for each player called 'repicked(then the player number)' which have a value of false.

when the player types -repick or however you do it, set their repick var to true.

for the triggers condition, you say 'repick(player num of player) equal to false'
#3
PurplePoothave a boolean for each player called 'repicked(then the player number)' which have a value of false.

when the player types -repick or however you do it, set their repick var to true.

for the triggers condition, you say 'repick(player num of player) equal to false'


sorry can u write it how i could do it in the WE editor im newb at finding triggers

Edit: Nvm Thanks I got it!
#4
Variable used
Repick Boolean Array


Events:
Player - Player <1 to 12> (Red) types a chat message containing -repick as An exact match

Conditions
Repick[(Player number of (Triggering player))] Equal to False

Actions
Set Repick[(Player number of (Triggering player))] = True

and your other actions....