- Joined
- Jan 21, 2009
- Messages
- 57
So i'm currently attempting to make a TD, and one of the towers has a percentage chance to cast 3 different spells.
I've gotten the spell casting to work properly, problem is i can't figure out how to remove the dummy for the spell casting, could anyone help me with this?
Here's one of the spells, they're all based off each other with different chances..
I've gotten the spell casting to work properly, problem is i can't figure out how to remove the dummy for the spell casting, could anyone help me with this?
Here's one of the spells, they're all based off each other with different chances..
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Random integer number between 1 and 20) Equal to 20
-
Then - Actions
- Unit - Create 1 Spell Monolith Dummy for (Owner of (Attacking unit)) at ((Position of (Attacking unit)) offset by (0.00, 0.00)) facing (Position of (Attacking unit))
- Set monolith_dummy[(Player number of (Owner of (Attacking unit)))] = (Last created unit)
- Unit - Order (Last created unit) to Special Archimonde - Finger Of Death (Attacked unit)
- Wait 2.00 seconds
- Unit - Remove monolith_dummy[(Player number of (Owner of (Attacking unit)))] from the game
- Else - Actions
-
If - Conditions