Due to a sudden burst in spammer activity, account creation has been temporarily disabled. Sorry for the inconvenience to any new potential contributors.

PickFromRegList

From AGEWiki

Jump to: navigation, search

PickFromRegList

Syntax  

PickFromRegList = [;NotEnemy] [NotAdj] [;NoBasicBias] [;FavorLocalRatio] [;FavorLackLocalRatio]
          [;FavorCityLevel] [;FavorHarborLevel]  [;FavorFortLevel]
          [;FavorLoyalty] [;FavorLackLoyalty] [;FavorVP] [;FavorOBJ]
          [;FavorColPen] [;FavorLackColPen] [;AllowBlocked] [;NoLowMC]

Description

Select a random region from the region list (AddToRegList).

Note: All parameters are optional.  
  The command can be applied without parameters, which will then apply the defaults.

As of November 2010 the command received a major overall. NotAdj is maitained for retro compatibility purpose but this switch should only be used with NotEnemy, and not be used with any other of the new switches.

The new switches, starting with FavorLocalRatio will alter the probability of a region to be picked. For example, the (friendly to you) local ratio of troops within 3 regions of the "target" can vary between 0.2 (lower bound) and 10 (upper bound), so a region with a high ratio toward you will be picked more often. The others switches can also be used in conjunction.

For example FavorHarborLevel used with FavorVP will remove from the list any region that is not an harbor level with a VP... On the other hand, all such harbors will have a probability tied to their harbor level and amount of VP given (the to parameters are multiplied).

Please also note that the older command used a default bias, the regions first listed were more often picked (this was on purpose as regions were often added one by one in a precise order, for example to have the British land first on some harbors in BOA1. If you use the new switches, it is greatly recommended you disable this default bias, to do so, use NoBasicBias).

Also, the structures tested can belong to another faction in the command, but the objectives tested must be one of the current faction's objective FavorOBJ.

Note: Effective with game engines dated 120829 or later:
[AllowBlocked]
The new default will not allow selection of a "blocked region" (BlockState = 1 or = 2)
The new parameter will allow selection of blocked regions.

Example  

PickFromRegList = NotEnemy

Select a random region that doesn't contain any enemy forces. As NotAdj is not specified, an adjacent region can be picked.  

PickFromRegList = NotEnemy;NotAdj

Select a random region that doesn't contain any enemy stacks.  

PickFromRegList = FavorLackLoyalty

Regions that have a lack of loyalty will be more often picked.

PickFromRegList = FavorHarborLevel
Only regions with a Harbor can be picked.
 

Parameters

NotEnemy

Literal; Region is not picked if an enemy unit is present in the region.

NotAdj

Literal; To use with NotEnemy.

NoLowMC

Literal; Region is not picked if Military Control is below 50%

See notes at left

...

Forums