- Joined
- Sep 10, 2006
- Messages
- 185
I'm making a trigger for a tower, that a second after being attacked, the units will become intoxicated by toxic sludge, and this is what I've made... however it doesn't work. (Tried to make it MUI)
=[ any ideas? Any glaring mistakes?
=[ any ideas? Any glaring mistakes?
-
Sewage
-
Events
- Unit - A unit Is attacked
-
Conditions
- (Unit-type of (Attacking unit)) Equal to Ancient of Wonders
- (Owner of (Attacked unit)) Equal to Player 10 (Light Blue)
-
Actions
- -------- Locals --------
- Custom script: local unit udg_SewageDummy
- Custom script: local unit udg_SewageTarget
- Custom script: local location udg_SewagePosCast
- -------- Set Variables --------
- Set SewageTarget = (Attacked unit)
- Set SewagePosCast = (Position of (Attacking unit))
- Unit - Create 1 Toxic Sewage (Dummy) for (Owner of (Attacking unit)) at SewagePosCast facing (Facing of (Attacking unit)) degrees
- Set SewageDummy = (Last created unit)
- -------- Action --------
- Unit - Add Toxic Sludge (Poison, Sewage) Dummy to SewageDummy
- Wait 1.00 seconds
- Unit - Order SewageDummy to Neutral Alchemist - Acid Bomb SewageTarget
- -------- Leak Clean up --------
- Custom script: call RemoveLocation(udg_SewagePosCast)
- -------- Null locals --------
- Custom script: set udg_SewagePosCast = null
- Custom script: set udg_SewageDummy = null
- Custom script: set udg_SewageTarget = null
-
Events