<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://silvematt.com/URPGCreationKitDocumentation/index.php?action=history&amp;feed=atom&amp;title=Item_Script</id>
	<title>Item Script - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://silvematt.com/URPGCreationKitDocumentation/index.php?action=history&amp;feed=atom&amp;title=Item_Script"/>
	<link rel="alternate" type="text/html" href="https://silvematt.com/URPGCreationKitDocumentation/index.php?title=Item_Script&amp;action=history"/>
	<updated>2026-08-06T04:37:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://silvematt.com/URPGCreationKitDocumentation/index.php?title=Item_Script&amp;diff=361&amp;oldid=prev</id>
		<title>Silvematt at 20:49, 6 March 2022</title>
		<link rel="alternate" type="text/html" href="https://silvematt.com/URPGCreationKitDocumentation/index.php?title=Item_Script&amp;diff=361&amp;oldid=prev"/>
		<updated>2022-03-06T20:49:09Z</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:49, 6 March 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot;&gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&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;* '''OnDepositInContainer(container):''' called when the item gets deposited inside a [[Looting Point]].&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;* '''OnDepositInContainer(container):''' called when the item gets deposited inside a [[Looting Point]].&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;* '''OnTakeFromContainer(container):''' called when the item is took from a [[Looting Point]].&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;* '''OnTakeFromContainer(container):''' called when the item is took from a [[Looting Point]].&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;&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;To learn how to create and assign Item Scripts, see the tutorial [[Creating a New Item Script]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Silvematt</name></author>
	</entry>
	<entry>
		<id>https://silvematt.com/URPGCreationKitDocumentation/index.php?title=Item_Script&amp;diff=352&amp;oldid=prev</id>
		<title>Silvematt: Created page with &quot;An Item Script is a type of script that runs a piece of code when certain events regarding items occurs.  Each Item can have only one Item Script set, and the Item Script is set in the 'Configure Item' Window.  You can create a Quest Stage Script by right-clicking in the Project Window -&gt; Create -&gt; RPG Creation Kit -&gt; C# -&gt; New Item Script.  Item Scripts are extremely useful when you want some things to happen in base of certain events that involve items, s...&quot;</title>
		<link rel="alternate" type="text/html" href="https://silvematt.com/URPGCreationKitDocumentation/index.php?title=Item_Script&amp;diff=352&amp;oldid=prev"/>
		<updated>2022-03-06T19:07:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;An Item Script is a type of script that runs a piece of code when certain events regarding &lt;a href=&quot;/URPGCreationKitDocumentation/index.php/Items&quot; title=&quot;Items&quot;&gt;items&lt;/a&gt; occurs.  Each &lt;a href=&quot;/URPGCreationKitDocumentation/index.php/Items&quot; title=&quot;Items&quot;&gt;Item&lt;/a&gt; can have only one Item Script set, and the Item Script is set in the &amp;#039;Configure Item&amp;#039; Window.  You can create a Quest Stage Script by right-clicking in the Project Window -&amp;gt; Create -&amp;gt; RPG Creation Kit -&amp;gt; C# -&amp;gt; New Item Script.  Item Scripts are extremely useful when you want some things to happen in base of certain events that involve items, s...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;An Item Script is a type of script that runs a piece of code when certain events regarding [[items]] occurs.&lt;br /&gt;
&lt;br /&gt;
Each [[Items|Item]] can have only one Item Script set, and the Item Script is set in the 'Configure Item' Window.&lt;br /&gt;
&lt;br /&gt;
You can create a Quest Stage Script by right-clicking in the Project Window -&amp;gt; Create -&amp;gt; RPG Creation Kit -&amp;gt; C# -&amp;gt; New Item Script.&lt;br /&gt;
&lt;br /&gt;
Item Scripts are extremely useful when you want some things to happen in base of certain events that involve items, such as when the Player takes an item, or when the Player deposits an Item inside a container. In the tutorial [[A First Look, Part 1|A First Look]] we've seen that an Item Script is used to start the Quest.&lt;br /&gt;
&lt;br /&gt;
The list of events is:&lt;br /&gt;
&lt;br /&gt;
* '''OnAdd(inventory):''' the respective code runs when the Item gets added to an Inventory.&lt;br /&gt;
* '''OnRemove(inventory):''' called when the Item gets removed to an Inventory.&lt;br /&gt;
* '''OnEquip(inventory):''' called when the Item gets equipped by the entity that owns '''inventory'''.&lt;br /&gt;
* '''OnUnequip(inventory):''' called when the Item gets unequipped by the entity that owns '''inventory'''.&lt;br /&gt;
* '''OnDepositInContainer(container):''' called when the item gets deposited inside a [[Looting Point]].&lt;br /&gt;
* '''OnTakeFromContainer(container):''' called when the item is took from a [[Looting Point]].&lt;/div&gt;</summary>
		<author><name>Silvematt</name></author>
	</entry>
</feed>