Move Arrows
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
Set PreskoolGroup = (Units of type Arrow D-Unit)
Unit Group - Pick every unit in PreskoolGroup and do (Actions)
Loop - Actions
Set Arrow = (Picked unit)
Set PreskoolDudeRox = (Position of Arrow)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain type at PreskoolDudeRox) Equal to Underground - Lava
Then - Actions
Unit - Move Arrow instantly to (PreskoolDudeRox offset by 80.00 towards (Facing of Arrow) degrees)
Else - Actions
Unit - Remove Arrow from the game
Set JoinClanTMF = (Units within 200.00 of PreskoolDudeRox matching (((Matching unit) belongs to an enemy of (Owner of Arrow)) Equal to True))
Custom script: call RemoveLocation(udg_PreskoolDudeRox)
Unit Group - Pick every unit in JoinClanTMF and do (Actions)
Loop - Actions
Set PreskoolDudeRox = (Position of (Picked unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
(Custom value of (Picked unit)) Not equal to 1
((Picked unit) is alive) Equal to True
(Unit-type of (Picked unit)) Not equal to Flag
(Terrain type at PreskoolDudeRox) Equal to Underground - Lava
Then - Actions
Unit - Cause Unit[(Player number of (Owner of Arrow))] to damage (Picked unit), dealing 100.00 damage of attack type Chaos and damage type Normal
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked unit) Not equal to No unit
Then - Actions
Unit - Remove Arrow from the game
Else - Actions
Do nothing
Else - Actions
Unit - Remove Arrow from the game
Set PreskoolHelp = (Position of Unit[(Player number of (Owner of Arrow))])
Unit - Create 1 Arrow D-Unit for (Owner of (Picked unit)) at PreskoolDudeRox facing (Angle from Danger_Point to PreskoolHelp) degrees
Custom script: call RemoveLocation(udg_PreskoolDudeRox)
Custom script: call RemoveLocation(udg_PreskoolHelp)