- Joined
- Apr 1, 2010
- Messages
- 289
I have been working on a flanking system, does anyone no how you are supposed to refer to a unit is Damaged?
The Event that I think causes the game to Crash is this action
-
Flanking
-

Events
-


Unit - (the unit) Takes damage
-
-

Conditions
-

Actions
-


Set Loc_to_remove = (Position of (Triggering unit))
-


Set TempPoint = (Position of (Damage source))
-


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



If - Conditions
-




(Distance between Loc_to_remove and TempPoint) Less than or equal to 340.00
-
-



Then - Actions
-




Set zzangle = ((Facing of (Damage source)) - (Facing of (Triggering unit)))
-




Set zzdamagbonus = 0.00
-




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





If - Conditions
-






zzangle Not equal to (Abs(zzangle))
-
-





Then - Actions
-






Set zzangle = (zzangle + 360.00)
-
-





Else - Actions
-
-




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





If - Conditions
-






Or - Any (Conditions) are true
-







Conditions
-








zzangle Greater than or equal to 280.00
-








zzangle Less than or equal to 80.00
-
-
-
-





Then - Actions
-






Set zzdamage = (Damage taken)
-






Set zzdamagbonus = (zzdamagbonus + 0.20)
-






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







If - Conditions
-








Or - Any (Conditions) are true
-









Conditions
-










zzangle Greater than or equal to 310.00
-










zzangle Less than or equal to 50.00
-
-
-
-







Then - Actions
-








Set zzdamagbonus = (zzdamagbonus + 0.20)
-








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









If - Conditions
-










Or - Any (Conditions) are true
-











Conditions
-












zzangle Greater than or equal to 340.00
-












zzangle Less than or equal to 20.00
-
-
-
-









Then - Actions
-










Set zzdamagbonus = (zzdamagbonus + 0.20)
-
-









Else - Actions
-
-
-







Else - Actions
-
-






Set zzdamage = (zzdamagbonus x zzdamage)
-






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







If - Conditions
-








zzdamage Less than 1.00
-
-







Then - Actions
-








Set zzdamage = 1.00
-
-







Else - Actions
-
-






Set zzDamageConverer = (Integer(zzdamage))
-






Set zzdamage = (Real(zzDamageConverer))
-






Unit - Cause (Damage source) to damage (Triggering unit), dealing zzdamage damage of attack type Chaos and damage type Normal
-






Floating Text - Create floating text that reads (String(zzdamage)) above (Damage source) with Z offset 0.00, using font size 10.00, color (100.00%, 30.00%, 30.00%), and 10.00% transparency
-






Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
-






Floating Text - Change (Last created floating text): Disable permanence
-
-





Else - Actions
-
-
-



Else - Actions
-
-
-
The Event that I think causes the game to Crash is this action
-
Unit - Cause (Damage source) to damage (Triggering unit), dealing 1.00 damage of attack type Chaos and damage type Normal

