- 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)
-
Loop - Actions
- Custom script: call DestroyGroup (udg_DamageGroup)
-
Events
-
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)
-
Events
-
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
-
Conditions
-
Or - Any (Conditions) are true
-
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
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Unit - Cause (Triggering unit) to damage (Triggering unit), dealing 10.00 damage of attack type Chaos and damage type Fire
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Else - Actions
- Unit - Cause (Triggering unit) to damage (Triggering unit), dealing 10.00 damage of attack type Chaos and damage type Fire
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
For each (Integer Bomber_Int) from 1 to 13, do (Actions)