All pastes #2049748 Raw Edit

Something

public text v1 · immutable
#2049748 ·published 2011-04-23 14:52 UTC
rendered paste body
Revive
    Events
        Unit - Any Unit dies
    Local Variables
        Hero = No Unit <Unit>
        TimerWindow = No Timer Window <Timer Window>
        TimerWindow 2 = No Timer Window <Timer Window>
        Home = No Region <Region>
    Conditions
        ((Triggering unit) is in Heroes) == true
    Actions
        Variable - Set Hero = (Triggering unit)
        Timer - Start ReviveTimer[(Owner of Hero)] as a One Shot timer that will expire in 30.0 Game Time seconds
        Timer - Create a timer window for ReviveTimer[(Owner of Hero)], with the title "Reviving in:", using Remaining time (initially Hidden)
        Timer - Show (Last created timer window) for (Player group((Owner of Hero)))
        Variable - Set TimerWindow = (Last created timer window)
        Timer - Create a timer window for ReviveTimer[(Owner of Hero)], with the title ((Name of player (Owner of Hero)) + " reviving in:"), using Remaining time (initially Hidden)
        Timer - Show (Last created timer window) for (Allies of player (Owner of Hero))
        Variable - Set TimerWindow 2 = (Last created timer window)
        General - Wait for ReviveTimer[(Owner of Hero)] to have 0.0 seconds Remaining
        Timer - Destroy TimerWindow
        Timer - Destroy TimerWindow 2
        Unit - Revive Hero
        ...