- Joined
- Aug 19, 2006
- Messages
- 185
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
codeRocket Strike
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Rocket Strike
Actions
Set TriggeringUnitPointVar = (Position of (Triggering unit))
For each (Integer A) from 1 to 1, do (Actions)
Loop - Actions
Unit - Create 1 Dum Dum for (Owner of (Triggering unit)) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
Unit - Order (Last created unit) to Neutral - Breath Of Frost ((Position of (Triggering unit)) offset by 100.00 towards NovaRotationTargetVar degrees)
Set NovaRotationTargetVar = (NovaRotationTargetVar + 10.00)
Breathe of Frost gives pandaa buff to enemy.code2Pushback Copy
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff pandaa ) Equal to True)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is alive) Equal to True
((Picked unit) is A ground unit) Equal to True
Then - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 50.00 towards (Angle from TriggeringUnitPointVar to (Position of (Picked unit))) degrees)
Else - Actions
Do nothing
I made that but i have a problem. It pushes only one time. I want to increase it. What must i change? Please help me.
Rocket Strike

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Rocket Strike

Actions


Set TriggeringUnitPointVar = (Position of (Triggering unit))


For each (Integer A) from 1 to 1, do (Actions)



Loop - Actions




Unit - Create 1 Dum Dum for (Owner of (Triggering unit)) at (Position of (Target unit of ability being cast)) facing Default building facing degrees




Unit - Order (Last created unit) to Neutral - Breath Of Frost ((Position of (Triggering unit)) offset by 100.00 towards NovaRotationTargetVar degrees)




Set NovaRotationTargetVar = (NovaRotationTargetVar + 10.00)
Pushback Copy

Events


Time - Every 0.01 seconds of game time

Conditions

Actions


Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff pandaa ) Equal to True)) and do (Actions)



Loop - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






((Picked unit) is alive) Equal to True






((Picked unit) is A ground unit) Equal to True





Then - Actions






Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 50.00 towards (Angle from TriggeringUnitPointVar to (Position of (Picked unit))) degrees)





Else - Actions






Do nothing
Set Var_ALP = Position of Picked Unit
Set Var_ALP2 = ALP offset by 50 toward (Angle from TriggeringUnitPointVar to (ALP)) degrees)
custom script: call RemoveLocation(udg_Var_ALP)
custom script: call RemoveLocation(udg_Var_ALP2)
Set Var_ALG = Units in (Playable map area) matching (((Matching unit) has buff pandaa ) Equal to True)
Unit Group - Pick every unit in (Var_ALG) and do (Actions)
Loop - Actions
blah blah blah
//When you are done with your actions, put this at the very end of your trigger:
custom script: call DestroyGroup(udg_Var_ALG)
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Rocket Strike
Actions
Set VAR_UnitTraget = Unit of Target Ability being cast.
Wait 1.00 seconds
Set VAR_UnitTarget = No Unit.
Time - Every 0.05 seconds of game time
Set Var_ALP = (Position of (VAR_UnitTarget)
Set Var_ALP2 = (Var_ALP) offset by 30 towards (Angle from TriggeringUnitPointVar to (Position of (Picked unit))) degrees)
Unit - Move (Var_UnitTarget) instantly to (ALP2)
Set VAR_UnitTarget = Unit of Target Ability being cast.
Set Var_ALP = Position of (Unit of Target Ability being cast.
Set VAR_GroupTarget = Units within (<YOUR AOE HERE>) of Var_ALP
custom script: call RemoveLocation(udg_VAR_ALP)
Wait 1.00 seconds
custom script: call DestroyGroup(udg_VAR_GroupTarget)
Time - Every 0.05 seconds of game time
Set Var_ALP = (Position of (VAR_UnitTarget)
Set Var_ALP2 = (Var_ALP) offset by 30 towards (Angle from TriggeringUnitPointVar to (Position of (Picked unit))) degrees)
Unit - Move (Var_UnitTarget) instantly to (ALP2)
Time - Every 0.05 seconds of game time
Unit Group - Pick every unit in VAR_GroupTarget and do actions:
Loop - Actions
Set Var_ALP = (Position of (Picked Unit)
Set Var_ALP2 = (Var_ALP) offset by 30 towards (Angle from TriggeringUnitPointVar to (Position of (Picked unit))) degrees)
Unit - Move (Picked Unit) instantly to (ALP2)
Events

Unit - A unit Starts the effect of an ability
Conditions

(Ability being cast) Equal to Rocket Strike
Actions

Set VAR_UnitTraget = Unit of Target Ability being cast.

Set TriggeringUnitPointVar = Position of (Triggering Unit)

Wait 1.00 seconds

Set VAR_UnitTarget = No Unit.
Events

Time - Every 0.05 seconds of game time
Conditions
Actions

Set Var_ALP = (Position of (VAR_UnitTarget)

Set Var_ALP2 = (Var_ALP) offset by 30 towards (Angle from TriggeringUnitPointVar to ALP) degrees)

Unit - Move (Var_UnitTarget) instantly to (ALP2)

Custom Script: call RemoveLocation(udg_Var_ALP)

Custom Script: call RemoveLocation(udg_Var_ALP2)
