• 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.

[Trigger] Very wierd problem plz help -.-

Status
Not open for further replies.
Level 8
Joined
Sep 24, 2007
Messages
300
If I say in one word: It just looks stupid. Trigger is basicaly made for moving heroes in arena. It all works, just one easy part is messing around.

Bug: The first text is displayed but when "WAIT" action appears it doesn't want to show the second text.

Look at the image. It tells you a lot. Also, if you want an empty map with the trigger just say it, I will give you the link.

Plz help!

image: http://www2.arnes.si/~kferja2/trigger.jpg
 
Level 10
Joined
Jul 14, 2004
Messages
463
Just make a unit group variable and set it to "Units in LOTR arena"; then Pick every unit in your created group and hide it, show your text messages as before (not in the pick unit loop, just following to it) and finally add a "Pick every unit in YourGroup and do Unhide (Picked unit)". This should have the effect you wanted to get. :wink:
 
Level 8
Joined
Sep 24, 2007
Messages
300

Attachments

  • again.jpg
    again.jpg
    65.6 KB · Views: 104
Level 40
Joined
Dec 14, 2005
Messages
10,532
Waits are fine in if/then/else as well as loops, as well as unit groups. The problem with them being in unit groups is that it causes a wait before going to the next unit, not only within that unit's block. (aka if you have wait 1s in a unit group, instead of going (unit1... go to unit2 while waiting in unit1) it goes (unit1... wait... unit2... wait... unit3)
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
Indeed.

A way you could "solve this" would be by "faking" a loop. All you do is something like:
- as long as the unit group isn't empty do:
- Set Unit_Var = first of the unit group
- Unit - remove Unit_Var from the unit group
- Trigger - run this trigger
- Wait 1 second
- Do your actions with the unit

it's not going to be very easy to do this in GUI or make it mui though...
 
Status
Not open for further replies.
Top