- Joined
- Nov 6, 2008
- Messages
- 8,316
I never thought I'd experience such trigger problem, but, everytime I attack a certain building, it drops me off the game. Here is the damage detection system:
-
Damage1
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Set DamageGroup = (Units in (Playable map area))
-


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



Loop - Actions
-




Trigger - Add to Greater Damage <gen> the event (Unit - (Picked unit) Takes damage)
-
-
-


Custom script: call DestroyGroup (udg_DamageGroup)
-
-
-
Damage 2
-

Events
-


Unit - A unit enters (Playable map area)
-
-

Conditions
-

Actions
-


Trigger - Add to Greater Damage <gen> the event (Unit - (Triggering unit) Takes damage)
-
-
-
Greater Damage
-

Events
-

Conditions
-


Or - Any (Conditions) are true
-



Conditions
-




(Unit-type of (Damage source)) Equal to Bomber (High)
-




(Unit-type of (Damage source)) Equal to Bomber
-
-
-
-

Actions
-


For each (Integer Bomber_Int) from 1 to 13, do (Actions)
-



Loop - Actions
-




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





If - Conditions
-






(Unit-type of (Triggering unit)) Equal to BuildingTypes[Bomber_Int]
-
-





Then - Actions
-






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







If - Conditions
-








Or - Any (Conditions) are true
-









Conditions
-










((Triggering unit) is A structure) Equal to False
-










((Triggering unit) is Undead) Equal to False
-










((Triggering unit) is Mechanical) Equal to False
-
-
-
-







Then - Actions
-








Unit - Cause (Triggering unit) to damage (Triggering unit), dealing 10.00 damage of attack type Chaos and damage type Fire
-
-







Else - Actions
-
-
-





Else - Actions
-






Unit - Cause (Triggering unit) to damage (Triggering unit), dealing 10.00 damage of attack type Chaos and damage type Fire
-
-
-
-
-
-




