- Joined
- Apr 9, 2004
- Messages
- 502
Here's the triggers i made for what i wanted to be a simple nova pushback spell that delas more dmaage the closer you were. here are the two trigs:
RP setup
Events
Unit - Glacial Pandaren 0014 <gen> Starts the effect of an ability
Conditions
(Ability being cast) Equal to Reverse Polarity
Actions
Set RP_distanceReal = 20.00
Set NovaAnglereleaseFrost = 0.00
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Unit - Create 1 Reverse Polarity Unit for (Owner of Glacial Pandaren 0014 <gen>) at ((Position of Glacial Pandaren 0014 <gen>) offset by 35.00 towards NovaAnglereleaseFrost degrees) facing Default building facing degrees
Set NovaAnglereleaseFrost = (NovaAnglereleaseFrost + 60.00)
Trigger - Turn on RP Move Units back <gen>
And the other one
RP Move Units back
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RP_distanceReal Greater than or equal to (500.00 + (((Max life of Glacial Pandaren 0014 <gen>) - (Life of Glacial Pandaren 0014 <gen>)) / 3.00))
Then - Actions
Unit Group - Pick every unit in (Units of type Reverse Polarity Unit) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Trigger - Turn off (This trigger)
Else - Actions
Set RP_distanceReal = (RP_distanceReal + 1.00)
Unit Group - Pick every unit in (Units of type Reverse Polarity Unit) and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to ((Position of Glacial Pandaren 0014 <gen>) offset by RP_distanceReal towards (Angle from (Position of Glacial Pandaren 0014 <gen>) to (Position of (Picked unit))) degrees)
Unit Group - Pick every unit in (Units within RP_distanceReal of (Position of Glacial Pandaren 0014 <gen>) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) Equal to (Random player from (All enemies o and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 1.00 towards (Angle from (Position of Glacial Pandaren 0014 <gen>) to (Position of (Picked unit))) degrees)
Unit - Order Glacial Pandaren 0014 <gen> to damage (Picked unit) for 0.60 using attack type Spells and damage type Cold.
Hopefully someone can point out what's goin wrong because this simply lags and doesn't even move the units. So i dunno.
BTW if you show me a spell to mimic, it has to be written in the same fashion as this one so no JASS or any of that stuff.
RP setup
Events
Unit - Glacial Pandaren 0014 <gen> Starts the effect of an ability
Conditions
(Ability being cast) Equal to Reverse Polarity
Actions
Set RP_distanceReal = 20.00
Set NovaAnglereleaseFrost = 0.00
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Unit - Create 1 Reverse Polarity Unit for (Owner of Glacial Pandaren 0014 <gen>) at ((Position of Glacial Pandaren 0014 <gen>) offset by 35.00 towards NovaAnglereleaseFrost degrees) facing Default building facing degrees
Set NovaAnglereleaseFrost = (NovaAnglereleaseFrost + 60.00)
Trigger - Turn on RP Move Units back <gen>
And the other one
RP Move Units back
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RP_distanceReal Greater than or equal to (500.00 + (((Max life of Glacial Pandaren 0014 <gen>) - (Life of Glacial Pandaren 0014 <gen>)) / 3.00))
Then - Actions
Unit Group - Pick every unit in (Units of type Reverse Polarity Unit) and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Trigger - Turn off (This trigger)
Else - Actions
Set RP_distanceReal = (RP_distanceReal + 1.00)
Unit Group - Pick every unit in (Units of type Reverse Polarity Unit) and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to ((Position of Glacial Pandaren 0014 <gen>) offset by RP_distanceReal towards (Angle from (Position of Glacial Pandaren 0014 <gen>) to (Position of (Picked unit))) degrees)
Unit Group - Pick every unit in (Units within RP_distanceReal of (Position of Glacial Pandaren 0014 <gen>) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) Equal to (Random player from (All enemies o and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 1.00 towards (Angle from (Position of Glacial Pandaren 0014 <gen>) to (Position of (Picked unit))) degrees)
Unit - Order Glacial Pandaren 0014 <gen> to damage (Picked unit) for 0.60 using attack type Spells and damage type Cold.
Hopefully someone can point out what's goin wrong because this simply lags and doesn't even move the units. So i dunno.
BTW if you show me a spell to mimic, it has to be written in the same fashion as this one so no JASS or any of that stuff.