Due to a sudden burst in spammer activity, account creation has been temporarily disabled. Sorry for the inconvenience to any new potential contributors.
EvalRgnStruc
From AGEWiki
(Difference between revisions)
(corrected example to FACALL) |
(add Note on Kind and exclusivity) |
||
Line 7: | Line 7: | ||
:See [[media:Wiki_Example_createGroup.xls|Spreadsheet example]] for syntax used in the Database | :See [[media:Wiki_Example_createGroup.xls|Spreadsheet example]] for syntax used in the Database | ||
:See also [[ChangeStrucType]] and [[RemoveStructure]] | :See also [[ChangeStrucType]] and [[RemoveStructure]] | ||
+ | |||
+ | |||
+ | |||
+ | Note: In a single region, there can only be one [[Structures|Structure]] of each Kind (see param3). | ||
+ | Additionally, all '''IsExclusive''' structures [as defined by parameter in | ||
+ | Structures DB] must be of same faction. | ||
+ | |||
| param1 = RegionUID | | param1 = RegionUID | ||
| param1desc = A valid Region Alias except if -1: current region selected will be used instead. | | param1desc = A valid Region Alias except if -1: current region selected will be used instead. |
Latest revision as of 12:56, 13 August 2012
EvalRgnStruc | |||
Syntax EvalRgnStruc = RegionUID_or_-1; <FactionValue>; StructureSearchType <Value> [;NOT] Description Searches in a region for the presence of a structure (or absence if [NOT] parameter is applied) Example EvalRgnStruc = $Oriskany; FACALL; STRUCTDEF $Fort; NOT Return "TRUE" if there is no Fort owned by any Faction Region Oriskany
Note: In a single region, there can only be one Structure of each Kind (see param3). Additionally, all IsExclusive structures [as defined by parameter in Structures DB] must be of same faction.
|
Parameters
A valid Region Alias except if -1: current region selected will be used instead.
Must be FACALL or a FactionTag
Must be either STRUCANY, STRUCDEF, STRUCKIND, STRUCSUB, STRUCFAM, STRUCATR.
Optional parameter. Searches for the absence of the defined structure type |