<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.swganh.org/index.php?action=history&amp;feed=atom&amp;title=Tangible_Object_Use_-_State_Checking</id>
		<title>Tangible Object Use - State Checking - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.swganh.org/index.php?action=history&amp;feed=atom&amp;title=Tangible_Object_Use_-_State_Checking"/>
		<link rel="alternate" type="text/html" href="http://wiki.swganh.org/index.php?title=Tangible_Object_Use_-_State_Checking&amp;action=history"/>
		<updated>2026-05-03T18:59:47Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.4</generator>

	<entry>
		<id>http://wiki.swganh.org/index.php?title=Tangible_Object_Use_-_State_Checking&amp;diff=69518&amp;oldid=prev</id>
		<title>Lloydyboy at 15:35, 26 February 2010</title>
		<link rel="alternate" type="text/html" href="http://wiki.swganh.org/index.php?title=Tangible_Object_Use_-_State_Checking&amp;diff=69518&amp;oldid=prev"/>
				<updated>2010-02-26T15:35:54Z</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;' lang='en'&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 15:35, 26 February 2010&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='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;== Background ==&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;== Background ==&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;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;There are times when using objects in game such a banking terminal &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;are &lt;/del&gt;inappropriate &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;such as &lt;/del&gt;when in combat or dead.&lt;/div&gt;&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;There are times when using objects in game &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(&lt;/ins&gt;such a banking terminal&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;) is &lt;/ins&gt;inappropriate &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;like &lt;/ins&gt;when &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the player is &lt;/ins&gt;in combat or dead.&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;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;Currently when a player uses an object, the callback handler has to check against every possible state where we want to cancel the command such as:&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;Currently when a player uses an object, the callback handler has to check against every possible state where we want to cancel the command such as:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Lloydyboy</name></author>	</entry>

	<entry>
		<id>http://wiki.swganh.org/index.php?title=Tangible_Object_Use_-_State_Checking&amp;diff=69517&amp;oldid=prev</id>
		<title>Lloydyboy: New page: == Background ==  There are times when using objects in game such a banking terminal are inappropriate such as when in combat or dead.  Currently when a player uses an object, the callback...</title>
		<link rel="alternate" type="text/html" href="http://wiki.swganh.org/index.php?title=Tangible_Object_Use_-_State_Checking&amp;diff=69517&amp;oldid=prev"/>
				<updated>2010-02-26T15:35:14Z</updated>
		
		<summary type="html">&lt;p&gt;New page: == Background ==  There are times when using objects in game such a banking terminal are inappropriate such as when in combat or dead.  Currently when a player uses an object, the callback...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Background ==&lt;br /&gt;
&lt;br /&gt;
There are times when using objects in game such a banking terminal are inappropriate such as when in combat or dead.&lt;br /&gt;
&lt;br /&gt;
Currently when a player uses an object, the callback handler has to check against every possible state where we want to cancel the command such as:&lt;br /&gt;
&lt;br /&gt;
if(playerObject == NULL || !playerObject-&amp;gt;isConnected() || playerObject-&amp;gt;getSamplingState() || playerObject-&amp;gt;isIncapacitated() || playerObject-&amp;gt;isDead()|| playerObject-&amp;gt;checkState(CreatureState_Combat))&lt;br /&gt;
{&lt;br /&gt;
return;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
In contrast, the combat system handles this in a different manner. The DB contains a list of combat skills such as UnarmedHit1 along with what states they may be used (eg. not whilst prone). These are loaded into the zone on startup.&lt;br /&gt;
&lt;br /&gt;
When a player uses a combat skill the combat handler/queue checks the player against these states and decides whether to call the skill handler or not.&lt;br /&gt;
&lt;br /&gt;
== Proposed Changes ==&lt;br /&gt;
&lt;br /&gt;
Whilst the current method works, moving to a similar system to the combat system has advantages:&lt;br /&gt;
*We would no longer need to check for every individual use separately (which creates a lot of copy and paste code as well as quirky bugs where some objects aren't correctly checked but others are).&lt;br /&gt;
*Allows changes to be made in the DB without code alterations/knowledge.&lt;/div&gt;</summary>
		<author><name>Lloydyboy</name></author>	</entry>

	</feed>