- Joined
- Sep 3, 2009
- Messages
- 1,520
Hi everyone at hive. And before i start Merry Christmas.
well today i started learning about how to use a parabola in Wc3. ive gotten the triggering of it down almost but the problem is when im in game it only works once per unit. i have no idea why it does this. I have been trying to 2 fix it for hours now but with no luck. if someone could check my triggers would be greatly appreciated.
well today i started learning about how to use a parabola in Wc3. ive gotten the triggering of it down almost but the problem is when im in game it only works once per unit. i have no idea why it does this. I have been trying to 2 fix it for hours now but with no luck. if someone could check my triggers would be greatly appreciated.
-
Boss Rage
-

Events
-


Unit - A unit Is attacked
-
-

Conditions
-


(Attacking unit) Equal to Gorfang 0002 <gen>
-


Boss_Rage_On Equal to True
-
-

Actions
-


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



If - Conditions
-




(Random integer number between Difficulty_adjuster and 15) Equal to 15
-
-



Then - Actions
-




-------- Add To Group --------
-




Unit Group - Add (Triggering unit) to P_Group
-




-------- Unit Being Thrown --------
-




Set P_unit = (Triggering unit)
-




-------- Speed --------
-




Hashtable - Save 25.00 as 1 of (Key (Triggering unit)) in P_hash
-




-------- Max Height --------
-




Hashtable - Save 500.00 as 2 of (Key (Triggering unit)) in P_hash
-




-------- Max Distance --------
-




Hashtable - Save 2000.00 as 3 of (Key (Triggering unit)) in P_hash
-




-------- Angle --------
-




Hashtable - Save (Facing of Gorfang 0002 <gen>) as 5 of (Key (Triggering unit)) in P_hash
-




-------- Time --------
-




Hashtable - Save (((Load 3 of (Key (Triggering unit)) from P_hash) x 0.03) / (Load 1 of (Key (Triggering unit)) from P_hash)) as 0 of (Key (Triggering unit)) in P_hash
-




-------- Makes Unit Fly --------
-




Unit - Add Storm Crow Form to P_unit
-




Unit - Remove Storm Crow Form from P_unit
-




-------- Runs Loop --------
-




Trigger - Turn on Boss Rage Loop <gen>
-
-



Else - Actions
-
-
-
-
Boss Rage Loop
-

Events
-


Time - Every 0.03 seconds of game time
-
-

Conditions
-

Actions
-


Unit Group - Pick every unit in P_Group and do (Actions)
-



Loop - Actions
-




-------- ------------------------Preload All Variables ---------------------------- --------
-




Set P_time = (Load 0 of (Key (Picked unit)) from P_hash)
-




Set P_Speed = (Load 1 of (Key (Picked unit)) from P_hash)
-




Set P_Max_height = (Load 2 of (Key (Picked unit)) from P_hash)
-




Set P_max_distance = (Load 3 of (Key (Picked unit)) from P_hash)
-




Set P_Current_distance = (Load 4 of (Key (Picked unit)) from P_hash)
-




Set P_Angle = (Load 5 of (Key (Picked unit)) from P_hash)
-




-------- ------------------------------------------------------------------------------------------- --------
-




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





If - Conditions
-






P_time Less than or equal to 0.00
-
-





Then - Actions
-






-------- Remove Unit Once time is Done --------
-






Unit Group - Remove (Picked unit) from P_Group
-
-





Else - Actions
-






-------- Lower Time --------
-






Hashtable - Save (P_time - 0.03) as 0 of (Key (Picked unit)) in P_hash
-






-------- Increase Current Distance --------
-






Hashtable - Save (P_Current_distance + P_Speed) as 4 of (Key (Picked unit)) in P_hash
-






-------- Parabola Formula --------
-






Set P_height = (((4.00 x (P_Max_height / P_max_distance)) x (P_max_distance - P_Current_distance)) x (P_Current_distance / P_max_distance))
-






-------- Move Unit --------
-






Animation - Change (Picked unit) flying height to P_height at 0.00
-






Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by P_Speed towards P_Angle degrees)
-
-
-
-
-


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



If - Conditions
-




(P_Group is empty) Equal to True
-
-



Then - Actions
-




Trigger - Turn off (This trigger)
-
-



Else - Actions
-
-
-
