• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Stay time unit in region

Status
Not open for further replies.
Level 5
Joined
May 21, 2011
Messages
56
ok!

when a unit stay more than 20 seconds in a region to teleport(move instantly) that unit to another region.

  • Events
    • Unit - A unit is in region <x1>
  • Conditions
    • Time elapsed by that unit is equal to 20 seconds
  • Actions
    • Move that unit instantly to region <x2>
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Ohhh...
A unit dies = leaves region, right ?
LOGIC, lol!

  • Dies
    • Events
      • Unit - A unit Dies
      • Unit - A unit leaves TeleportRegion <gen>
    • Conditions
      • ((Triggering unit) is in TeleportGroup) Equal to True
    • Actions
      • Unit Group - Remove (Triggering unit) from TeleportGroup
      • Hashtable - Clear all child hashtables of child (Key(Triggering unit)) in Hashtable
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (TeleportGroup is empty) Equal to True
        • Then - Actions
          • Trigger - Turn off Interval Check <gen>
          • Trigger - Turn off (This trigger)
        • Else - Actions
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
What I understood is, when you "die", it is automatically referred as you "leave" the region, because you "died", get it ?

Is the mechanism of the trigger works like that Maker ?

Btw, why at the initial action, you didn't set any Handle ID ?
Isn't we suppose to set Handle ID for each new Event occur ? (check my test map, you'll understand what I said)

Or am I wrong here ?

Should we not set Handle ID ?
 
Status
Not open for further replies.
Top