Set Trigger State
Moderators: Order of Battle Moderators, The Artistocrats
Set Trigger State
I've set up several triggers with a couple of conditions to spawn units when an airfield is captured (and the location is free of land units).
When the conditions are fulfilled on one airfield the other triggers are disabled.
My problem is that the other triggers also fire when they are supposed to be disabled.
Am I missing anything here?
When the conditions are fulfilled on one airfield the other triggers are disabled.
My problem is that the other triggers also fire when they are supposed to be disabled.
Am I missing anything here?
-
conboy
- Lieutenant Colonel - Fw 190A

- Posts: 1169
- Joined: Sun Apr 09, 2017 4:18 pm
- Location: Lower Alabama
Re: Set Trigger State
It only disables Ta Kali the way it's set up now, unless all the triggers are listed as set trigger states underneath the Ta Kali trigger. I think you'd have to list all the triggers that are disabled by each trigger for them to be disabled.
You want to send me a link, I'll be happy to look at it, hombre.
conboy
You want to send me a link, I'll be happy to look at it, hombre.
conboy
Re: Set Trigger State
I do have triggers for all the other airfields.
I've added the bare-bones scenario here. An easy way to test it from the editor is to set the British as AI and play 3-4 turns.
Thanks for taking a peek at this. It is the last hurdle before publishing a scenario update.
I've added the bare-bones scenario here. An easy way to test it from the editor is to set the British as AI and play 3-4 turns.
Thanks for taking a peek at this. It is the last hurdle before publishing a scenario update.
- Attachments
-
1v1 Operazione C3 1.4.zip- (18.29 KiB) Downloaded 64 times
-
conboy
- Lieutenant Colonel - Fw 190A

- Posts: 1169
- Joined: Sun Apr 09, 2017 4:18 pm
- Location: Lower Alabama
Re: Set Trigger State
I think it has something to do with the Any Event setting because I changed Hal Far and Kala Frana to Capture VP Event and captured them in that order, it didn't fire. But when I took Safi, still set on Any Event, it fired. Try it that way on a couple.
I think somehow the Any Event thing, with two criteria, won't turn it off on the first check since the field isn't unoccupied, and it is set to check only once.
Another way to go about this, is set it for Capture Hal Far by Turn 3 or you lose. Then use that to turn off the other triggers, but that defeats the intent of letting the commander pick which one he wants to capture first.
Or you could set them all for Turn Start, then it'll check for both criteria at once and turn off the triggers. I think the deal is, it only checks each trigger once and if the criteria aren't met, it doesn't work.
So maybe change the setting to Capture VP Event or even better Turn Start and that might fix it.
conboy
I think somehow the Any Event thing, with two criteria, won't turn it off on the first check since the field isn't unoccupied, and it is set to check only once.
Another way to go about this, is set it for Capture Hal Far by Turn 3 or you lose. Then use that to turn off the other triggers, but that defeats the intent of letting the commander pick which one he wants to capture first.
Or you could set them all for Turn Start, then it'll check for both criteria at once and turn off the triggers. I think the deal is, it only checks each trigger once and if the criteria aren't met, it doesn't work.
So maybe change the setting to Capture VP Event or even better Turn Start and that might fix it.
conboy
-
conboy
- Lieutenant Colonel - Fw 190A

- Posts: 1169
- Joined: Sun Apr 09, 2017 4:18 pm
- Location: Lower Alabama
Re: Set Trigger State
You can go down that list and cross them off. I cant figure it out!
I tried them all and still the trigger keeps on firing. Worse than the Energizer bunny!
Sorry man...
conboy
I tried them all and still the trigger keeps on firing. Worse than the Energizer bunny!
Sorry man...
conboy
-
terminator
- Field Marshal - Gustav

- Posts: 6115
- Joined: Mon Aug 15, 2011 12:48 pm
- Location: the land of freedom
Re: Set Trigger State
Spawn Unit may create problems. Either try to put Spawn Unit at the end of the list of the Effects or make a separate trigger with Spawn Unit ?
Re: Set Trigger State
Yes, maybe the unit spawns before the triggers fire. That would explain the behaviour.terminator wrote: ↑Thu Nov 19, 2020 4:12 am Spawn Unit may create problems. Either try to put Spawn Unit at the end of the list of the Effects or make a separate trigger with Spawn Unit ?
Back to editor.
-
conboy
- Lieutenant Colonel - Fw 190A

- Posts: 1169
- Joined: Sun Apr 09, 2017 4:18 pm
- Location: Lower Alabama
Re: Set Trigger State
Please let us know if that works!
conboy
conboy
Re: Set Trigger State
FInally cracked it. You need 2 separate triggers for each set of spawns.
The first is the conditions trigger, which is enabled by default.
The other is the spawning trigger, which is disabled by default.
When the first condition trigger is met, the corresponding spawning trigger is enabled and all other condition triggers are disabled.
Thanks for helping out, guys.
The first is the conditions trigger, which is enabled by default.
The other is the spawning trigger, which is disabled by default.
When the first condition trigger is met, the corresponding spawning trigger is enabled and all other condition triggers are disabled.
Thanks for helping out, guys.
-
conboy
- Lieutenant Colonel - Fw 190A

- Posts: 1169
- Joined: Sun Apr 09, 2017 4:18 pm
- Location: Lower Alabama
Re: Set Trigger State
Dayam! Good job, wish I coulda been more help. Thanks for passing this on, I'm sure I'll need it one day!
conboy
I still don't understand why it didn't work the way you had it to start with...
conboy
I still don't understand why it didn't work the way you had it to start with...
