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

shutting the trigger.

Status
Not open for further replies.
Level 5
Joined
Jun 8, 2008
Messages
84
hey guys! i neeed to know how to stop the trigger from acting to many units entering the region and only 1 unit.
i made a region i put a even that when a unit enters region. text shall display
hi welcome.
but when around 10 people go it comes 10 times!!!!!!!!!! how do i make it work only 1 time?
 
Level 22
Joined
Feb 4, 2005
Messages
3,971
Yes but he needs an integer condition, if his event is: a unit enters region 000,
  • Conditions
  • (Number of units in (Units in Region 000 <gen>)) Equal to 0
Actions: whatever actions, at the end of the actions you add this Trigger - turn off.

This will make only the 1st unit that enters if there are no others to activate those actions. If others come after him, it won't work for them, unless the region is empty again. But with turning the trigger off once, it won't work anymore even if more units come.
 
Level 8
Joined
Jul 22, 2008
Messages
331
  • Events
    • Unit - Unit enters bla bla <gen>
  • Actions
    • Quest - Display messsage (HI WELCOME) to all players
    • Trigger - Turn off (this triger)
You may put some condition if you want player units to be in a region. or
  • number of units in bla bla gen equals to (some number)
 
Status
Not open for further replies.
Top