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?
 
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.
 
  • 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.
Back
Top