mOoEyThEcOw
New Member
- Reaction score
- 3
1st thiis spell dosnt work, its basaically when the unit dies if it had the explode on death spell cast on it it blows up (courtusy of the dummy)
p.s. how do you order units to cast specific spell (im guessing you just order them to cast the original spell you modify/copy?)
2nd how does hero xp work (ie how is it determined how much xp he gets from killing unit x compared to unit y)
Code:
Spell Goblin Sabotage
Events
Unit - A unit Dies
Conditions
((Triggering unit) has buff Sabotage ) Equal to True
Actions
Set TempLL_Unit = (Position of (Dying unit))
Unit - Create 1 Dummy for Player 12 (Brown) at (Position of (Dying unit)) facing Default building facing degrees
Unit - Add Explode (Goblin Hero Sabotage) to (Last created unit)
Unit - Order (Last created unit) to Neutral - Kaboom! (Last created unit)
Custom script: call RemoveLocation (udg_TempLL_Unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
p.s. how do you order units to cast specific spell (im guessing you just order them to cast the original spell you modify/copy?)
2nd how does hero xp work (ie how is it determined how much xp he gets from killing unit x compared to unit y)