Page 1 of 1

Check Units near Hex - infinity trigger

Posted: Tue Oct 05, 2021 12:08 pm
by Erik2
This trigger works fine if set up to fire once. The objective changes ownership.
But the enemy may retake it sand the trigger wont fire a second time.
So I've set the frequency to -1
The result is that the game crashes to the desktop the second I try to move the British (Special Service) unit to the objective.
This looks like a bug.

Is there any other way to set up this condition/effect?

infinite.jpg
infinite.jpg (207.81 KiB) Viewed 537 times

Re: Check Units near Hex - infinity trigger

Posted: Tue Oct 05, 2021 12:46 pm
by bebro
I have not had a crash yet - using a -1 hexowner change when Fra unit is in range 1 from Ger flag. I have not tested any back and forth changes tho yet.
changehexowner_perma.jpg
changehexowner_perma.jpg (214.84 KiB) Viewed 532 times
But without further conditions this is rather something I'd avoid, as you see on pic the flag changes to Fra even with the Ger unit still on top.

This may be avoidable depending on when the trigger is supposed to fire (all/turns start/moves etc)

However, even without a crash, that could be problematic, for example supply wise.


If both sides can run into the same situation maybe use two -1 triggers to cover each side, but with extra checks. At least I'd try

-1 trigger with both:
1. Unit near hex (like right now - attacker switches ownership when nearby)
2. Unit near hex (make sure hex is empty, not occupied by defender still)

So the trigger is supposed to perma-fire, but only if 1 is next to hex, and no 2 unit on top.

If that works you could do the 2nd one simply by exchanging sides in 1 and 2 (if needed, depends on your map/scn)

Re: Check Units near Hex - infinity trigger

Posted: Tue Oct 05, 2021 1:37 pm
by Erik2
Thanks bebro.

This scenario is part of a modded campaigns. So I solved the issue by simply removing the noCapture trait from all SAS/Commando units.
I think these units should be able to capture objectives anyway, similar to the Chindits.

But the infinity crash should be fixed (if you can reproduce it, of course).
It happens immediately when you select the unit and click on the objective hex.