<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://war.app/index.php?action=history&amp;feed=atom&amp;title=Mod_API_Reference%3AGameOrderCustom</id>
	<title>Mod API Reference:GameOrderCustom - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://war.app/index.php?action=history&amp;feed=atom&amp;title=Mod_API_Reference%3AGameOrderCustom"/>
	<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;action=history"/>
	<updated>2026-04-18T23:19:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=7418&amp;oldid=prev</id>
		<title>Fizzer at 22:12, 29 March 2025</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=7418&amp;oldid=prev"/>
		<updated>2025-03-29T22:12:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:12, 29 March 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;OccursInPhaseOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:Nullable|Nullable]]&amp;lt;[[Mod API Reference:TurnPhase|TurnPhase]] (enum)&amp;gt;&amp;#039;&amp;#039;:  If not nil, then orders will be forced to be placed in this phase.  Players will not be able to move this order above an order of a lower phase, or below an order of a higher phase.  Added in v5.22.0. Note: custom turn phases cannot be used in  versions 5.31 or later.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;OccursInPhaseOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:Nullable|Nullable]]&amp;lt;[[Mod API Reference:TurnPhase|TurnPhase]] (enum)&amp;gt;&amp;#039;&amp;#039;:  If not nil, then orders will be forced to be placed in this phase.  Players will not be able to move this order above an order of a lower phase, or below an order of a higher phase.  Added in v5.22.0. Note: custom turn phases cannot be used in  versions 5.31 or later.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;TerritoryAnnotationsOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:TerritoryID|TerritoryID]],[[Mod API Reference:TerritoryAnnotation|TerritoryAnnotation]]&amp;gt;&amp;#039;&amp;#039;:  When the order is selected in the orders list by the player, these messages will be presented on top of the territories specified.   (Added in version 5.34.1)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;TerritoryAnnotationsOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:TerritoryID|TerritoryID]],[[Mod API Reference:TerritoryAnnotation|TerritoryAnnotation]]&amp;gt;&amp;#039;&amp;#039;:  When the order is selected in the orders list by the player, these messages will be presented on top of the territories specified.   (Added in version 5.34.1)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &#039;&#039;&#039;JumpToActionSpotOpt&#039;&#039;&#039; &#039;&#039;[[Mod API Reference:RectangleVM|RectangleVM]]&#039;&#039;: If specified, this will be the spot on the map that the map focuses on when the player clicks on this event in the orders list.  Specify coordinates on the map, which you can get by looking at a [[Mod API Reference:TerritoryDetails|TerritoryDetails]] object. (Added in version 5.34.1)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Mod_Security|Mod security]] should be applied to [[Mod_Hooks|Mod Hooks]] working with this card&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Mod_Security|Mod security]] should be applied to [[Mod_Hooks|Mod Hooks]] working with this card&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Fizzer</name></author>
	</entry>
	<entry>
		<id>https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=7417&amp;oldid=prev</id>
		<title>Fizzer at 22:11, 29 March 2025</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=7417&amp;oldid=prev"/>
		<updated>2025-03-29T22:11:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:11, 29 March 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;CostOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;: Defines how much gold the order will cost the player in a [[Commerce]] game.  This should only be set in commerce games.  If CostOpt is set to nil, then it&amp;#039;s assumed to be the same as having a cost of 0.   The game will take care of taking the player&amp;#039;s resources away correctly, both on the client and server, when inserting an order with a cost into their orders list.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;CostOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;: Defines how much gold the order will cost the player in a [[Commerce]] game.  This should only be set in commerce games.  If CostOpt is set to nil, then it&amp;#039;s assumed to be the same as having a cost of 0.   The game will take care of taking the player&amp;#039;s resources away correctly, both on the client and server, when inserting an order with a cost into their orders list.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;OccursInPhaseOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:Nullable|Nullable]]&amp;lt;[[Mod API Reference:TurnPhase|TurnPhase]] (enum)&amp;gt;&amp;#039;&amp;#039;:  If not nil, then orders will be forced to be placed in this phase.  Players will not be able to move this order above an order of a lower phase, or below an order of a higher phase.  Added in v5.22.0. Note: custom turn phases cannot be used in  versions 5.31 or later.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;OccursInPhaseOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:Nullable|Nullable]]&amp;lt;[[Mod API Reference:TurnPhase|TurnPhase]] (enum)&amp;gt;&amp;#039;&amp;#039;:  If not nil, then orders will be forced to be placed in this phase.  Players will not be able to move this order above an order of a lower phase, or below an order of a higher phase.  Added in v5.22.0. Note: custom turn phases cannot be used in  versions 5.31 or later.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &#039;&#039;&#039;TerritoryAnnotationsOpt&#039;&#039;&#039; &#039;&#039;Table&amp;lt;[[Mod API Reference:TerritoryID|TerritoryID]],[[Mod API Reference:TerritoryAnnotation|TerritoryAnnotation]]&amp;gt;&#039;&#039;:  When the order is selected in the orders list by the player, these messages will be presented on top of the territories specified.   (Added in version 5.34.1)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Mod_Security|Mod security]] should be applied to [[Mod_Hooks|Mod Hooks]] working with this card&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Mod_Security|Mod security]] should be applied to [[Mod_Hooks|Mod Hooks]] working with this card&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Fizzer</name></author>
	</entry>
	<entry>
		<id>https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=7196&amp;oldid=prev</id>
		<title>DanWL60: Note about custom turn phases not allowed in newer clients</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=7196&amp;oldid=prev"/>
		<updated>2025-01-30T22:51:43Z</updated>

		<summary type="html">&lt;p&gt;Note about custom turn phases not allowed in newer clients&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:51, 30 January 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Payload&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;: Data the mod wishes to store along with this order, but does not want players to see.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Payload&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;: Data the mod wishes to store along with this order, but does not want players to see.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;CostOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;: Defines how much gold the order will cost the player in a [[Commerce]] game.  This should only be set in commerce games.  If CostOpt is set to nil, then it&amp;#039;s assumed to be the same as having a cost of 0.   The game will take care of taking the player&amp;#039;s resources away correctly, both on the client and server, when inserting an order with a cost into their orders list.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;CostOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;: Defines how much gold the order will cost the player in a [[Commerce]] game.  This should only be set in commerce games.  If CostOpt is set to nil, then it&amp;#039;s assumed to be the same as having a cost of 0.   The game will take care of taking the player&amp;#039;s resources away correctly, both on the client and server, when inserting an order with a cost into their orders list.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;OccursInPhaseOpt&#039;&#039;&#039; &#039;&#039;[[Mod API Reference:Nullable|Nullable]]&amp;lt;[[Mod API Reference:TurnPhase|TurnPhase]] (enum)&amp;gt;&#039;&#039;:  If not nil, then orders will be forced to be placed in this phase.  Players will not be able to move this order above an order of a lower phase, or below an order of a higher phase.  Added in v5.22.0.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;OccursInPhaseOpt&#039;&#039;&#039; &#039;&#039;[[Mod API Reference:Nullable|Nullable]]&amp;lt;[[Mod API Reference:TurnPhase|TurnPhase]] (enum)&amp;gt;&#039;&#039;:  If not nil, then orders will be forced to be placed in this phase.  Players will not be able to move this order above an order of a lower phase, or below an order of a higher phase.  Added in v5.22.0&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. Note: custom turn phases cannot be used in  versions 5.31 or later&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Mod_Security|Mod security]] should be applied to [[Mod_Hooks|Mod Hooks]] working with this card&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Mod_Security|Mod security]] should be applied to [[Mod_Hooks|Mod Hooks]] working with this card&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>DanWL60</name></author>
	</entry>
	<entry>
		<id>https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=6090&amp;oldid=prev</id>
		<title>Kaninchen: Forgot to remove that part yesterday</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=6090&amp;oldid=prev"/>
		<updated>2024-04-18T16:58:22Z</updated>

		<summary type="html">&lt;p&gt;Forgot to remove that part yesterday&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:58, 18 April 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;CostOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;: Defines how much gold the order will cost the player in a [[Commerce]] game.  This should only be set in commerce games.  If CostOpt is set to nil, then it&amp;#039;s assumed to be the same as having a cost of 0.   The game will take care of taking the player&amp;#039;s resources away correctly, both on the client and server, when inserting an order with a cost into their orders list.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;CostOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;: Defines how much gold the order will cost the player in a [[Commerce]] game.  This should only be set in commerce games.  If CostOpt is set to nil, then it&amp;#039;s assumed to be the same as having a cost of 0.   The game will take care of taking the player&amp;#039;s resources away correctly, both on the client and server, when inserting an order with a cost into their orders list.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;OccursInPhaseOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:Nullable|Nullable]]&amp;lt;[[Mod API Reference:TurnPhase|TurnPhase]] (enum)&amp;gt;&amp;#039;&amp;#039;:  If not nil, then orders will be forced to be placed in this phase.  Players will not be able to move this order above an order of a lower phase, or below an order of a higher phase.  Added in v5.22.0.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;OccursInPhaseOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:Nullable|Nullable]]&amp;lt;[[Mod API Reference:TurnPhase|TurnPhase]] (enum)&amp;gt;&amp;#039;&amp;#039;:  If not nil, then orders will be forced to be placed in this phase.  Players will not be able to move this order above an order of a lower phase, or below an order of a higher phase.  Added in v5.22.0.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;Important to note&#039;&#039;&#039;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Mod_Security|Mod security]] should be applied to [[Mod_Hooks|Mod Hooks]] working with this card&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Mod_Security|Mod security]] should be applied to [[Mod_Hooks|Mod Hooks]] working with this card&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kaninchen</name></author>
	</entry>
	<entry>
		<id>https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=6088&amp;oldid=prev</id>
		<title>Fizzer: Reverted edits by Fizzer (talk) to last revision by Kaninchen</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=6088&amp;oldid=prev"/>
		<updated>2024-04-17T21:48:31Z</updated>

		<summary type="html">&lt;p&gt;Reverted edits by &lt;a href=&quot;/wiki/Special:Contributions/Fizzer&quot; title=&quot;Special:Contributions/Fizzer&quot;&gt;Fizzer&lt;/a&gt; (&lt;a href=&quot;/wiki/User_talk:Fizzer&quot; title=&quot;User talk:Fizzer&quot;&gt;talk&lt;/a&gt;) to last revision by &lt;a href=&quot;/wiki/User:Kaninchen&quot; title=&quot;User:Kaninchen&quot;&gt;Kaninchen&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:48, 17 April 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Important to note&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Important to note&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The Server &lt;/del&gt;[[Mod &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Hooks&lt;/del&gt;]] &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;which accept the &#039;&#039;&#039;GameOrderCustom&#039;&#039;&#039; &lt;/del&gt;should &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;only depend on the payload, as hackers may modify all fields (&#039;&#039;&#039;Message&#039;&#039;&#039;, &#039;&#039;&#039;Payload&#039;&#039;&#039;, &#039;&#039;&#039;CostOpt&#039;&#039;&#039; and &#039;&#039;&#039;OccursInPhaseOpt&#039;&#039;&#039;) &lt;/del&gt;to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;gain an advantage. Note that, since hackers can modify &#039;&#039;&#039;Payload&#039;&#039;&#039; too, it is essential to verify that it was even possible for the player to send the received &#039;&#039;&#039;Payload&#039;&#039;&#039; in the first place. All other Fields should be recreated by the Server.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Mod_Security|&lt;/ins&gt;Mod &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;security&lt;/ins&gt;]] should &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;be applied &lt;/ins&gt;to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Mod_Hooks|Mod Hooks]] working with this card&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Functions ==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;WL.GameOrderCustom.Create&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039;playerID&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:PlayerID|PlayerID]]&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;message&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;payload&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;costOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;) (static) returns [[Mod API Reference:GameOrderCustom|GameOrderCustom]]:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;WL.GameOrderCustom.Create&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039;playerID&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:PlayerID|PlayerID]]&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;message&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;payload&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;costOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;) (static) returns [[Mod API Reference:GameOrderCustom|GameOrderCustom]]:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Mod API Reference]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Mod API Reference]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Fizzer</name></author>
	</entry>
	<entry>
		<id>https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=6085&amp;oldid=prev</id>
		<title>Fizzer: Reverted edits by Kaninchen (talk) to last revision by DanWL60</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=6085&amp;oldid=prev"/>
		<updated>2024-04-17T21:46:01Z</updated>

		<summary type="html">&lt;p&gt;Reverted edits by &lt;a href=&quot;/wiki/Special:Contributions/Kaninchen&quot; title=&quot;Special:Contributions/Kaninchen&quot;&gt;Kaninchen&lt;/a&gt; (&lt;a href=&quot;/wiki/index.php?title=User_talk:Kaninchen&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Kaninchen (page does not exist)&quot;&gt;talk&lt;/a&gt;) to last revision by &lt;a href=&quot;/wiki/User:DanWL60&quot; title=&quot;User:DanWL60&quot;&gt;DanWL60&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:46, 17 April 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Important to note&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Important to note&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Mod_Security|&lt;/del&gt;Mod &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;security&lt;/del&gt;]] should be &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;applied to [[Mod_Hooks|Mod Hooks]] working with this card&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The Server &lt;/ins&gt;[[Mod &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Hooks&lt;/ins&gt;]] &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;which accept the &#039;&#039;&#039;GameOrderCustom&#039;&#039;&#039; should only depend on the payload, as hackers may modify all fields (&#039;&#039;&#039;Message&#039;&#039;&#039;, &#039;&#039;&#039;Payload&#039;&#039;&#039;, &#039;&#039;&#039;CostOpt&#039;&#039;&#039; and &#039;&#039;&#039;OccursInPhaseOpt&#039;&#039;&#039;) to gain an advantage. Note that, since hackers can modify &#039;&#039;&#039;Payload&#039;&#039;&#039; too, it is essential to verify that it was even possible for the player to send the received &#039;&#039;&#039;Payload&#039;&#039;&#039; in the first place. All other Fields &lt;/ins&gt;should be &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;recreated by the Server.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Functions ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;WL.GameOrderCustom.Create&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039;playerID&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:PlayerID|PlayerID]]&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;message&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;payload&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;costOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;) (static) returns [[Mod API Reference:GameOrderCustom|GameOrderCustom]]:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;WL.GameOrderCustom.Create&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039;playerID&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:PlayerID|PlayerID]]&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;message&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;payload&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;costOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;) (static) returns [[Mod API Reference:GameOrderCustom|GameOrderCustom]]:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Mod API Reference]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Mod API Reference]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Fizzer</name></author>
	</entry>
	<entry>
		<id>https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=6083&amp;oldid=prev</id>
		<title>Kaninchen: removed text about hackers, replaced with a link to the Mod Security wiki page</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=6083&amp;oldid=prev"/>
		<updated>2024-04-17T21:10:55Z</updated>

		<summary type="html">&lt;p&gt;removed text about hackers, replaced with a link to the Mod Security wiki page&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:10, 17 April 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Important to note&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Important to note&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The Server &lt;/del&gt;[[Mod &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Hooks&lt;/del&gt;]] &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;which accept the &#039;&#039;&#039;GameOrderCustom&#039;&#039;&#039; &lt;/del&gt;should &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;only depend on the payload, as hackers may modify all fields (&#039;&#039;&#039;Message&#039;&#039;&#039;, &#039;&#039;&#039;Payload&#039;&#039;&#039;, &#039;&#039;&#039;CostOpt&#039;&#039;&#039; and &#039;&#039;&#039;OccursInPhaseOpt&#039;&#039;&#039;) &lt;/del&gt;to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;gain an advantage. Note that, since hackers can modify &#039;&#039;&#039;Payload&#039;&#039;&#039; too, it is essential to verify that it was even possible for the player to send the received &#039;&#039;&#039;Payload&#039;&#039;&#039; in the first place. All other Fields should be recreated by the Server.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Mod_Security|&lt;/ins&gt;Mod &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;security&lt;/ins&gt;]] should &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;be applied &lt;/ins&gt;to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Mod_Hooks|Mod Hooks]] working with this card&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Functions ==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;WL.GameOrderCustom.Create&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039;playerID&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:PlayerID|PlayerID]]&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;message&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;payload&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;costOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;) (static) returns [[Mod API Reference:GameOrderCustom|GameOrderCustom]]:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;WL.GameOrderCustom.Create&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039;playerID&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:PlayerID|PlayerID]]&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;message&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;payload&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;costOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;) (static) returns [[Mod API Reference:GameOrderCustom|GameOrderCustom]]:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Mod API Reference]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Mod API Reference]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kaninchen</name></author>
	</entry>
	<entry>
		<id>https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=6069&amp;oldid=prev</id>
		<title>DanWL60 at 00:18, 2 April 2024</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=6069&amp;oldid=prev"/>
		<updated>2024-04-02T00:18:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:18, 2 April 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Important to note&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Important to note&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The Server [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Mod_Hooks&lt;/del&gt;]] which accept the &#039;&#039;&#039;GameOrderCustom&#039;&#039;&#039; should only depend on the payload, as hackers may modify all fields (&#039;&#039;&#039;Message&#039;&#039;&#039;, &#039;&#039;&#039;Payload&#039;&#039;&#039;, &#039;&#039;&#039;CostOpt&#039;&#039;&#039; and &#039;&#039;&#039;OccursInPhaseOpt&#039;&#039;&#039;) to gain an advantage. Note that, since hackers can modify &#039;&#039;&#039;Payload&#039;&#039;&#039; too, it is essential to verify that it was even possible for the player to send the received &#039;&#039;&#039;Payload&#039;&#039;&#039; in the first place. All other Fields should be recreated by the Server.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The Server [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Mod Hooks&lt;/ins&gt;]] which accept the &#039;&#039;&#039;GameOrderCustom&#039;&#039;&#039; should only depend on the payload, as hackers may modify all fields (&#039;&#039;&#039;Message&#039;&#039;&#039;, &#039;&#039;&#039;Payload&#039;&#039;&#039;, &#039;&#039;&#039;CostOpt&#039;&#039;&#039; and &#039;&#039;&#039;OccursInPhaseOpt&#039;&#039;&#039;) to gain an advantage. Note that, since hackers can modify &#039;&#039;&#039;Payload&#039;&#039;&#039; too, it is essential to verify that it was even possible for the player to send the received &#039;&#039;&#039;Payload&#039;&#039;&#039; in the first place. All other Fields should be recreated by the Server.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Functions ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Functions ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;WL.GameOrderCustom.Create&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039;playerID&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:PlayerID|PlayerID]]&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;message&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;payload&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;costOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;) (static) returns [[Mod API Reference:GameOrderCustom|GameOrderCustom]]:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;WL.GameOrderCustom.Create&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039;playerID&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:PlayerID|PlayerID]]&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;message&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;payload&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;costOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;) (static) returns [[Mod API Reference:GameOrderCustom|GameOrderCustom]]:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Mod API Reference]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Mod API Reference]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>DanWL60</name></author>
	</entry>
	<entry>
		<id>https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=6062&amp;oldid=prev</id>
		<title>Kaninchen: Added a warning due to possible hacking</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=6062&amp;oldid=prev"/>
		<updated>2024-03-19T16:31:05Z</updated>

		<summary type="html">&lt;p&gt;Added a warning due to possible hacking&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:31, 19 March 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;CostOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;: Defines how much gold the order will cost the player in a [[Commerce]] game.  This should only be set in commerce games.  If CostOpt is set to nil, then it&amp;#039;s assumed to be the same as having a cost of 0.   The game will take care of taking the player&amp;#039;s resources away correctly, both on the client and server, when inserting an order with a cost into their orders list.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;CostOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;: Defines how much gold the order will cost the player in a [[Commerce]] game.  This should only be set in commerce games.  If CostOpt is set to nil, then it&amp;#039;s assumed to be the same as having a cost of 0.   The game will take care of taking the player&amp;#039;s resources away correctly, both on the client and server, when inserting an order with a cost into their orders list.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;OccursInPhaseOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:Nullable|Nullable]]&amp;lt;[[Mod API Reference:TurnPhase|TurnPhase]] (enum)&amp;gt;&amp;#039;&amp;#039;:  If not nil, then orders will be forced to be placed in this phase.  Players will not be able to move this order above an order of a lower phase, or below an order of a higher phase.  Added in v5.22.0.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;OccursInPhaseOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:Nullable|Nullable]]&amp;lt;[[Mod API Reference:TurnPhase|TurnPhase]] (enum)&amp;gt;&amp;#039;&amp;#039;:  If not nil, then orders will be forced to be placed in this phase.  Players will not be able to move this order above an order of a lower phase, or below an order of a higher phase.  Added in v5.22.0.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;Important to note&#039;&#039;&#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The Server [[Mod_Hooks]] which accept the &#039;&#039;&#039;GameOrderCustom&#039;&#039;&#039; should only depend on the payload, as hackers may modify all fields (&#039;&#039;&#039;Message&#039;&#039;&#039;, &#039;&#039;&#039;Payload&#039;&#039;&#039;, &#039;&#039;&#039;CostOpt&#039;&#039;&#039; and &#039;&#039;&#039;OccursInPhaseOpt&#039;&#039;&#039;) to gain an advantage. Note that, since hackers can modify &#039;&#039;&#039;Payload&#039;&#039;&#039; too, it is essential to verify that it was even possible for the player to send the received &#039;&#039;&#039;Payload&#039;&#039;&#039; in the first place. All other Fields should be recreated by the Server.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Functions ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Functions ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;WL.GameOrderCustom.Create&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039;playerID&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:PlayerID|PlayerID]]&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;message&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;payload&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;costOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;) (static) returns [[Mod API Reference:GameOrderCustom|GameOrderCustom]]:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;WL.GameOrderCustom.Create&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039;playerID&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:PlayerID|PlayerID]]&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;message&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;payload&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;costOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;) (static) returns [[Mod API Reference:GameOrderCustom|GameOrderCustom]]:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Mod API Reference]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Mod API Reference]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kaninchen</name></author>
	</entry>
	<entry>
		<id>https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=5446&amp;oldid=prev</id>
		<title>Fizzer at 14:00, 28 December 2022</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:GameOrderCustom&amp;diff=5446&amp;oldid=prev"/>
		<updated>2022-12-28T14:00:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:00, 28 December 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Payload&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;: Data the mod wishes to store along with this order, but does not want players to see.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;Payload&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;string&amp;#039;&amp;#039;: Data the mod wishes to store along with this order, but does not want players to see.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;CostOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;: Defines how much gold the order will cost the player in a [[Commerce]] game.  This should only be set in commerce games.  If CostOpt is set to nil, then it&amp;#039;s assumed to be the same as having a cost of 0.   The game will take care of taking the player&amp;#039;s resources away correctly, both on the client and server, when inserting an order with a cost into their orders list.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;&amp;#039;CostOpt&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:ResourceType|ResourceType]] (enum),integer&amp;gt;&amp;#039;&amp;#039;: Defines how much gold the order will cost the player in a [[Commerce]] game.  This should only be set in commerce games.  If CostOpt is set to nil, then it&amp;#039;s assumed to be the same as having a cost of 0.   The game will take care of taking the player&amp;#039;s resources away correctly, both on the client and server, when inserting an order with a cost into their orders list.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &#039;&#039;&#039;OccursInPhaseOpt&#039;&#039;&#039; &#039;&#039;[[Mod API Reference:Nullable|Nullable]]&amp;lt;[[Mod API Reference:TurnPhase|TurnPhase]] (enum)&amp;gt;&#039;&#039;:  If not nil, then orders will be forced to be placed in this phase.  Players will not be able to move this order above an order of a lower phase, or below an order of a higher phase.  Added in v5.22.0.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Functions ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Functions ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Fizzer</name></author>
	</entry>
</feed>