<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://modiki.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=GameEvents.UnitSetXY_%28Civ5_API%29</id>
	<title>GameEvents.UnitSetXY (Civ5 API) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://modiki.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=GameEvents.UnitSetXY_%28Civ5_API%29"/>
	<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=GameEvents.UnitSetXY_(Civ5_API)&amp;action=history"/>
	<updated>2026-06-13T19:39:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://modiki.civfanatics.com/index.php?title=GameEvents.UnitSetXY_(Civ5_API)&amp;diff=16559&amp;oldid=prev</id>
		<title>Killmeplease: /* Usage */</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=GameEvents.UnitSetXY_(Civ5_API)&amp;diff=16559&amp;oldid=prev"/>
		<updated>2015-11-01T04:17:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage&lt;/span&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 04:17, 1 November 2015&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-l35&quot;&gt;Line 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&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;|}&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;|}&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;To kill &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a &lt;/del&gt;unit on this event, use unit:Kill(true, -1) to initiate a delayed death. Otherwise the game will crash.--[[User:Killmeplease|Killmeplease]] ([[User talk:Killmeplease|talk]]) 04:16, 1 November 2015 (UTC)&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;To kill &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the &lt;/ins&gt;unit &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(UnitID) &lt;/ins&gt;on this event, use unit:Kill(true, -1) to initiate a delayed death. Otherwise the game will crash.--[[User:Killmeplease|Killmeplease]] ([[User talk:Killmeplease|talk]]) 04:16, 1 November 2015 (UTC)&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;=Source code samples=&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;=Source code samples=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Killmeplease</name></author>
	</entry>
	<entry>
		<id>https://modiki.civfanatics.com/index.php?title=GameEvents.UnitSetXY_(Civ5_API)&amp;diff=16558&amp;oldid=prev</id>
		<title>Killmeplease: /* Usage */</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=GameEvents.UnitSetXY_(Civ5_API)&amp;diff=16558&amp;oldid=prev"/>
		<updated>2015-11-01T04:16:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage&lt;/span&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 04:16, 1 November 2015&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-l35&quot;&gt;Line 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&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;|}&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;|}&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;To kill a unit on this event, use unit:Kill(true, -1) to initiate a delayed death. Otherwise the game will crash.--[[User:Killmeplease|Killmeplease]] ([[User talk:Killmeplease|talk]]) 04:16, 1 November 2015 (UTC)&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;=Source code samples=&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;=Source code samples=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Killmeplease</name></author>
	</entry>
	<entry>
		<id>https://modiki.civfanatics.com/index.php?title=GameEvents.UnitSetXY_(Civ5_API)&amp;diff=16473&amp;oldid=prev</id>
		<title>Slserpent at 20:47, 21 February 2014</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=GameEvents.UnitSetXY_(Civ5_API)&amp;diff=16473&amp;oldid=prev"/>
		<updated>2014-02-21T20:47: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 20:47, 21 February 2014&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;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;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;Triggered whenever any unit moves by any means, for every tile they move into. Note that this event fires before animations are completed.&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;Triggered whenever any unit moves by any means, for every tile they move into&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. This includes units that are being created&lt;/ins&gt;. Note that this event fires before animations are completed.&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;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;/table&gt;</summary>
		<author><name>Slserpent</name></author>
	</entry>
	<entry>
		<id>https://modiki.civfanatics.com/index.php?title=GameEvents.UnitSetXY_(Civ5_API)&amp;diff=16457&amp;oldid=prev</id>
		<title>Slserpent at 18:15, 15 February 2014</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=GameEvents.UnitSetXY_(Civ5_API)&amp;diff=16457&amp;oldid=prev"/>
		<updated>2014-02-15T18:15:46Z</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 18:15, 15 February 2014&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;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;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;Triggered whenever any unit moves by any means, for every tile they move into.&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;Triggered whenever any unit moves by any means, for every tile they move into&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. Note that this event fires before animations are completed&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;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;/table&gt;</summary>
		<author><name>Slserpent</name></author>
	</entry>
	<entry>
		<id>https://modiki.civfanatics.com/index.php?title=GameEvents.UnitSetXY_(Civ5_API)&amp;diff=11351&amp;oldid=prev</id>
		<title>DonQuich: Bot update</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=GameEvents.UnitSetXY_(Civ5_API)&amp;diff=11351&amp;oldid=prev"/>
		<updated>2012-09-19T20:29:20Z</updated>

		<summary type="html">&lt;p&gt;Bot update&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Civ5 API Beta Banner}}&lt;br /&gt;
&amp;#039;&amp;#039;This page is a part of the [[Lua and UI Reference (Civ5)]].&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TypeInfos5|Function.png|This function is a member of {{Type5|GameEvents}}.&amp;lt;br/&amp;gt;&lt;br /&gt;
This is a static method, invoke it with a dot.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Triggered whenever any unit moves by any means, for every tile they move into.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;#039;&amp;#039;&amp;#039;void&amp;#039;&amp;#039;&amp;#039; GameEvents.UnitSetXY&amp;lt;b&amp;gt;(&amp;lt;/b&amp;gt;{{Type5|PlayerID}} player, {{Type5|UnitID}} unit, &amp;#039;&amp;#039;&amp;#039;int&amp;#039;&amp;#039;&amp;#039; x, &amp;#039;&amp;#039;&amp;#039;int&amp;#039;&amp;#039;&amp;#039; y&amp;lt;b&amp;gt;)&amp;lt;/b&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Event Type&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:Unknown&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Parameters&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:{|&lt;br /&gt;
|-&lt;br /&gt;
|valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-right:6px;&amp;quot;|player:&lt;br /&gt;
|valign=&amp;quot;top&amp;quot;| &amp;#039;&amp;#039;The ID of the player the unit belongs to.&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-right:6px;&amp;quot;|unit:&lt;br /&gt;
|valign=&amp;quot;top&amp;quot;| &amp;#039;&amp;#039;The ID of the unit.&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-right:6px;&amp;quot;|x:&lt;br /&gt;
|valign=&amp;quot;top&amp;quot;| &amp;#039;&amp;#039;The location of the plot the unit has moved into.&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-right:6px;&amp;quot;|y:&lt;br /&gt;
|valign=&amp;quot;top&amp;quot;| &amp;#039;&amp;#039;No description available.&amp;#039;&amp;#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Source code samples=&lt;br /&gt;
&amp;#039;&amp;#039;Too many occurences. Only 50 out of 3 are listed.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|TurnsRemaining.lua - DLC_02 DLC}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/DLC_02/Scenarios/NewWorldScenario/TurnsRemaining.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0130}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;GameEvents.UnitSetXY.Add(function(iPlayer, iUnitID, iX, iY)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0132}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local plot = Map.GetPlot(iX, iY);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0133}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local player = Players[iPlayer];&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0134}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local unit = player:GetUnitByID(iUnitID);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0135}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (unit == nil or unit:IsDelayedDeath()) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0136}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;return false;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0137}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0139}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Caravel that has reached China?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0140}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (unit:GetUnitType() == GameInfoTypes[&amp;quot;UNIT_CARAVEL&amp;quot;]) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0142}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Adjacent to plot owned by China?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0143}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local bAdjacentChina = IsAdjacentToChina (iX, iY);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0145}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (bAdjacentChina and not player:IsMinorCiv() and not player:IsBarbarian()) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0147}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if(iPlayer == Game.GetActivePlayer()) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0148}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;UI.UnlockAchievement(&amp;quot;ACHIEVEMENT_SCENARIO_02_ROUTE_TO_ORIENT&amp;quot;);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0149}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0151}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- How many have already been? (KLUDGE - using an unused modern era CvGame data field as a counter)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0152}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iTotalCircumnavigators = Game:GetNukesExploded();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0154}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (iTotalCircumnavigators &amp;lt; 3) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0156}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;unit:Kill(true, -1);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0158}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iGoldReceived;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0159}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iVPReceived;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0161}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Grant gold and VP&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0162}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (iTotalCircumnavigators == 0) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0163}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;iGoldReceived = 200;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0164}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;iVPReceived = 200;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0165}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;elseif (iTotalCircumnavigators == 1) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0166}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;iGoldReceived = 100;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0167}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;iVPReceived = 100;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0168}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;else&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0169}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;iGoldReceived = 50;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0170}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;iVPReceived = 50;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0171}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0173}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;player:ChangeGold(iGoldReceived);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0174}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iNumWondersToCredit = iVPReceived / GameDefines[&amp;quot;SCORE_WONDER_MULTIPLIER&amp;quot;];&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0175}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;player:ChangeNumWorldWonders( iNumWondersToCredit );&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0177}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Put up dialog box&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0178}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local popupInfo = {&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0179}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;Data1 = 500,&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0180}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;Type = ButtonPopupTypes.BUTTONPOPUP_TEXT,&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0181}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0183}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Human player?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0184}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (iPlayer == 0) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0185}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (iTotalCircumnavigators == 0) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0186}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;popupInfo.Text = Locale.ConvertTextKey(&amp;quot;TXT_KEY_NEWWORLD_SCENARIO_FIRST_CIRCUMNAVIGATION&amp;quot;, unit:GetName(), iGoldReceived, iVPReceived);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0187}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;elseif (iTotalCircumnavigators == 1) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0188}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;popupInfo.Text = Locale.ConvertTextKey(&amp;quot;TXT_KEY_NEWWORLD_SCENARIO_SECOND_CIRCUMNAVIGATION&amp;quot;, unit:GetName(), iGoldReceived, iVPReceived);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0189}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;else&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0190}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;popupInfo.Text = Locale.ConvertTextKey(&amp;quot;TXT_KEY_NEWWORLD_SCENARIO_THIRD_CIRCUMNAVIGATION&amp;quot;, unit:GetName(), iGoldReceived, iVPReceived);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0191}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0192}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;else&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0193}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iRemaining = 2 - iTotalCircumnavigators;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0194}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;popupInfo.Text = Locale.ConvertTextKey(&amp;quot;TXT_KEY_NEWWORLD_SCENARIO_OTHER_CIRCUMNAVIGATION&amp;quot;, player:GetName(), iRemaining);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0195}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0197}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;UI.AddPopup(popupInfo);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0199}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;Game:ChangeNukesExploded(1);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0200}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0201}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0202}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0204}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Treasure unit that has reached capital?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0205}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (unit:GetUnitType() == GameInfoTypes[&amp;quot;UNIT_TREASURE&amp;quot;]) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0207}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- At my capital?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0208}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local capital = player:GetCapitalCity();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0209}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (capital ~= nil and capital:GetX() == iX and capital:GetY() == iY) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0211}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;unit:Kill(true, -1);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0213}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Grant gold and VP&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0214}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iGoldReceived = 100;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0215}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iVPReceived = 50;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0216}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;player:ChangeGold(iGoldReceived);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0217}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;player:ChangeScoreFromFutureTech(iVPReceived);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0219}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Put out notification&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0220}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local text;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0221}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local heading;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0222}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;text = Locale.ConvertTextKey(&amp;quot;TXT_KEY_NEWWORLD_SCENARIO_TREASURE_RETURNED&amp;quot;, capital:GetName(), iGoldReceived, iVPReceived);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0223}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;heading = Locale.ConvertTextKey(&amp;quot;TXT_KEY_NEWWORLD_SCENARIO_TREASURE_RETURNED_SHORT&amp;quot;);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0224}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;player:AddNotification(NotificationTypes.NOTIFICATION_GENERIC, text, heading);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0226}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if(iPlayer == Game.GetActivePlayer()) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0227}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if(capital:GetX() &amp;gt; 50) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0228}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;UI.UnlockAchievement(&amp;quot;ACHIEVEMENT_SCENARIO_02_RETURN_TREASURE&amp;quot;);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0229}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0230}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0231}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0232}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0234}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;return true;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0235}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|TurnsRemaining.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/Scenarios/FallOfRomeScenario/TurnsRemaining.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|1030}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;GameEvents.UnitSetXY.Add(UpdatePromotion);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|TurnsRemaining.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0594}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;GameEvents.UnitSetXY.Add(function(iPlayer, iUnitID, iX, iY)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0596}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local plot = Map.GetPlot(iX, iY);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0597}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local player = Players[iPlayer];&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0598}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local unit = player:GetUnitByID(iUnitID);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0599}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (unit == nil or unit:IsDelayedDeath()) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0600}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;return false;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0601}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0602}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iNumCaravels = GetPersistentProperty(&amp;quot;NumCaravels&amp;quot;);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0604}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Caravel that has reached China?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0605}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (unit:GetUnitType() == GameInfoTypes[&amp;quot;UNIT_CARAVEL&amp;quot;] and iNumCaravels &amp;lt; 5) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0607}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Adjacent to plot owned by China?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0608}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local bAdjacentChina = IsAdjacentToChina (iX, iY);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0610}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (bAdjacentChina and not player:IsMinorCiv() and not player:IsBarbarian()) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0612}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- How many have already been?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0613}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;iNumCaravels = iNumCaravels + 1;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0614}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;SetPersistentProperty(&amp;quot;NumCaravels&amp;quot;, iNumCaravels);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0616}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;unit:Kill(true, -1);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0618}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iVPReceived;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0620}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Grant VP&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0621}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;iVPReceived = 600 - (iNumCaravels * 100);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0623}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;player:ChangeScoreFromFutureTech(iVPReceived);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0625}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Put up dialog box&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0626}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local popupInfo = {&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0627}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;Data1 = 500,&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0628}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;Type = ButtonPopupTypes.BUTTONPOPUP_TEXT,&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0629}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0631}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Human player?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0632}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (iPlayer == 0) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0633}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;popupInfo.Text = Locale.ConvertTextKey(&amp;quot;TXT_KEY_MEDIEVAL_SCENARIO_CARAVEL&amp;quot;, unit:GetName(), iVPReceived, (5 - iNumCaravels));&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0634}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;UI.AddPopup(popupInfo);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0635}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;else&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0636}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;popupInfo.Text = Locale.ConvertTextKey(&amp;quot;TXT_KEY_MEDIEVAL_SCENARIO_OTHER_CARAVEL&amp;quot;, player:GetName(), iVPReceived, (5 - iNumCaravels));&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0637}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;UI.AddPopup(popupInfo);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0638}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0639}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0640}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0642}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Conquistador that has reached China?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0643}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (unit:GetUnitType() == GameInfoTypes[&amp;quot;UNIT_SPANISH_CONQUISTADOR&amp;quot;]) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0645}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Adjacent to plot owned by China?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0646}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local bAdjacentChina = IsAdjacentToChina (iX, iY);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0648}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- How many have already been?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0649}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iNumConquistadors = GetPersistentProperty(&amp;quot;NumConquistadors&amp;quot;);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0651}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (bAdjacentChina and not player:IsMinorCiv() and not player:IsBarbarian() and iNumConquistadors &amp;lt; 3) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0653}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local pTeam;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0654}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;pTeam = Teams[player:GetTeam()];&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0655}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (pTeam:IsHasTech(GameInfoTypes[&amp;quot;TECH_EXPLORATION&amp;quot;])) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0657}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;iNumConquistadors = iNumConquistadors + 1;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0658}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;SetPersistentProperty(&amp;quot;NumConquistadors&amp;quot;, iNumConquistadors);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0660}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;unit:Kill(true, -1);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0662}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iGoldReceived;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0663}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local iVPReceived;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0665}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Grant gold and VP&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0666}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;iGoldReceived = 500;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0667}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;iVPReceived = 250;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0669}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;player:ChangeGold(iGoldReceived);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0670}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;player:ChangeScoreFromFutureTech(iVPReceived);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0672}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Put up dialog box&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0673}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local popupInfo = {&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0674}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;Data1 = 500,&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0675}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;Type = ButtonPopupTypes.BUTTONPOPUP_TEXT,&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0676}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0678}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;-- Human player?&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0679}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (iPlayer == 0) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0680}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;popupInfo.Text = Locale.ConvertTextKey(&amp;quot;TXT_KEY_MEDIEVAL_SCENARIO_CONQUISTADOR&amp;quot;, unit:GetName(), iGoldReceived, iVPReceived);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0681}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;UI.AddPopup(popupInfo);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0682}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0683}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0684}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0685}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0687}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;return true;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0688}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;end);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Civ5 API Footer}}&lt;br /&gt;
[[Category:Civ5 Methods and Functions|UnitSetXY]]&lt;br /&gt;
[[Category:Civ5 Units API|UnitSetXY]]&lt;/div&gt;</summary>
		<author><name>DonQuich</name></author>
	</entry>
</feed>