- Joined
- Oct 8, 2005
- Messages
- 298
Ok heres the trigger for my ability:
for some reason it only creates the first unit. WHY?!
Code:
Wake of Death
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Wake of Death
Actions
Set ATempRegion = ((Position of (Casting unit)) offset by 125.00 towards ((Facing of (Casting unit)) + 90.00) degrees)
Unit - Create 1 Dummy unit for (Owner of (Casting unit)) at ATempRegion facing (Facing of (Casting unit)) degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Wake of Death to (Last created unit)
Unit - Set level of Wake of Death for (Last created unit) to (Level of Wake of Death for (Casting unit))
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Position of (Last created unit)) offset by 100.00 towards (Facing of (Casting unit)) degrees)
Custom script: call RemoveLocation (udg_ATempRegion)
Set ATempRegion = ((Position of (Casting unit)) offset by 250.00 towards ((Facing of (Casting unit)) + 90.00) degrees)
Unit - Create 1 Dummy unit for (Owner of (Casting unit)) at ATempRegion facing (Facing of (Casting unit)) degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Wake of Death to (Last created unit)
Unit - Set level of Wake of Death for (Last created unit) to (Level of Wake of Death for (Casting unit))
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Position of (Last created unit)) offset by 100.00 towards (Facing of (Casting unit)) degrees)
Custom script: call RemoveLocation (udg_ATempRegion)
Set ATempRegion = ((Position of (Casting unit)) offset by 375.00 towards ((Facing of (Casting unit)) + 90.00) degrees)
Unit - Create 1 Dummy unit for (Owner of (Casting unit)) at ATempRegion facing (Facing of (Casting unit)) degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Wake of Death to (Last created unit)
Unit - Set level of Wake of Death for (Last created unit) to (Level of Wake of Death for (Casting unit))
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Position of (Last created unit)) offset by 100.00 towards (Facing of (Casting unit)) degrees)
Custom script: call RemoveLocation (udg_ATempRegion)
Set ATempRegion = ((Position of (Casting unit)) offset by 125.00 towards ((Facing of (Casting unit)) - 90.00) degrees)
Unit - Create 1 Dummy unit for (Owner of (Casting unit)) at ATempRegion facing (Facing of (Casting unit)) degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Wake of Death to (Last created unit)
Unit - Set level of Wake of Death for (Last created unit) to (Level of Wake of Death for (Casting unit))
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Position of (Last created unit)) offset by 100.00 towards (Facing of (Casting unit)) degrees)
Custom script: call RemoveLocation (udg_ATempRegion)
Set ATempRegion = ((Position of (Casting unit)) offset by 250.00 towards ((Facing of (Casting unit)) - 90.00) degrees)
Unit - Create 1 Dummy unit for (Owner of (Casting unit)) at ATempRegion facing (Facing of (Casting unit)) degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Wake of Death to (Last created unit)
Unit - Set level of Wake of Death for (Last created unit) to (Level of Wake of Death for (Casting unit))
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Position of (Last created unit)) offset by 100.00 towards (Facing of (Casting unit)) degrees)
Custom script: call RemoveLocation (udg_ATempRegion)
Set ATempRegion = ((Position of (Casting unit)) offset by 375.00 towards ((Facing of (Casting unit)) - 90.00) degrees)
Unit - Create 1 Dummy unit for (Owner of (Casting unit)) at ATempRegion facing (Facing of (Casting unit)) degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Wake of Death to (Last created unit)
Unit - Set level of Wake of Death for (Last created unit) to (Level of Wake of Death for (Casting unit))
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Position of (Last created unit)) offset by 100.00 towards (Facing of (Casting unit)) degrees)
Custom script: call RemoveLocation (udg_ATempRegion)
for some reason it only creates the first unit. WHY?!