User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

New Command: EvalRgnStruc

Wed May 07, 2008 2:13 pm

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
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
lodilefty
Posts: 7616
Joined: Sat Aug 11, 2007 3:27 pm
Location: Finger Lakes, NY GMT -5 US Eastern

Wed May 07, 2008 2:42 pm

:king:

Can the |NOT be appended to return "True" if no structure exists?
Always ask yourself: "Am I part of the Solution?" If you aren't, then you are part of the Problem!
[CENTER][/CENTER]
[CENTER]Visit AGEWiki - your increasingly comprehensive source for information about AGE games[/CENTER]

[CENTER]Rules for new members[/CENTER]
[CENTER]Forum Rules[/CENTER]

[CENTER]Help desk: support@slitherine.co.uk[/CENTER]

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Wed May 07, 2008 3:23 pm

Now yes...
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Wed May 21, 2008 3:51 pm

bump, moved to general forum
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 14 guests