- Joined
- Oct 6, 2022
- Messages
- 213
Hello I found a map called map called Rocket System v 1.0d. however, when i set it as target skill. some of the missile is doesn't lands on the Target Unit if the Caster is close, it only just spins around when the Target Unit stood still. what should i do?
i'm trying to make it like this:
here's the trigger came from the rocket system that i got... The one called Spell is the only one that i did.
i'm trying to make it like this:
here's the trigger came from the rocket system that i got... The one called Spell is the only one that i did.
-
Spell
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to (Altair) Sword Strike
-
-

Actions
-


Set Altair_SwS_Caster_INT = (Altair_SwS_Caster_INT + 1)
-


Set Altair_SwS_Caster[Altair_SwS_Caster_INT] = (Triggering unit)
-


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



Loop - Actions
-




Unit - Create 1 RocketType for (Owner of Altair_SwS_Caster[Altair_SwS_Caster_INT]) at ((Position of Altair_SwS_Caster[Altair_SwS_Caster_INT]) offset by (35.00 + 0.00) towards ((Facing of Altair_SwS_Caster[Altair_SwS_Caster_INT]) + 90.00) degrees) facing (Real((Integer(((Facing of Altair_SwS_Caster[Altair_SwS_Caster_INT]) + ((Real((Integer A))) x 20.00)))))) degrees
-




Set RocketTarget[Rocket_Index] = (Target unit of ability being cast)
-




Set Rocket_empty[Rocket_Index] = True
-




Unit - Set the custom value of (Last created unit) to Rocket_Index
-




Trigger - Run AttackRocketIndexFinding <gen> (ignoring conditions)
-




Unit - Create 1 RocketType for (Owner of Altair_SwS_Caster[Altair_SwS_Caster_INT]) at ((Position of Altair_SwS_Caster[Altair_SwS_Caster_INT]) offset by (35.00 + 0.00) towards ((Facing of Altair_SwS_Caster[Altair_SwS_Caster_INT]) - 90.00) degrees) facing (Real((Integer(((Facing of Altair_SwS_Caster[Altair_SwS_Caster_INT]) - ((Real((Integer A))) x 20.00)))))) degrees
-




Set RocketTarget[Rocket_Index] = (Target unit of ability being cast)
-




Set Rocket_empty[Rocket_Index] = True
-




Unit - Set the custom value of (Last created unit) to Rocket_Index
-




Trigger - Run AttackRocketIndexFinding <gen> (ignoring conditions)
-
-
-
-
-
AttackRocketInitiate
-

Events
-


Time - Elapsed game time is 0.01 seconds
-
-

Conditions
-

Actions
-


-------- This index must be initialized. Do not change this. --------
-


Set Rocket_Index = 1
-


-------- RocketType = Unit-Type of your rocket. Rocket unit must be flying. --------
-


Set RocketType = Altair Sword Strike Dummy
-
-
-
AttackRocketFlyes
-

Events
-


Time - Every 0.03 seconds of game time
-
-

Conditions
-

Actions
-


Set Num = 50.00
-


Unit Group - Pick every unit in (Units of type Altair Sword Strike Dummy) and do (Actions)
-



Loop - Actions
-




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





If - Conditions
-






(Distance between (Position of (Picked unit)) and (Position of RocketTarget[(Custom value of (Picked unit))])) Less than or equal to 32.00
-






((Current flying height of RocketTarget[(Custom value of (Picked unit))]) - (Current flying height of (Picked unit))) Less than or equal to 0.00
-
-





Then - Actions
-






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







If - Conditions
-








((Picked unit) is alive) Equal to True
-
-







Then - Actions
-








Unit - Cause (Picked unit) to damage RocketTarget[(Custom value of (Picked unit))], dealing (Real((Level of (Picked unit)))) damage of attack type Chaos and damage type Universal
-








Unit - Move RocketTarget[(Custom value of (Picked unit))] instantly to ((Position of (Picked unit)) offset by 50.00 towards (Facing of (Picked unit)) degrees), facing Default building facing degrees
-
-







Else - Actions
-
-






Set Rocket_empty[(Custom value of (Picked unit))] = False
-






Unit - Add a 0.01 second Generic expiration timer to (Picked unit)
-
-





Else - Actions
-






Set Number[1] = (0.00 + ((Facing of (Picked unit)) - (Angle from (Position of (Picked unit)) to (Position of RocketTarget[(Custom value of (Picked unit))]))))
-






Set Number[2] = (360.00 - ((Facing of (Picked unit)) - (Angle from (Position of (Picked unit)) to (Position of RocketTarget[(Custom value of (Picked unit))]))))
-






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







If - Conditions
-








Number[1] Greater than or equal to 360.00
-
-







Then - Actions
-








Set Number[1] = (Number[1] - 360.00)
-
-







Else - Actions
-








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









If - Conditions
-










Number[1] Less than 0.00
-
-









Then - Actions
-










Set Number[1] = (Number[1] + 360.00)
-
-









Else - Actions
-
-
-
-






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







If - Conditions
-








Number[2] Greater than or equal to 360.00
-
-







Then - Actions
-








Set Number[2] = (Number[2] - 360.00)
-
-







Else - Actions
-








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









If - Conditions
-










Number[2] Less than 0.00
-
-









Then - Actions
-










Set Number[2] = (Number[2] + 360.00)
-
-









Else - Actions
-
-
-
-






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







If - Conditions
-








Number[1] Greater than or equal to Number[2]
-
-







Then - Actions
-








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









If - Conditions
-










(360.00 - Number[1]) Greater than 0.01
-
-









Then - Actions
-










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











If - Conditions
-












(360.00 - Number[1]) Greater than 1.00
-
-











Then - Actions
-












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













If - Conditions
-














(360.00 - Number[1]) Greater than 5.00
-
-













Then - Actions
-














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















If - Conditions
-
















(360.00 - Number[1]) Greater than 10.00
-
-















Then - Actions
-
















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

















If - Conditions
-


















(360.00 - Number[1]) Greater than 45.00
-
-

















Then - Actions
-


















Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by Num towards ((Facing of (Picked unit)) + 0.00) degrees), facing ((Facing of (Picked unit)) + 45.00) degrees
-
-

















Else - Actions
-


















Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by Num towards ((Facing of (Picked unit)) + 0.00) degrees), facing ((Facing of (Picked unit)) + 10.00) degrees
-
-
-
-















Else - Actions
-
















Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by Num towards ((Facing of (Picked unit)) + 0.00) degrees), facing ((Facing of (Picked unit)) + 5.00) degrees
-
-
-
-













Else - Actions
-














Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by Num towards ((Facing of (Picked unit)) + 0.00) degrees), facing ((Facing of (Picked unit)) + 1.00) degrees
-
-
-
-











Else - Actions
-












Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by Num towards ((Facing of (Picked unit)) + 0.00) degrees), facing ((Facing of (Picked unit)) + 0.01) degrees
-
-
-
-









Else - Actions
-










Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by Num towards ((Facing of (Picked unit)) + 0.00) degrees), facing ((Facing of (Picked unit)) + 0.00) degrees
-
-
-
-







Else - Actions
-








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









If - Conditions
-










(360.00 - Number[2]) Greater than 0.01
-
-









Then - Actions
-










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











If - Conditions
-












(360.00 - Number[2]) Greater than 1.00
-
-











Then - Actions
-












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













If - Conditions
-














(360.00 - Number[2]) Greater than 5.00
-
-













Then - Actions
-














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















If - Conditions
-
















(360.00 - Number[2]) Greater than 10.00
-
-















Then - Actions
-
















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

















If - Conditions
-


















(360.00 - Number[2]) Greater than 45.00
-
-

















Then - Actions
-


















Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by Num towards ((Facing of (Picked unit)) + 0.00) degrees), facing ((Facing of (Picked unit)) - 45.00) degrees
-
-

















Else - Actions
-


















Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by Num towards ((Facing of (Picked unit)) + 0.00) degrees), facing ((Facing of (Picked unit)) - 10.00) degrees
-
-
-
-















Else - Actions
-
















Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by Num towards ((Facing of (Picked unit)) + 0.00) degrees), facing ((Facing of (Picked unit)) - 5.00) degrees
-
-
-
-













Else - Actions
-














Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by Num towards ((Facing of (Picked unit)) + 0.00) degrees), facing ((Facing of (Picked unit)) - 1.00) degrees
-
-
-
-











Else - Actions
-












Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by Num towards ((Facing of (Picked unit)) + 0.00) degrees), facing ((Facing of (Picked unit)) - 0.01) degrees
-
-
-
-









Else - Actions
-










Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by Num towards ((Facing of (Picked unit)) + 0.00) degrees), facing ((Facing of (Picked unit)) - 0.00) degrees
-
-
-
-
-






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







If - Conditions
-








((Current flying height of RocketTarget[(Custom value of (Picked unit))]) - 0.00) Greater than (Current flying height of (Picked unit))
-
-







Then - Actions
-








Animation - Change (Picked unit) flying height to ((Current flying height of (Picked unit)) + 2.50) at 1000000000.00
-
-







Else - Actions
-








Animation - Change (Picked unit) flying height to ((Current flying height of (Picked unit)) - 2.50) at 1000000000.00
-
-
-
-
-
-
-
-
-
AttackRocketDies
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


(Unit-type of (Dying unit)) Equal to Altair Sword Strike Dummy
-
-

Actions
-


Set Rocket_empty[(Custom value of (Dying unit))] = False
-


Unit - Remove (Dying unit) from the game
-
-
-
AttackRocketIndexFinding
-

Events
-

Conditions
-

Actions
-


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



If - Conditions
-




Rocket_Index Greater than 98
-
-



Then - Actions
-




Set Rocket_Index = 1
-




Trigger - Run (This trigger) (ignoring conditions)
-




Skip remaining actions
-
-



Else - Actions
-
-


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



If - Conditions
-




Rocket_empty[Rocket_Index] Equal to True
-
-



Then - Actions
-




Set Rocket_Index = (Rocket_Index + 1)
-




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





If - Conditions
-






Rocket_Index Greater than 98
-
-





Then - Actions
-






Set Rocket_Index = 1
-






Trigger - Run (This trigger) (ignoring conditions)
-






Skip remaining actions
-
-





Else - Actions
-
-




Trigger - Run (This trigger) (ignoring conditions)
-
-



Else - Actions
-
-
-
