<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.larian.game/index.php?action=history&amp;feed=atom&amp;title=Category%3AUse_Actions</id>
	<title>Category:Use Actions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://docs.larian.game/index.php?action=history&amp;feed=atom&amp;title=Category%3AUse_Actions"/>
	<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=Category:Use_Actions&amp;action=history"/>
	<updated>2026-05-13T02:29:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://docs.larian.game/index.php?title=Category:Use_Actions&amp;diff=4825&amp;oldid=prev</id>
		<title>LarIlya at 14:24, 18 December 2017</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=Category:Use_Actions&amp;diff=4825&amp;oldid=prev"/>
		<updated>2017-12-18T14:24:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:24, 18 December 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&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=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'''WIP'''&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Overview ==&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;== Overview ==&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;In the item [[sidebar]], there is a &amp;quot;Use Actions&amp;quot; entry. This defines what interaction with the item does, for NPCs and PCs alike.&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;In the item [[sidebar]], there is a &amp;quot;Use Actions&amp;quot; entry. This defines what interaction with the item does, for NPCs and PCs alike.&lt;/div&gt;&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-l36&quot;&gt;Line 36:&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;&amp;lt;br&amp;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;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''CharacterCanUseItemInInventory(CHARACTER:source, ITEM:item[, INT:ignoreActionPoints=0])''' checks if a character is capable of using an item in their inventory.&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;'''CharacterCanUseItemInInventory(CHARACTER:source, ITEM:item[, INT:ignoreActionPoints=0])''' checks if a character is capable of using an item in their inventory.&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;== Use Description ==&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;Use actions have a default use action name that shows up in the context menu (on right-click). It is possible to override this by filling in the '''Use Description''', so that e.g. a lever may be Pulled instead of Used, or a button may be Pushed.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>LarIlya</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=Category:Use_Actions&amp;diff=4521&amp;oldid=prev</id>
		<title>LarIlya at 15:57, 4 December 2017</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=Category:Use_Actions&amp;diff=4521&amp;oldid=prev"/>
		<updated>2017-12-04T15:57:15Z</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 15:57, 4 December 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&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; 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;'''WIP'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Overview ==&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;== Overview ==&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;In the item [[sidebar]], there is a &amp;quot;Use Actions&amp;quot; entry. This defines what interaction with the item does, for NPCs and PCs alike.&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;In the item [[sidebar]], there is a &amp;quot;Use Actions&amp;quot; entry. This defines what interaction with the item does, for NPCs and PCs alike.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>LarIlya</name></author>
	</entry>
	<entry>
		<id>https://docs.larian.game/index.php?title=Category:Use_Actions&amp;diff=4502&amp;oldid=prev</id>
		<title>LarIlya: Created page with &quot;== Overview == In the item sidebar, there is a &quot;Use Actions&quot; entry. This defines what interaction with the item does, for NPCs and PCs alike.  == Things that block use of...&quot;</title>
		<link rel="alternate" type="text/html" href="https://docs.larian.game/index.php?title=Category:Use_Actions&amp;diff=4502&amp;oldid=prev"/>
		<updated>2017-12-04T13:58:40Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Overview == In the item &lt;a href=&quot;/Sidebar&quot; title=&quot;Sidebar&quot;&gt;sidebar&lt;/a&gt;, there is a &amp;quot;Use Actions&amp;quot; entry. This defines what interaction with the item does, for NPCs and PCs alike.  == Things that block use of...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Overview ==&lt;br /&gt;
In the item [[sidebar]], there is a &amp;quot;Use Actions&amp;quot; entry. This defines what interaction with the item does, for NPCs and PCs alike.&lt;br /&gt;
&lt;br /&gt;
== Things that block use of items ==&lt;br /&gt;
A character cannot use an item if any of the following is true:&lt;br /&gt;
* the item has been marked as [[Osiris/API/ItemSetOnlyOwnerCanUse|only usable by its owner]], and '''_Character''' is not its owner.&lt;br /&gt;
* the item is ''stuck''. An item is ''stuck'' if it has the '''FROZEN''' or '''PETRIFIED''' status.&lt;br /&gt;
* the item is locked and '''_Character''', nor anyone in their party in case of a player character, has the key.&lt;br /&gt;
Also (see below), players cannot use items if they are set to non-interactable.&lt;br /&gt;
&lt;br /&gt;
== Interaction with Osiris ==&lt;br /&gt;
Osiris scripting can react to items being used, make characters use items, and intercept attempts to use an items. For more details on each call and event, see its documentation.&lt;br /&gt;
=== Events to Osiris ===&lt;br /&gt;
Whenever a character interacts with an item, a [[Osiris/API/CharacterUseItem|CharacterUsedItem]] event is sent to Osiris.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
If the character fails to use the item, a [[Osiris/API/CharacterUsedItemFailed|CharacterUsedItemFailed]] event is sent to Osiris.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The [[Osiris/API/CanUseItem|CanUseItem]] event is sent as a character attempts to use an item. The Shared Story scripting intercepts this to call the [[Osiris/Shared/ProcBlockUseOfItem|ProcBlockUseOfItem]] procedure. If this procedure sets the  '''DB_CustomUseItemResponse'''(''(CHARACTERGUID)'''''_Char''',''(ITEMGUID)'''''_Item''',''(INTEGER)'''''_Result''') with '''_Result''' equal to 1, the item use is blocked.&lt;br /&gt;
&lt;br /&gt;
=== Calls from Osiris ===&lt;br /&gt;
The [[Osiris/API/CharacterUseItem|CharacterUseItem]] call makes a character use an item. If necessary, the character first moves to the item.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The [[Osiris/API/ItemSetCanInteract|ItemSetCanInteract]] makes it impossible for players to interact with an item by clicking on it. It remains possible to interact with the item through script, however.&lt;br /&gt;
&lt;br /&gt;
== Interaction with Behaviour Script ==&lt;br /&gt;
[[Character_and_Item_Script_Triggers,_Calls,_and_Queries|Behaviour script]] can react to items being used and make character use items.&lt;br /&gt;
=== Events to Behaviour Script ===&lt;br /&gt;
'''OnUseItem(CHARACTER:source, ITEM:item)''' is thrown when a character uses an item.&lt;br /&gt;
=== Calls from Behaviour Script ===&lt;br /&gt;
'''CharacterUseItem(ITEM:item [, INTEGER:LongPath])''' makes a character use an item, moving to it if necessary.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''ItemSetCanInteract(ITEM:item, INTEGER:bool)''' changes whether or not an item can be interacted with by the player. Script can still make a character interact with such an item.&lt;br /&gt;
=== Queries from Behaviour Script ===&lt;br /&gt;
'''CharacterCanUseItem(CHARACTER:source, ITEM:item[, INT:ignoreActionPoints=0])''' checks if a character is capable of using an item in the world.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
'''CharacterCanUseItemInInventory(CHARACTER:source, ITEM:item[, INT:ignoreActionPoints=0])''' checks if a character is capable of using an item in their inventory.&lt;/div&gt;</summary>
		<author><name>LarIlya</name></author>
	</entry>
</feed>