- Joined
- May 16, 2020
- Messages
- 660
Hi guys,
In terms of performance, is there a difference between these two triggers?
It probably makes a negligable difference anyhow, but it's something I'm always wondering when adding several "Triggering Unit" instead of a variable in the condition.
Thanks!
In terms of performance, is there a difference between these two triggers?
-
Spin Web Enter Map
-
Events
- Unit - A unit enters (Playable map area)
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Spiderite (Level 2
- (Unit-type of (Triggering unit)) Equal to Spiderling (Level 1)
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Unit Group - Add (Triggering unit) to SpinWeb_GroupInvisibility
-
Events
-
Spin Web Enter Map
-
Events
- Unit - A unit enters (Playable map area)
- Conditions
-
Actions
- Set VariableSet Web_Unit = (Triggering unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of Web_Unit) Equal to Spiderite (Level 2
- (Unit-type of Web_Unit) Equal to Spiderling (Level 1)
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Unit Group - Add (Triggering unit) to SpinWeb_GroupInvisibility
- Else - Actions
-
If - Conditions
-
Events
It probably makes a negligable difference anyhow, but it's something I'm always wondering when adding several "Triggering Unit" instead of a variable in the condition.
Thanks!