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

SelectRegInArea

From AGEWiki

(Difference between revisions)
Jump to: navigation, search
m (Info taken from this post: http://www.ageod-forum.com/showthread.php?10703-Editing-events-need-help!&p=103092&viewfull=1#post103092)
m (add note re: optional parameters)
 
Line 7: Line 7:
  [;OwnedCitiesEmptyFirst][;Squared][;WildTerrains]
  [;OwnedCitiesEmptyFirst][;Squared][;WildTerrains]
| description = Selects a single [[region]] in the specified [[area]], subject to the limiting optional parameters
| description = Selects a single [[region]] in the specified [[area]], subject to the limiting optional parameters
-
:Note: All the parameters would need to be on one line (one cell in DB) but are shown as above for documentation formatting.  
+
:Note: All the parameters would need to be on one line (one cell in DB) but are shown as above for documentation formatting.
 +
 
 +
:Note: All parameters in '''[ ]''' are optional.  
| example =
| example =
| example-description =  
| example-description =  

Latest revision as of 15:20, 18 November 2012

SelectRegInArea

Syntax  

SelectRegInArea = AreaUID[;CondSkip][;NotEnemy][;OpenHarbor]
[;OwnedVPCities][;OwnedObjCities][;OwnedCities]
[;OwnedCitiesEmptyFirst][;Squared][;WildTerrains]

Description

Selects a single region in the specified area, subject to the limiting optional parameters

Note: All the parameters would need to be on one line (one cell in DB) but are shown as above for documentation formatting.
Note: All parameters in [ ] are optional.



 

Parameters

AreaUID

Valid alias for the area to be searched

[;CondSkip]

Do not execute this command if the Region selection list already contains an entry

[;NotEnemy]

Only select from regions with no enemy units present

[;OpenHarbor]

Only select from regions with an unblockaded or unfrozen port

[;OwnedObjCities][;OwnedVPCities]

Only select from regions that are Objectives or Strategic Cities

[;OwnedCities]

Only select from regions that are in faction's control

[;OwnedCitiesEmptyFirst]

Only select from regions with controlled but "empty" cities (no garrison)

[;Squared]

All selected regions which have a city have a probability to be picked = to their structure level. If squared, you square the structure level.

{{{param10}}}

{{{param10desc}}}

[;WildTerrains]

Only select from regions with "Wild" Civ_level as defined in the Citiesxxx.ini of a Setup

Forums