Jump to content
Sign in to follow this  
mcaryf1

RANGE = In AI scripts

Recommended Posts

Hi Bill or whoever

Could you please clarify how the "RANGE =" qualifier should be used in the AI scripts? I notice for a lot of Japanese scripts it has a value of 30 but in European ones it is more typically 10.

Regards

Mike

Share this post


Link to post
Share on other sites

Hi Mike,

Al is correct and just one small addition in that for almost all of the plans it also includes a distance check to the #GOAL_POSITION.

So for example, an OFFENSIVE plan with RANGE= 10, the game engine will check for units within 10 tiles of either the #GOAL_POSITION and/or #FRIENDLY_POSITION.

This ensures that it will take the closest applicable units and not waste time checking all over the map for available units which speeds things up quite a bit.

Hubert

Share this post


Link to post
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
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.

Sign in to follow this  

×
×
  • Create New...