Page 1 of 1

New Command: EvalRgnStruc

Posted: Wed May 07, 2008 2:13 pm
by Pocus
EvalRgnStruc = RegionUID; <FactionValue>; StructureSearchType <Value>

FactionValue: Must be FACALL or a faction tag.

StructureSearchType: Must be either STRUCANY, STRUCDEF, STRUCKIND.

STRUCANY: Any structure fits you.

STRUCDEF: You search for a particular structure type, Value is the UID of this type. See the Structures directory for the UID of each structure.

STRUCKIND: You search for a particular structure kind, Value is the alias of the kind. Valid aliases are:
$stuAny =-1
$stuHarbor = 0
$stuFort = 1
$stuCity = 2
$stuDepot = 3
$stuProdSite = 4
$stuVarious = 5

This is mostly used for VGN+ where there are much more structures than before. For example all industries are of kind $stuProdSite.

Example:

EvalRgnStruc = $Boston;USA;STRUCDEF $Fort
Return true if there is a fort in Boston

Posted: Wed May 07, 2008 2:42 pm
by lodilefty
:king:

Can the |NOT be appended to return "True" if no structure exists?

Posted: Wed May 07, 2008 3:23 pm
by Pocus
Now yes...

Posted: Wed May 21, 2008 3:51 pm
by Pocus
bump, moved to general forum