Condition Triggers with Variables
See some further examples:
You want to activate a placed Trigger X only after an F217 trigger has placed an image on the screen. That's why there is an F232 overlapped with that F217 to set Value 1 in LBA1 when the image gets on the screen. If Lara steps on Trigger X then C43 examines if LBA1=1, i.e. if that image has been placed on the screen or not. (It is not important now if the image is still on the screen or not.) If it has then Trigger X will be activated, but if it has not then Trigger X won't be activated.
See that special Lightning Conductor setup in 'Street Bazaar' TRLR level: when Lara pushes/pulls a pushable object on the square of one of the Lightning Conductor objects then a HEAVYSWITCH will activate a FLAME_EMITTER2 to divert the lightning to the other Lightning Conductor. (By the way the setup would work properly with a simple HEAVY instead of a HEAVYSWITCH.)
So, there is an F232 TRIGGER overlapped with the HEAVYSWITCH (HEAVY) to set Value 1 in LBA1 if the lightning has been diverted. If it has - and if the other conditions in the GlobalTrigger are also true - then the GlobalTrigger will activate Trigger X.
This time this is what we can find in three GlobalTriggers:
if LBA1=0 plus other conditions are also true then activate Trigger X
if LBA1=1 plus other conditions are also true then activate Trigger Y
if LBA1=2 plus other conditions are also true then activate Trigger Z
There is an F232 overlapped with a FLIPMAP trigger to turn LBA1 into 1.
And this time there is another F232 overlapped with a FLIPOFF trigger to turn LBA1 into 2.
So, the conditions say:
- if the flipmap hasn't been switched on (LBA1=0, the default value) then activate Trigger X
- if the flipmap is switched on (LBA1=1) then activate Trigger Y
- if the flipmap is switched off (LBA1=2) then activate Trigger Z
This time we don't have a placed F232 in the map to turn LBA1 into 1. But we have a GlobalTrigger: if the condition of the GlobalTrigger is true then the executable trigger of the GlobalTrigger (an F232 to turn LBA1 into 1) will be executed.
Lara steps on Trigger X in the level. A C43 examines there if the condition of the GlobalTrigger has been true before or not (i.e. if LBA1 has been turned 1 or not). If it has then Trigger X will be activated.
Made using TRNG 18.104.22.168