• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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