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

RemoveStructure

From AGEWiki

(Difference between revisions)
Jump to: navigation, search
m
 
Line 13: Line 13:
| param1 = SelectionType
| param1 = SelectionType
| param1desc = One of
| param1desc = One of
-
:ByDefUID = Valid Structure Alias
+
:ByDefUID = Valid Structure [[Alias]]
-
:ByAttrib = Structures with a defined Attribute
+
:ByAttrib = Structures with a defined [[Attribute]]
:ByKind = One of:
:ByKind = One of:
::$stuAny =-1
::$stuAny =-1
Line 27: Line 27:
| param2desc = One of
| param2desc = One of
:ALL = All structures
:ALL = All structures
-
:RANDOM_KEYWORD = ??? Hocus Pocus
+
:RANDOM = Randomly select one structure
| param3 = ANYFAC_OR_SINGLEFAC_KEYWORD
| param3 = ANYFAC_OR_SINGLEFAC_KEYWORD
| param3desc = One of
| param3desc = One of
:ANYFAC = any currently selected faction
:ANYFAC = any currently selected faction
-
:SINGLEFAC = Valid [[Faction Alias|Faction]]
+
:SINGLEFAC = Currently selected [[Faction Alias|Faction]]
}}
}}

Latest revision as of 13:07, 20 May 2010

RemoveStructure

Syntax  

RemoveStructure = SelectionType; ALL_OR_RANDOM_KEYWORD; ANYFAC_OR_SINGLEFAC_KEYWORD

Description

Remove one or more structures of a given region.

Example  

RemoveStructure = ByDefUID $Harbor;ALL;ANYFAC

Will remove all harbors in the selected region belonging to any faction.  

RemoveStructure = ByAttrib *MyCustomAttrib*;ALL;ANYFAC

Will remove all structures from any faction in the region which have the attribute *MyCustomAttrib*, as specified in the Structures DB.  

RemoveStructure = ByKind $stuProdSite;RANDOM;SINGLEFAC

Will remove one production structure at random (a mine, an industry…) from the selected faction in the region.

 

Parameters

SelectionType

One of

ByDefUID = Valid Structure Alias
ByAttrib = Structures with a defined Attribute
ByKind = One of:
$stuAny =-1
$stuHarbor = 0
$stuFort = 1
$stuCity = 2
$stuDepot = 3
$stuProdSite = 4
$stuVarious = 5
ALL_OR_RANDOM_KEYWORD

One of

ALL = All structures
RANDOM = Randomly select one structure
ANYFAC_OR_SINGLEFAC_KEYWORD

One of

ANYFAC = any currently selected faction
SINGLEFAC = Currently selected Faction
Forums