- Joined
- Nov 9, 2006
- Messages
- 2,561
My brain is just not working today.
The problem is that i cant make the second push here, only the first.
Every time i use the spell the second dummy throwes the crate a way long other place for some reason.
I'd also like to know how i can select all units in an area without using pick unit group triggers...
The problem is that i cant make the second push here, only the first.
Every time i use the spell the second dummy throwes the crate a way long other place for some reason.
I'd also like to know how i can select all units in an area without using pick unit group triggers...
-
Static Field
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Static Field
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in (Units within (((Real((Level of Static Field for (Triggering unit)))) x 10.00) + 240.00) of (Target point of ability being cast) matching ((((Matching unit) is alive) Equal to True) and ((Unit-type of (Matching unit)) Equal to Levitated C Greater than 0
-
Then - Actions
- Unit Group - Pick every unit in (Units within (((Real((Level of Static Field for (Triggering unit)))) x 10.00) + 240.00) of (Target point of ability being cast) matching ((((Matching unit) is alive) Equal to True) and ((Unit-type of (Matching unit)) Equal to Levitated Crate))) and do (Unit Group - Add (Picked unit) to StaticFieldGroup)
- -------- --------
- Set StaticFieldTarget = (Random unit from StaticFieldGroup)
- Unit Group - Remove StaticFieldTarget from StaticFieldGroup
- Unit Group - Remove StaticFieldTarget from MaximumFloatingObjects
- Special Effect - Create a special effect at (Position of StaticFieldTarget) using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
- Special Effect - Destroy (Last created special effect)
- -------- --------
- Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Target point of ability being cast) facing (Position of StaticFieldTarget)
- Set FacingAngleVariable = (Facing of (Last created unit))
- Unit - Remove (Last created unit) from the game
- -------- --------
- Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at ((Target point of ability being cast) offset by ((Distance between (Position of StaticFieldTarget) and (Target point of ability being cast)) x 4.00) towards FacingAngleVariable degrees) facing (Target point of ability being cast)
- Set StaticFieldPoint = (Position of (Last created unit))
- Unit - Remove (Last created unit) from the game
- -------- --------
- Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Position of StaticFieldTarget) facing StaticFieldPoint
- Unit - Add Throw Object (Mados) to (Last created unit)
- Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Breath Of Fire StaticFieldPoint
- Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
- Unit - Remove StaticFieldTarget from the game
- Custom script: call RemoveLocation(udg_StaticFieldPoint)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in StaticFieldGroup) Greater than 0
-
Then - Actions
- Set StaticFieldTarget = (Random unit from StaticFieldGroup)
- Unit Group - Remove StaticFieldTarget from StaticFieldGroup
- Unit Group - Remove StaticFieldTarget from MaximumFloatingObjects
- Special Effect - Create a special effect at (Position of StaticFieldTarget) using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
- Special Effect - Destroy (Last created special effect)
- -------- --------
- Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Target point of ability being cast) facing (Position of StaticFieldTarget)
- Set FacingAngleVariable = (Facing of (Last created unit))
- Unit - Remove (Last created unit) from the game
- -------- --------
- Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at ((Target point of ability being cast) offset by ((Distance between (Position of StaticFieldTarget) and (Target point of ability being cast)) x 4.00) towards FacingAngleVariable degrees) facing (Target point of ability being cast)
- Set StaticFieldPoint = (Position of (Last created unit))
- Unit - Remove (Last created unit) from the game
- -------- --------
- Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Position of StaticFieldTarget) facing StaticFieldPoint
- Unit - Add Throw Object (Mados) to (Last created unit)
- Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Breath Of Fire StaticFieldPoint
- Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
- Unit - Remove StaticFieldTarget from the game
- Custom script: call RemoveLocation(udg_StaticFieldPoint)
- Unit Group - Pick every unit in StaticFieldGroup and do (Unit Group - Remove (Picked unit) from StaticFieldGroup)
- Else - Actions
-
If - Conditions
-
Else - Actions
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: Select an area with...
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events