• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Revive Heros at random region

Status
Not open for further replies.
Level 28
Joined
Jan 26, 2007
Messages
4,789
Instead of saying "Like in [some map]", explain the problem properly.
Well, from what I can derive, something like this should work (warning: extremely basic):

  • Setup Locations
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set heroReviveLoc[0] = (Center of Region 000 <gen>)
      • Set heroReviveLoc[1] = (Center of Region 001 <gen>)
      • Set heroReviveLoc[2] = (Center of Region 002 <gen>)
      • Set heroReviveLoc[3] = (Center of Region 003 <gen>)
  • Revive Hero
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Wait 10.00 seconds
      • Hero - Instantly revive (Triggering unit) at heroReviveLoc[(Random integer number between 0 and 3)], Show revival graphics
(Tip: moving the camera of the player to the reviving hero is always nice. Selecting the hero for the player as well, if there are no other units to control).
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Tank-Commander is correct though. The reason I put in waits was because...
Pax said:
im new in this thing of making maps
So I said
ap0calypse said:
(warning: extremely basic)

Using a timer is more accurate and more useful in many instances, but I have a feeling that Pax won't really learn anything from that (the step is too big).
Well, that's just what I thought. You're still correct about the waits :)
 
Status
Not open for further replies.
Top