Jump to content

AI: triggers and pauses


Freyberg

Recommended Posts

AI Question:

I am trying to set up an order that will trigger when the enemy reaches a certain phase line, after which will follow a series of timed orders (shoot and scoot in effect).

In the AI screen, when setting up an Order, in the bottom LH corner, there are counters and the 'wait until' button.

Setting up the trigger is no problem, but the timing counter is confusing.

Do the Exit Between counters refer to 'absolute' timing, i.e. relative to the beginning of the game;
or are they 'relative' - i.e. if I set it to "exit between 1:00 and 2:00" the unit will wait for a minute or two and then proceed to the next order?

Thanks for your help.

Link to comment
Share on other sites

11 minutes ago, Freyberg said:

Has anyone developed a workaround to allow a series of orders to follow from one trigger event?

You might be misunderstanding the trigger mechanism just a little.

The two times set the period for which the trigger is live (on the game clock). So a trigger will not work if activated before the first time, and the trigger will automatically activate by the end time if not previously triggered. 

However once live the trigger orders will activate as soon as the trigger is activated (the following turn).

Keep in mind that triggers are not conditional and so will always trigger based on either being tripped while active, or at the end of the active period. (Although this can be set for after the game end, but doing so means the unit can be given no subsequent orders)

HTH, but to be honest the best way to get your head around the concepts is to set up simple movements in the editor and replay them in scenario author mode until you can see the connection between the orders you have issued and AI movement you want to see.

P

Link to comment
Share on other sites

3 minutes ago, Pete Wenman said:

You might be misunderstanding the trigger mechanism just a little.

The two times set the period for which the trigger is live (on the game clock). So a trigger will not work if activated before the first time, and the trigger will automatically activate by the end time if not previously triggered. 

However once live the trigger orders will activate as soon as the trigger is activated (the following turn).

Keep in mind that triggers are not conditional and so will always trigger based on either being tripped while active, or at the end of the active period. (Although this can be set for after the game end, but doing so means the unit can be given no subsequent orders)

HTH, but to be honest the best way to get your head around the concepts is to set up simple movements in the editor and replay them in scenario author mode until you can see the connection between the orders you have issued and AI movement you want to see.

P

No, I think understand them perfectly well.

What I want is a series of timed orders to proceed from a single trigger event, not at a pre-set time. Like this:

order 1 (triggered)
(pause)
order 2
(pause)
order 3
...and so on.

The triggered order is easy - but because the clock in the game is absolute, other orders cannot follow from a triggered order.

 

Link to comment
Share on other sites

14 minutes ago, Freyberg said:

What I want is a series of timed orders to proceed from a single trigger event, not at a pre-set time. Like this:

Does the wait for trigger in the AI editor not do this ? This trigger relies on the orders of another unit to be activated rather than a terrain type objective.

 

Link to comment
Share on other sites

11 minutes ago, Pete Wenman said:

Does the wait for trigger in the AI editor not do this ? This trigger relies on the orders of another unit to be activated rather than a terrain type objective.

 

Yeah, I thought about that - it's a very fiddly workaround though, for what should be a straightforward series of pauses.

And if the other unit is knocked out or fails to fulfill its orders, the trigger won't happen.

I hope BF add some flexibility to the AI in future patches or updates - it doesn't sound like a major overhaul would be required.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...