- Joined
- Jun 15, 2018
- Messages
- 195
Hi,
I want to change the way resurrection works:
- The player gains control over resurrected units
This means to change owner of unit to resurection caster.
I'm using Bribe GUI Unit Event to detect Resurection. GUI Unit Event v2.5.2.0
Detect when a unit is brought back to life via Reincarnation, Resurrect or Reanimate
Event: Game - DeathEvent Becomes Equal to 2.00
You can differentiate between the three of these as well. If it is summoned, that means it was reanimated. If IsUnitReincarnating[UDex] is true, that means it finished reincarnating. Otherwise, it was simply resurrected.
How can I differ those things so it works only for paladin resurection?
I want to change the way resurrection works:
- The player gains control over resurrected units
This means to change owner of unit to resurection caster.
I'm using Bribe GUI Unit Event to detect Resurection. GUI Unit Event v2.5.2.0
Detect when a unit is brought back to life via Reincarnation, Resurrect or Reanimate
Event: Game - DeathEvent Becomes Equal to 2.00
You can differentiate between the three of these as well. If it is summoned, that means it was reanimated. If IsUnitReincarnating[UDex] is true, that means it finished reincarnating. Otherwise, it was simply resurrected.
-
SetTempPala
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Resurrection
-
-
Actions
-
Set VariableSet TempPala = (Triggering unit)
-
-
-
On Revival
-
Events
-
Game - DeathEvent becomes Equal to 2.00
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
IsUnitReincarnating[UDex] Equal to True
-
-
Then - Actions
-
Else - Actions
-
Unit - Change ownership of UDexUnits[UDex] to (Owner of TempPala) and Change color
-
-
-
-
How can I differ those things so it works only for paladin resurection?