<?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%3AServerGame</id>
	<title>Mod API Reference:ServerGame - 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%3AServerGame"/>
	<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:ServerGame&amp;action=history"/>
	<updated>2026-04-18T19:46:18Z</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:ServerGame&amp;diff=4973&amp;oldid=prev</id>
		<title>Fizzer at 23:16, 31 July 2019</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:ServerGame&amp;diff=4973&amp;oldid=prev"/>
		<updated>2019-07-31T23:16:51Z</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 23:16, 31 July 2019&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-l25&quot;&gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&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;** Note that if you reduce a player&amp;#039;s gold value after they&amp;#039;ve committed orders, it may mess up their turn as they won&amp;#039;t be able to spend as much gold as they were expecting, leading to failed deployments and failed attacks.  Take care to only do this if the player approves it.&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;** Note that if you reduce a player&amp;#039;s gold value after they&amp;#039;ve committed orders, it may mess up their turn as they won&amp;#039;t be able to spend as much gold as they were expecting, leading to failed deployments and failed attacks.  Take care to only do this if the player approves it.&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;** Note that this function should never be called from an AdvanceTurn hook.  Doing so will produce an error message.  If you wish to change a player&amp;#039;s resource from an AdvanceTurn hook, instead insert a [[Mod API Reference:GameOrderEvent|GameOrderEvent]] to change it.&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;** Note that this function should never be called from an AdvanceTurn hook.  Doing so will produce an error message.  If you wish to change a player&amp;#039;s resource from an AdvanceTurn hook, instead insert a [[Mod API Reference:GameOrderEvent|GameOrderEvent]] to change it.&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;** Note that this function should never be called while a game is in territory distribution.  Player&#039;s don&#039;t officially have gold until after territories are distributed, so wait until then to start modifying gold.&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;[[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:ServerGame&amp;diff=4844&amp;oldid=prev</id>
		<title>DanWL60 at 17:30, 4 December 2018</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:ServerGame&amp;diff=4844&amp;oldid=prev"/>
		<updated>2018-12-04T17:30:59Z</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 17:30, 4 December 2018&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-l25&quot;&gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&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;** Note that if you reduce a player&amp;#039;s gold value after they&amp;#039;ve committed orders, it may mess up their turn as they won&amp;#039;t be able to spend as much gold as they were expecting, leading to failed deployments and failed attacks.  Take care to only do this if the player approves it.&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;** Note that if you reduce a player&amp;#039;s gold value after they&amp;#039;ve committed orders, it may mess up their turn as they won&amp;#039;t be able to spend as much gold as they were expecting, leading to failed deployments and failed attacks.  Take care to only do this if the player approves it.&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;** Note that this function should never be called from an AdvanceTurn hook.  Doing so will produce an error message.  If you wish to change a player&amp;#039;s resource from an AdvanceTurn hook, instead insert a [[Mod API Reference:GameOrderEvent|GameOrderEvent]] to change it.&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;** Note that this function should never be called from an AdvanceTurn hook.  Doing so will produce an error message.  If you wish to change a player&amp;#039;s resource from an AdvanceTurn hook, instead insert a [[Mod API Reference:GameOrderEvent|GameOrderEvent]] to change it.&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;[[Category:Mod API Reference]]&lt;/ins&gt;&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:ServerGame&amp;diff=4099&amp;oldid=prev</id>
		<title>Fizzer at 22:53, 8 August 2017</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:ServerGame&amp;diff=4099&amp;oldid=prev"/>
		<updated>2017-08-08T22:53:03Z</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:53, 8 August 2017&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-l21&quot;&gt;Line 21:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&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;SetPlayerResource&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039;pid&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;type&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:ResourceType|ResourceType]] (enum)&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;newValue&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;integer&amp;#039;&amp;#039;):  Used to set the resources of a player, such as the amount of gold they have in a [[commerce]] game.   &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;SetPlayerResource&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;&amp;#039;pid&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;type&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:ResourceType|ResourceType]] (enum)&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;newValue&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;integer&amp;#039;&amp;#039;):  Used to set the resources of a player, such as the amount of gold they have in a [[commerce]] game.   &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;This will set their resource value immediately, and update their displayed value on the player&#039;s screen so they can spend it immediately for their upcoming turn.&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;** &lt;/ins&gt;This will set their resource value immediately, and update their displayed value on the player&#039;s screen so they can spend it immediately for their upcoming turn.&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;When this function is used, the next turn will start with a GameOrderEvent which tells players that a mod updated their resource value.  This way, there&#039;s still a log that something happened in history.&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;** &lt;/ins&gt;When this function is used, the next turn will start with a GameOrderEvent which tells players that a mod updated their resource value.  This way, there&#039;s still a log that something happened in history.&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;Note that if you reduce a player&#039;s gold value after they&#039;ve committed orders, it may mess up their turn as they won&#039;t be able to spend as much gold as they were expecting, leading to failed deployments and failed attacks.  Take care to only do this if the player approves it.&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;** &lt;/ins&gt;Note that if you reduce a player&#039;s gold value after they&#039;ve committed orders, it may mess up their turn as they won&#039;t be able to spend as much gold as they were expecting, leading to failed deployments and failed attacks.  Take care to only do this if the player approves it.&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;Note that this function should never be called from an AdvanceTurn hook.  Doing so will produce an error message.  If you wish to change a player&#039;s resource from an AdvanceTurn hook, instead insert a [[Mod API Reference:GameOrderEvent|GameOrderEvent]] to change it.&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;** &lt;/ins&gt;Note that this function should never be called from an AdvanceTurn hook.  Doing so will produce an error message.  If you wish to change a player&#039;s resource from an AdvanceTurn hook, instead insert a [[Mod API Reference:GameOrderEvent|GameOrderEvent]] to change it.&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:ServerGame&amp;diff=4098&amp;oldid=prev</id>
		<title>Fizzer at 22:50, 8 August 2017</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:ServerGame&amp;diff=4098&amp;oldid=prev"/>
		<updated>2017-08-08T22:50:57Z</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:50, 8 August 2017&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-l17&quot;&gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&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;Settings&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:GameSettings|GameSettings]]&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;Settings&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:GameSettings|GameSettings]]&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;div&gt;* &amp;#039;&amp;#039;&amp;#039;TurnZeroStanding&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:GameStanding|GameStanding]]&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;TurnZeroStanding&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:GameStanding|GameStanding]]&amp;#039;&amp;#039;:&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;&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 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;&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;* &#039;&#039;&#039;SetPlayerResource&#039;&#039;&#039;(&#039;&#039;&#039;pid&#039;&#039;&#039; &#039;&#039;[[Mod API Reference:PlayerID|PlayerID]]&#039;&#039;, &#039;&#039;&#039;type&#039;&#039;&#039; &#039;&#039;[[Mod API Reference:ResourceType|ResourceType]] (enum)&#039;&#039;, &#039;&#039;&#039;newValue&#039;&#039;&#039; &#039;&#039;integer&#039;&#039;):  Used to set the resources of a player, such as the amount of gold they have in a [[commerce]] game.  &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;This will set their resource value immediately, and update their displayed value on the player&#039;s screen so they can spend it immediately for their upcoming turn.&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;When this function is used, the next turn will start with a GameOrderEvent which tells players that a mod updated their resource value.  This way, there&#039;s still a log that something happened in history.&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;Note that if you reduce a player&#039;s gold value after they&#039;ve committed orders, it may mess up their turn as they won&#039;t be able to spend as much gold as they were expecting, leading to failed deployments and failed attacks.  Take care to only do this if the player approves it.&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;Note that this function should never be called from an AdvanceTurn hook.  Doing so will produce an error message.  If you wish to change a player&#039;s resource from an AdvanceTurn hook, instead insert a [[Mod API Reference:GameOrderEvent|GameOrderEvent]] to change it.&lt;/ins&gt;&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:ServerGame&amp;diff=3944&amp;oldid=prev</id>
		<title>Fizzer: Created page with &quot;&#039;&#039;&#039;ServerGame&#039;&#039;&#039;: While GameWL contains public information about a game, ServerGame contains private information that&#039;s never shared with clients....&quot;</title>
		<link rel="alternate" type="text/html" href="https://war.app/wiki/index.php?title=Mod_API_Reference:ServerGame&amp;diff=3944&amp;oldid=prev"/>
		<updated>2017-04-07T20:45:47Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;ServerGame&amp;#039;&amp;#039;&amp;#039;: While &lt;a href=&quot;/wiki/Mod_API_Reference:GameWL&quot; title=&quot;Mod API Reference:GameWL&quot;&gt;GameWL&lt;/a&gt; contains public information about a game, ServerGame contains private information that&amp;#039;s never shared with clients....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;ServerGame&amp;#039;&amp;#039;&amp;#039;: While [[Mod API Reference:GameWL|GameWL]] contains public information about a game, ServerGame contains private information that&amp;#039;s never shared with clients.  This structure is only available in Server hooks.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ActiveTerritoryPicks&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:PlayerID|PlayerID]],Array&amp;lt;[[Mod API Reference:TerritoryID|TerritoryID]]&amp;gt;&amp;gt;&amp;#039;&amp;#039;: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ActiveTurnOrders&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Table&amp;lt;[[Mod API Reference:PlayerID|PlayerID]],Array&amp;lt;[[Mod API Reference:GameOrder|GameOrder]]&amp;gt;&amp;gt;&amp;#039;&amp;#039;: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CoinCreationFee&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;integer&amp;#039;&amp;#039;: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CoinEntryFee&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;integer&amp;#039;&amp;#039;: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CoinPrize&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;integer&amp;#039;&amp;#039;: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CreatedByAPI&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;boolean&amp;#039;&amp;#039;: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CyclicMoveOrder&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Array&amp;lt;[[Mod API Reference:PlayerID|PlayerID]]&amp;gt;&amp;#039;&amp;#039;: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;DistributionStanding&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:GameStanding|GameStanding]]&amp;#039;&amp;#039;: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Game&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:GameWL|GameWL]]&amp;#039;&amp;#039;: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;IsCustomCoinGame&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;boolean&amp;#039;&amp;#039;: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;LatestTurnStanding&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:GameStanding|GameStanding]]&amp;#039;&amp;#039;: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PendingStateTransitions&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Array&amp;lt;[[Mod API Reference:PendingStateTransition|PendingStateTransition]]&amp;gt;&amp;#039;&amp;#039;: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PickOrder&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;Array&amp;lt;[[Mod API Reference:PlayerID|PlayerID]]&amp;gt;&amp;#039;&amp;#039;: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;PreviousTurnStanding&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:GameStanding|GameStanding]]&amp;#039;&amp;#039;: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;RequiredPlayerCount&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:Nullable|Nullable]]&amp;lt;integer&amp;gt;&amp;#039;&amp;#039;: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Settings&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:GameSettings|GameSettings]]&amp;#039;&amp;#039;: &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;TurnZeroStanding&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;[[Mod API Reference:GameStanding|GameStanding]]&amp;#039;&amp;#039;:&lt;/div&gt;</summary>
		<author><name>Fizzer</name></author>
	</entry>
</feed>