Editing Mod API Reference:TerritoryModification

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 3: Line 3:
 
* '''AddSpecialUnits''' ''Array<[[Mod API Reference:SpecialUnit|SpecialUnit]]>'':  
 
* '''AddSpecialUnits''' ''Array<[[Mod API Reference:SpecialUnit|SpecialUnit]]>'':  
 
* '''SetArmiesTo''' ''[[Mod API Reference:Nullable|Nullable]]<integer>'': Sets the number of armies on the territory to this number.
 
* '''SetArmiesTo''' ''[[Mod API Reference:Nullable|Nullable]]<integer>'': Sets the number of armies on the territory to this number.
* '''AddArmies''' ''[[Mod API Reference:Nullable|Nullable]]<integer>'': Adds (or removes with negative numbers) armies from the territory.  When adding or removing a specific number, this is preferred over SetArmiesTo since it promotes compatibility with other mods.
+
* '''AddArmies''' ''[[Mod API Reference:Nullable|Nullable]]<integer>'': Adds (or removes with negative numbers) armies from the territory.  When adding or removing a specific number, this is preferred over SetArmiesTo since it promotes compatbility with other mods.
 
* '''SetOwnerOpt''' ''[[Mod API Reference:Nullable|Nullable]]<[[Mod API Reference:PlayerID|PlayerID]]>'':  
 
* '''SetOwnerOpt''' ''[[Mod API Reference:Nullable|Nullable]]<[[Mod API Reference:PlayerID|PlayerID]]>'':  
 
* '''SetStructuresOpt''' ''Table<[[Mod API Reference:StructureType|StructureType]] (enum),integer>'': Sets the number of structures, such as [[cities]], on this territory.  Nil to simply make no changes.
 
* '''SetStructuresOpt''' ''Table<[[Mod API Reference:StructureType|StructureType]] (enum),integer>'': Sets the number of structures, such as [[cities]], on this territory.  Nil to simply make no changes.
* '''AddStructuresOpt''' ''Table<[[Mod API Reference:StructureType|StructureType]] (enum),integer>'': Adds (or removes with negative numbers) structures, such as [[cities]], on this territory.  When adding or removing a specific number of structures, this is preferred over SetStructuresOpt since it promotes compatibility with other mods.
+
* '''AddStructuresOpt''' ''Table<[[Mod API Reference:StructureType|StructureType]] (enum),integer>'': Adds (or removes with negative numbers) structures, such as [[cities]], on this territory.  When adding or removing a specific number of structures, this is preferred over SetStructuresOpt since it promotes compatbility with other mods.
* '''RemoveSpecialUnitsOpt''' ''[[Mod API Reference:HashSet|HashSet]]<[[Mod API Reference:Guid|Guid]]>'': Specifies the IDs of special units you want removed (deleted) from this territory.  Added in v5.22.0.
+
  
 
== Functions ==
 
== Functions ==

Please note that all contributions to Warzone Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Warzone Wiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox