• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Revive Heros at random region

Status
Not open for further replies.
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).
 
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