Hello , how can i make this trigger(s) MUI?
The trigger does like this
whenever a hero die hes getting a spirit and a grave then he gots to move the spirit to the grave and then revive the hero at that pos.
+rep for helpers.
The trigger does like this
whenever a hero die hes getting a spirit and a grave then he gots to move the spirit to the grave and then revive the hero at that pos.
Trigger:
- Dead
- Events
- Unit - A unit Dies
- Conditions
- ((Dying unit) is A Hero) Equal to True
- ((Owner of (Dying unit)) controller) Equal to User
- Actions
- Set Hero = (Dying unit)
- Set Deadpos = (Center of Spawn Region <gen>)
- Set Herodead = (Position of (Dying unit))
- Unit - Create 1 Spirit of Paladin for (Owner of (Dying unit)) at Deadpos facing Default building facing degrees
- Camera - Pan camera for (Owner of Hero) to Deadpos over 3.00 seconds
- Animation - Change (Last created unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 50.00% transparency
- Set Spirit = (Last created unit)
- Unit - Add Dead Hero to (Last created unit)
- Unit - Add Ping Corpes to (Last created unit)
- Unit - Create 1 (Unit-type of Hero) for Neutral Passive at Herodead facing Default building facing degrees
- Animation - Play (Last created unit)'s death animation
- Unit - Add Invulnerable (Neutral) to (Last created unit)
- Unit - Pause (Last created unit)
- Set corpes = (Last created unit)
- Custom script: call RemoveLocation (udg_Deadpos)
- Custom script: call RemoveLocation (udg_Herodead)
- Events
Trigger:
- add abillity
- Events
- Time - Every 0.5 seconds of game time
- Conditions
- Actions
- Set unitgr = (Units within 500.00 of (Position of corpes))
- Unit Group - Pick every unit in unitgr and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Unit-type of (Picked unit)) Equal to Spirit of Paladin
- Then - Actions
- Unit - Add Revive to (Picked unit)
- Unit - Remove Ping Corpes from (Picked unit)
- Unit - Remove Dead Hero from (Picked unit)
- Else - Actions
- Custom script: call DestroyGroup (udg_unitgr)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Events
Trigger:
- revive
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Revive
- Actions
- Set Herodead = (Position of corpes)
- Hero - Instantly revive Hero at Herodead, Show revival graphics
- Unit - Set mana of Hero to 50.00%
- Unit - Set life of Hero to 50.00%
- Unit - Remove corpes from the game
- Unit - Remove Spirit from the game
- Set Hero = No unit
- Set corpes = No unit
- Set Spirit = No unit
- Custom script: call RemoveLocation (udg_Herodead)
- Events
Trigger:
- Spell
- Events
- Unit - A unit Finishes reviving
- Conditions
- (Reviving Hero) Equal to Hero
- Actions
- Set Herodead = (Position of corpes)
- Unit - Create 1 DUMMY for (Owner of Hero) at Herodead facing Default building facing degrees
- Unit - Add Protection to (Last created unit)
- Unit - Order (Last created unit) to Human Priest - Inner Fire (Triggering unit)
- Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_Herodead)
- Events
Trigger:
- Protection
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Protection
- Actions
- Set protect = (Target unit of ability being cast)
- Unit - Add Invulnerable (Neutral) to protect
- Wait 10.00 seconds
- Unit - Remove Invulnerable (Neutral) from protect
- Set protect = No unit
- Events
+rep for helpers.