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

A saving trigger...

Status
Not open for further replies.
Level 7
Joined
Jan 2, 2008
Messages
77
(Sorry for my bad english:hohum:) Hi again guys! Can someone tell to me, how create a trigger what creates Circle of Power to position of dying unit, and when unit enters to the Circle of Power, the dying unit comes back to life to dying position. Thank you so much!!:grin::thumbs_up:
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
well i know one way but its not MUI
  • Events
    • Unit - a Unit dies
  • Actions
    • create circle of power at position of dying Unit
    • set last created unit = revive_circle
    • set triggering Unit = deadhero
  • Events
    • a Unit comes within 50 of revive_circle
  • Actions
    • revive <deadhero>
    • remove revivecircle from the game
    • set deadhero = no Unit
    • set revive_circle =no Unit
add conditions where you need them
 
Level 4
Joined
Apr 30, 2008
Messages
111
Re

Code:
Die
    Events
        Unit - A unit Die
    Conditions
        (Unit-type of (Dying unit)) Equal to >your unit<
    Actions
       Unit - Create 1 >Circle< for (Owner of (Dying unit)) at (Position of (Dying unit))

Code:
Unit enters Circle
    Events
        Unit - A unit enters (your region)
    Conditions
        (Unit-type of (Entering unit)) Gleich >your unit<
    Actions
        Unit - Replace (Dying unit) with a ><your unit that died before< using Old Unit: Rel.  life and mana
 
Status
Not open for further replies.
Top