• 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.

Trigger questions

Status
Not open for further replies.
Level 3
Joined
Jul 23, 2005
Messages
25
How I can revive a hero when a countdown finishes and move instantly a place?, and how I can change the countdown timer depending on the hero lvl? (example ^[lvl 1 = 5 seconds wait], [lvl 2 = 7 seconds wait]...
 
Level 6
Joined
Aug 29, 2004
Messages
159
ok, vampires one was really hard to understand, using nonexistant funtions. :).
Here's one which should work.

Code:
Herodeath
    Events
        Unit - A unit Dies
    Conditions
        ((Dying unit) is A Hero) Equal to True
    Actions
        Countdown Timer - Start HeroDeathTimer[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in (28.00 + (2.00 x (Real((Hero level of (Dying unit)))))) seconds
        Countdown Timer - Create a timer window for (Last started timer) with title (Name of (Owner of (Dying unit)))
        Wait until ((Remaining time for HeroDeathTimer[(Player number of (Owner of (Dying unit)))]) Equal to 0.00), checking every 1.00 seconds
        Countdown Timer - Destroy (Last created timer window)
        Camera - Pan camera for (Owner of (Dying unit)) to (Position of ReviveRegion[(Player number of (Owner of (Dying unit)))]) over 0.00 seconds
        Hero - Instantly revive (Dying unit) at (Position of ReviveRegion[(Player number of (Owner of (Dying unit)))]), Show revival graphics

Yeah. Change the 28 seconds to whatever you want, i just used that so that it would take 30 seconds on level one. You'd probably want (3 + 2xHerolevel)

Hope that works
=][= Bort
 
Status
Not open for further replies.
Top