- Joined
- Sep 25, 2013
- Messages
- 647
Hi! I'm wondering if i should create a variable, call it Catapults, so that instead of checking if the triggering unit is any one of these conditions it just checks if it is part of the Catapults unit group. I know in cases of periodic event triggers this helps the performance, but for a damage event like this, is this needed? Thanks! Here's the trigger:
-
Catapult Damage to Ships
-
Events
- Game - PDD_damageEventTrigger becomes Equal to 1.00
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- PDD_damageType Equal to PDD_PHYSICAL
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of PDD_source) Equal to Ballista |c00FFFF00(Siege)|r (Elves)
- (Unit-type of PDD_source) Equal to Ballistapult |c00FFFF00(Siege)|r (Mordor)
- (Unit-type of PDD_source) Equal to Catapult |c00FFFF00(Siege)|r (Dwarves)
- (Unit-type of PDD_source) Equal to Catapult |c00FFFF00(Siege)|r (Gondor)
- (Unit-type of PDD_source) Equal to Catapult |c00FFFF00(Siege)|r (Haradrim)
- (Unit-type of PDD_source) Equal to Demolisher |c00FFFF00(Siege)|r (Isengard)
- (Unit-type of PDD_source) Equal to Glaive Laucher |c00FFFF00(Siege)|r (Elves)
- (Unit-type of PDD_source) Equal to Devestator (Haradrim)
- (Unit-type of PDD_source) Equal to Infernal Contraption (Isengard)
- (Unit-type of PDD_source) Equal to Onager (Gondor)
- (Unit-type of PDD_source) Equal to Plague Bringer (Mordor)
- (Unit-type of PDD_source) Equal to Siege Breaker (Dwarves)
- (Unit-type of PDD_source) Equal to Trebuchet (Gondor)
- (Unit-type of PDD_source) Equal to Devestator Unit
- (Unit-type of PDD_source) Equal to Onager Unit
- (Unit-type of PDD_source) Equal to Siege Breaker Unit
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of PDD_target) Equal to Fishing Ship
- (Unit-type of PDD_target) Equal to Barrage Ship |c00FFFF00(Archer)|r
- (Unit-type of PDD_target) Equal to Frigate |c00FFFF00(Archer)|r
- (Unit-type of PDD_target) Equal to Warship |c00FFFF00(Infantry)|r (Dwarves)
- (Unit-type of PDD_target) Equal to Warship |c00FFFF00(Infantry)|r (Elves)
- (Unit-type of PDD_target) Equal to Warship |c00FFFF00(Infantry)|r (Gondor)
- (Unit-type of PDD_target) Equal to Warship |c00FFFF00(Infantry)|r (Haradrim)
- (Unit-type of PDD_target) Equal to Warship |c00FFFF00(Infantry)|r (Isengard)
- (Unit-type of PDD_target) Equal to Warship |c00FFFF00(Infantry)|r (Mordor)
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
- Set PDD_amount = (PDD_amount x 4.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events