Check Units near Hex - infinity trigger

Moderators: Order of Battle Moderators, The Artistocrats

Post Reply
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9596
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Check Units near Hex - infinity trigger

Post 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 535 times
bebro
Slitherine
Slitherine
Posts: 4573
Joined: Sun Nov 19, 2006 12:50 pm

Re: Check Units near Hex - infinity trigger

Post 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 530 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)
Erik2
Order of Battle Moderator
Order of Battle Moderator
Posts: 9596
Joined: Thu Jul 14, 2011 12:59 pm
Location: Norway

Re: Check Units near Hex - infinity trigger

Post 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.
Post Reply

Return to “Order of Battle : World War II - Tech Support”