<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://drl.chaosforge.org/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://drl.chaosforge.org/w/index.php?action=history&amp;feed=atom&amp;title=Modding%3Aplayer_%280.9.9.7%29</id>
		<title>Modding:player (0.9.9.7) - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://drl.chaosforge.org/w/index.php?action=history&amp;feed=atom&amp;title=Modding%3Aplayer_%280.9.9.7%29"/>
		<link rel="alternate" type="text/html" href="https://drl.chaosforge.org/w/index.php?title=Modding:player_(0.9.9.7)&amp;action=history"/>
		<updated>2026-04-08T13:32:20Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.1</generator>

	<entry>
		<id>https://drl.chaosforge.org/w/index.php?title=Modding:player_(0.9.9.7)&amp;diff=2515&amp;oldid=prev</id>
		<title>Yaflhdztioxo at 02:07, 22 April 2013</title>
		<link rel="alternate" type="text/html" href="https://drl.chaosforge.org/w/index.php?title=Modding:player_(0.9.9.7)&amp;diff=2515&amp;oldid=prev"/>
				<updated>2013-04-22T02:07:04Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 02:07, 22 April 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;Within the context of modding the 'player' can refer to:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 [[Modding:player_API (0.9.9.7)|player API]], a set of functions which can be used to manipulate player specific content during gameplay.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 [[Modding:player_object (0.9.9.7)|player object]], a singleton that inherits from [[Modding:being|being]] and which represents you, the player, in-game as a standard, alterable object.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;These pages will be split our from the 0996 data soon.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;Original 0996 below&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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 class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The player. AKA you. Runs around half-cocked, blows shit up. The player is a [[Modding:Being|Being]] and a [[Modding:Thing|Thing]], but there are also a few properties and functions that are specific to the player. The player is created from the &amp;quot;soldier&amp;quot; being prototype. In lua, there is a global variable called player that holds a reference to the player.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The player. AKA you. Runs around half-cocked, blows shit up. The player is a [[Modding:Being|Being]] and a [[Modding:Thing|Thing]], but there are also a few properties and functions that are specific to the player. The player is created from the &amp;quot;soldier&amp;quot; being prototype. In lua, there is a global variable called player that holds a reference to the player.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Yaflhdztioxo</name></author>	</entry>

	<entry>
		<id>https://drl.chaosforge.org/w/index.php?title=Modding:player_(0.9.9.7)&amp;diff=2512&amp;oldid=prev</id>
		<title>Yaflhdztioxo: moved Modding:Player to Modding:player (0.9.9.7)</title>
		<link rel="alternate" type="text/html" href="https://drl.chaosforge.org/w/index.php?title=Modding:player_(0.9.9.7)&amp;diff=2512&amp;oldid=prev"/>
				<updated>2013-04-22T02:02:30Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/wiki/Modding:Player&quot; class=&quot;mw-redirect&quot; title=&quot;Modding:Player&quot;&gt;Modding:Player&lt;/a&gt; to &lt;a href=&quot;/wiki/Modding:player_(0.9.9.7)&quot; title=&quot;Modding:player (0.9.9.7)&quot;&gt;Modding:player (0.9.9.7)&lt;/a&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 02:02, 22 April 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yaflhdztioxo</name></author>	</entry>

	<entry>
		<id>https://drl.chaosforge.org/w/index.php?title=Modding:player_(0.9.9.7)&amp;diff=1462&amp;oldid=prev</id>
		<title>Game Hunter: incidentally, the &lt;u&gt; tag underlines things</title>
		<link rel="alternate" type="text/html" href="https://drl.chaosforge.org/w/index.php?title=Modding:player_(0.9.9.7)&amp;diff=1462&amp;oldid=prev"/>
				<updated>2011-10-19T20:34:01Z</updated>
		
		<summary type="html">&lt;p&gt;incidentally, the &amp;lt;u&amp;gt; tag underlines things&lt;/p&gt;
&lt;a href=&quot;https://drl.chaosforge.org/w/index.php?title=Modding:player_(0.9.9.7)&amp;amp;diff=1462&amp;amp;oldid=1178&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Game Hunter</name></author>	</entry>

	<entry>
		<id>https://drl.chaosforge.org/w/index.php?title=Modding:player_(0.9.9.7)&amp;diff=1178&amp;oldid=prev</id>
		<title>Game Hunter: removed 0994 warning</title>
		<link rel="alternate" type="text/html" href="https://drl.chaosforge.org/w/index.php?title=Modding:player_(0.9.9.7)&amp;diff=1178&amp;oldid=prev"/>
				<updated>2011-09-05T01:52:44Z</updated>
		
		<summary type="html">&lt;p&gt;removed 0994 warning&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 01:52, 5 September 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;{{994 modding}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; 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;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The player. AKA you. Runs around half-cocked, blows shit up. The player is a [[Modding:Being|Being]] and a [[Modding:Thing|Thing]], but there are also a few properties and functions that are specific to the player. The player is created from the &amp;quot;soldier&amp;quot; being prototype. In lua, there is a global variable called player that holds a reference to the player.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The player. AKA you. Runs around half-cocked, blows shit up. The player is a [[Modding:Being|Being]] and a [[Modding:Thing|Thing]], but there are also a few properties and functions that are specific to the player. The player is created from the &amp;quot;soldier&amp;quot; being prototype. In lua, there is a global variable called player that holds a reference to the player.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Game Hunter</name></author>	</entry>

	<entry>
		<id>https://drl.chaosforge.org/w/index.php?title=Modding:player_(0.9.9.7)&amp;diff=1027&amp;oldid=prev</id>
		<title>Tehtmi: Created page</title>
		<link rel="alternate" type="text/html" href="https://drl.chaosforge.org/w/index.php?title=Modding:player_(0.9.9.7)&amp;diff=1027&amp;oldid=prev"/>
				<updated>2011-08-16T06:00:23Z</updated>
		
		<summary type="html">&lt;p&gt;Created page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{994 modding}}&lt;br /&gt;
&lt;br /&gt;
The player. AKA you. Runs around half-cocked, blows shit up. The player is a [[Modding:Being|Being]] and a [[Modding:Thing|Thing]], but there are also a few properties and functions that are specific to the player. The player is created from the &amp;quot;soldier&amp;quot; being prototype. In lua, there is a global variable called player that holds a reference to the player.&lt;br /&gt;
&lt;br /&gt;
== Properties ==&lt;br /&gt;
&lt;br /&gt;
The player also has all [[Modding:Being#Properties|being properties]] and [[Modding:Thing#Properties|thing properties]].&lt;br /&gt;
{|style=&amp;quot;border: 2px solid darkred; border-spacing: 0; font-size: 90%; margin: 0.25em 0.5em;&amp;quot;&lt;br /&gt;
|colspan=3 style=&amp;quot;background: darkred; color: yellow; font-size: 120%; text-align: center&amp;quot;|'''Player'''&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''Boolean'''&lt;br /&gt;
|style=&amp;quot;vertical-align:top; padding-right: 2ex;&amp;quot;|running&lt;br /&gt;
|This is true when the player is [[Tactics|running]]. Setting this to false will make the player tired.&lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''Boolean'''&lt;br /&gt;
|style=&amp;quot;vertical-align:top; padding-right: 2ex;&amp;quot;|tired&lt;br /&gt;
|This true when the player is [[Tactics|tired]]. Setting this to false will restore the player to cautious.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''Word'''&lt;br /&gt;
|style=&amp;quot;vertical-align:top; padding-right: 2ex;&amp;quot;|runningtime&lt;br /&gt;
|This is the number of actions the player has until his running tactic expires.&lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''LongInt'''&lt;br /&gt;
|style=&amp;quot;vertical-align:top; padding-right: 2ex;&amp;quot;|exp&lt;br /&gt;
|This is the player's current [[experience]] total. Increasing this value directly won't cause the player to gain a level.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''Byte'''&lt;br /&gt;
|style=&amp;quot;vertical-align:top; padding-right: 2ex;&amp;quot;|explevel&lt;br /&gt;
|This is the player's level. Changing it won't remove traits or trigger level ups. Lowering it can allow the player to achieve lower levels again.&lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|[[Modding:Klass|Klass ID]]&lt;br /&gt;
|style=&amp;quot;vertical-align:top; padding-right: 2ex;&amp;quot;|klass&lt;br /&gt;
|This is the numeric id of the player's class.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''Word'''&lt;br /&gt;
|style=&amp;quot;vertical-align:top; padding-right: 2ex;&amp;quot;|nuketime&lt;br /&gt;
|This is the number of 0.1s intervals remaining until a [[Thermonuclear bomb|nuclear explosion]] occurs. Setting this to 0 will halt the current countdown.&lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''Real'''&lt;br /&gt;
|style=&amp;quot;vertical-align:top; padding-right: 2ex;&amp;quot;|expfactor&lt;br /&gt;
|All of the player's experience gains are multiplied by this factor. This is normally set based on the difficulty level.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''string'''&lt;br /&gt;
|style=&amp;quot;vertical-align:top; padding-right: 2ex;&amp;quot;|killedby&lt;br /&gt;
|This is the string that indicates how the player was killed (but not where). This is automatically set by the engine at the beginning of mortem output. This property is read-only.&lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|[[Modding:Rank|Skill Rank ID]]&lt;br /&gt;
|style=&amp;quot;vertical-align:top; padding-right: 2ex;&amp;quot;|skillrank&lt;br /&gt;
|This is the numeric id of the player's current skill rank. This property is read-only.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|[[Modding:Rank|Exp Rank ID]]&lt;br /&gt;
|style=&amp;quot;vertical-align:top; padding-right: 2ex;&amp;quot;|exprank&lt;br /&gt;
|This is the numeric id of the player's current exp rank. This property is read-only.&lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''LongInt'''&lt;br /&gt;
|style=&amp;quot;vertical-align:top; padding-right: 2ex;&amp;quot;|score&lt;br /&gt;
|This is the player's current score. This property is read-only.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''Byte'''&lt;br /&gt;
|style=&amp;quot;vertical-align:top; padding-right: 2ex;&amp;quot;|depth&lt;br /&gt;
|This is the level of the dungeon that the player is currently on. (Level generation should usually ignore this, instead using the [[Modding:Level]] values.) This property is read-only.&lt;br /&gt;
|}&lt;br /&gt;
== API ==&lt;br /&gt;
&lt;br /&gt;
The player can also use the [[Modding:Being#API|being API]] and [[Modding:Thing#API|thing API]].&lt;br /&gt;
{|style=&amp;quot;border: 2px solid darkred; border-spacing: 0; font-size: 90%; margin: 0.25em 0.5em;&amp;quot;&lt;br /&gt;
|colspan=2 style=&amp;quot;background: darkred; color: yellow; font-size: 120%; text-align: center&amp;quot;|'''Player Interface'''&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_set_affect|set_affect]]([[Modding:Affect|Affect ID]] affect, '''integer''' duration) &lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''boolean'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_is_affect|is_affect]]([[Modding:Affect|Affect ID]] affect) &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_add_exp|add_exp]]('''integer''' exp) &lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''boolean'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_has_won|has_won]]() &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''integer'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_get_trait|get_trait]]([[Modding:Trait|Trait ID]] trait) &lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''string'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_get_trait_hist|get_trait_hist]]() &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_power_backpack|power_backpack]]() &lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_win|win]]() &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_choose_trait|choose_trait]]() &lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_level_up|level_up]]() &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_exit|exit]]('''integer''' level) &lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_exit|exit]]([[Modding:Level|Level ID]] level) &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''boolean'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_record_badge|record_badge]]([[Modding:Badge|Badge ID]] id) &lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_quick_weapon|quick_weapon]]([[Modding:Item|Item ID]] id) &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_set_inv_size|set_inv_size]]('''integer''' size) &lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''boolean'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_found_item|found_item]]([[Modding:Item|Item ID]] id) &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_assembled_item|assembled_item]]([[Modding:ModArray|ModArray ID]] id) &lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_mortem_print|mortem_print]]('''string''' mortemtext) &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_add_medal|add_medal]]([[Modding:Medal|Medal ID]] medal) &lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_remove_medal|remove_medal]]([[Modding:Medal|Medal ID]] medal) &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_remove_medals|remove_medals]]([[Modding:Medal|Medal ID]] '''list''' medallist) &lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''boolean'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_has_medal|has_medal]]([[Modding:Medal|Medal ID]] medal) &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_add_badge|add_badge]]([[Modding:Badge|Badge ID]] badge) &lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_remove_badge|remove_badge]]([[Modding:Badge|Badge ID]] badge) &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''boolean'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_has_badge|has_badge]]([[Modding:Badge|Badge ID]] badge) &lt;br /&gt;
|-style=&amp;quot;background: #333;&amp;quot;&lt;br /&gt;
|style=&amp;quot;text-align: right; vertical-align:top; padding-right: 2ex;&amp;quot;|'''void'''&lt;br /&gt;
|[[Modding:Player|Player]]&amp;amp;#058;[[#player_add_history|add_history]]('''string''' historytext) &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Anchor|player_set_affect}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;set_affect([[Modding:Affect|Affect ID]] affect, '''integer''' duration) &lt;br /&gt;
:Adds ''duration'' actions to the appropriate affect timer. This will properly trigger affect activation hooks. &lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_is_affect}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;is_affect([[Modding:Affect|Affect ID]] affect) &amp;amp;rarr; '''boolean'''&lt;br /&gt;
:Determines if the given affect is currently active on the player.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_add_exp}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;add_exp('''integer''' exp) &lt;br /&gt;
:Adds the given amount of experience to the player. This can trigger level ups. (To avoid level ups, player.exp and player.explevel can be modified directly.) &lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_has_won}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;has_won() &amp;amp;rarr; '''boolean'''&lt;br /&gt;
:Determines if the player has won the game. Typically, this will only be true during mortem generation (if the player has indeed won).&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_get_trait}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;get_trait([[Modding:Trait|Trait ID]] trait) &amp;amp;rarr; '''integer'''&lt;br /&gt;
:Counts the number of levels the player has in the given trait.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_get_trait_hist}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;get_trait_hist() &amp;amp;rarr; '''string'''&lt;br /&gt;
:Returns a string describing the player's previous trait selections as seen in the mortem.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_power_backpack}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;power_backpack() &lt;br /&gt;
:Adds the BF_BACKPACK flag to the player and then resorts the ammo in the player's inventory.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_win}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;win() &lt;br /&gt;
:Ends the game; the player is considered to have won the game for the purposes of player:has_won().&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_choose_trait}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;choose_trait() &lt;br /&gt;
:Allows the player to pick a new trait (as if a level up had occured).&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_level_up}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;level_up() &lt;br /&gt;
:Causes the player to level up. Experience is not affected. This is similar to player:choose_trait(), but level up events are triggered, and the player's explevel increases.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_exit}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;exit('''integer''' level) &lt;br /&gt;
:Causes the player to enter the dungeon level given by ''level''. With no argument, the player advances to the next level.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_exit}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;exit([[Modding:Level|Level ID]] level) &lt;br /&gt;
:Causes the player to enter the given special level.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_record_badge}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;record_badge([[Modding:Badge|Badge ID]] id) &amp;amp;rarr; '''boolean'''&lt;br /&gt;
:Adds the given badge to the player's profile. (Modules have either separate profiles or no profiles.) Returns false if there is no player profile, or if the player already had the badge.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_quick_weapon}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;quick_weapon([[Modding:Item|Item ID]] id) &lt;br /&gt;
:Causes the player to prepare a weapon of the given type as though pressing a quickkey. This is affected by BF_JUGGLER. ''id'' must be a string id.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_set_inv_size}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;set_inv_size('''integer''' size) &lt;br /&gt;
:Sets the player's inventory size. The new size can't be bigger than [[Modding:Constants#Maximums|MAX_INV_SIZE]], nor can it be 0. This doesn't do anything with items in the inventory that are already beyond the limit.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_found_item}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;found_item([[Modding:Item|Item ID]] id) &amp;amp;rarr; '''boolean'''&lt;br /&gt;
:Determines if the player has previously picked up an item with the given id.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_assembled_item}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;assembled_item([[Modding:ModArray|ModArray ID]] id) &lt;br /&gt;
:Adds the given assembly to the player's list of assemblies that have been created in the current game. If there is a profile, the assembly will be added there as well.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_mortem_print}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;mortem_print('''string''' mortemtext) &lt;br /&gt;
:This can only be called while the mortem is being generated. It adds the given line of text to the player's mortem.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_add_medal}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;add_medal([[Modding:Medal|Medal ID]] medal) &lt;br /&gt;
:Adds the given medal to the list of medals the player has achieved in the current game.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_remove_medal}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;remove_medal([[Modding:Medal|Medal ID]] medal) &lt;br /&gt;
:Removes the given medal from the list of medals the player has achieved in the current game.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_remove_medals}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;remove_medals([[Modding:Medal|Medal ID]] '''list''' medallist) &lt;br /&gt;
:This removes all the medals in ''medallist'' from the medals that the player has achieved in the current game. Calling this with nil equates to calling it with the empty list.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_has_medal}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;has_medal([[Modding:Medal|Medal ID]] medal) &amp;amp;rarr; '''boolean'''&lt;br /&gt;
:Determines if the player has achieved the given medal in the current game.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_add_badge}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;add_badge([[Modding:Badge|Badge ID]] badge) &lt;br /&gt;
:Adds the given badge to the list of badges the player has achieved in the current game.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_remove_badge}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;remove_badge([[Modding:Badge|Badge ID]] badge) &lt;br /&gt;
:Removes the given badge from the list of badges the player has achieved in the current game.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_has_badge}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;has_badge([[Modding:Badge|Badge ID]] badge) &amp;amp;rarr; '''boolean'''&lt;br /&gt;
:Determines if the player has achieved the given badge in the current game.&lt;br /&gt;
----&lt;br /&gt;
{{Anchor|player_add_history}}&lt;br /&gt;
;[[Modding:Player|Player]]&amp;amp;#058;add_history('''string''' historytext) &lt;br /&gt;
:Adds the given line to the history section of the mortem. Unlike print_mortem, this can be done while the game is still ongoing. (The default mortem handler prints the history section, but a custom handler might not.)&lt;/div&gt;</summary>
		<author><name>Tehtmi</name></author>	</entry>

	</feed>