• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Map modes and commands, help!

Status
Not open for further replies.
Level 4
Joined
Jun 15, 2010
Messages
67
I have made the triggers like on this site: http://world-editor-tutorials.thehelper.net/herotavern.php
They are pretty good but one trigger doesn't deactivate each other, that's why I can have few heroes at once using, for example, -ar and then -random. I have tried fixing it by making variable that changes in each trigger but still can't fix the bug with (in correct order) -random and -ar. Help me if you can :(
 
Level 11
Joined
Feb 14, 2009
Messages
884
Try making a boolean array, and make your triggers check it every time they run. For example, if a player types "random", set his/her variable to True. Then, if he/she tries to type another command, have your trigger check the variable, and not run if it's true.
 
Status
Not open for further replies.
Top