Warcraft III resources & community, 2003–2006 · archived

Trigger questions

4 posts
#1

Trigger questions

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]...
#2
EVENT
UNIT DIE
CONDITION
(unit comparsion):= DYING UNIT = Hero
Actiom
wait rnd(1-7)
Revive instantly dying unit at needed point.
#3
ok, vampires one was really hard to understand, using nonexistant funtions. :).
Here's one which should work.


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
#4
hmm.. i think this will help my ragewar... till now its only been 30 secs all lvls...
HAHAHAHA good thing to update with :)