Due to a sudden burst in spammer activity, account creation has been temporarily disabled. Sorry for the inconvenience to any new potential contributors.
EvalRgnOwned
From AGEWiki
(clarify control of structure) |
|||
Line 5: | Line 5: | ||
| syntax = RegionUID [;NOT] [;FriendToo] [;UpdateSel] | | syntax = RegionUID [;NOT] [;FriendToo] [;UpdateSel] | ||
| description = TRUE if current selected [[Faction]] owns ([[Control]]s) the specified [[Region]] | | description = TRUE if current selected [[Faction]] owns ([[Control]]s) the specified [[Region]] | ||
+ | |||
+ | Note: To be TRUE, any structures in the region must also be owned. Thus high Military | ||
+ | Control in a region where a besieged structure is still controlled by another | ||
+ | faction will return FALSE. | ||
| example = $Boston; NOT | | example = $Boston; NOT | ||
- | | example-description = TRUE if current selected Faction does not control Boston. | + | | example-description = TRUE if current selected Faction does not control the strutcture in Boston region. |
| example2 = | | example2 = | ||
| example2-description = | | example2-description = | ||
Line 16: | Line 20: | ||
| param3desc = ''(Diplomacy Rule must be Simple or Complex, and not set to None (VGN & ROP only for now))'' Optional. Tests if the Region is owned by a Friend of the Faction. | | param3desc = ''(Diplomacy Rule must be Simple or Complex, and not set to None (VGN & ROP only for now))'' Optional. Tests if the Region is owned by a Friend of the Faction. | ||
| param4 = [;UpdateSel] | | param4 = [;UpdateSel] | ||
- | | param4desc = Optional. If present, the faction and region in selection are updated, if the command is evaluated as true (NOT | + | | param4desc = Optional. If present, the faction and region in selection are updated, if the command is evaluated as true (NOT doesn't work here). |
| param5 = | | param5 = | ||
| param5desc = | | param5desc = | ||
}} | }} |
Latest revision as of 15:17, 31 December 2011
EvalRgnOwned | |||
Syntax EvalRgnOwned = RegionUID [;NOT] [;FriendToo] [;UpdateSel] Description TRUE if current selected Faction owns (Controls) the specified Region Note: To be TRUE, any structures in the region must also be owned. Thus high Military Control in a region where a besieged structure is still controlled by another faction will return FALSE. Example EvalRgnOwned = $Boston; NOT TRUE if current selected Faction does not control the strutcture in Boston region.
|
Parameters
Alias of the target Region
Optional. Reverses the result to be TRUE if the Faction does NOT own the Region
(Diplomacy Rule must be Simple or Complex, and not set to None (VGN & ROP only for now)) Optional. Tests if the Region is owned by a Friend of the Faction.
Optional. If present, the faction and region in selection are updated, if the command is evaluated as true (NOT doesn't work here). |