<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Decision Tree Exploration]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=807</link>
		<description><![CDATA[The most recent posts in Decision Tree Exploration.]]></description>
		<lastBuildDate>Sun, 06 Oct 2013 17:56:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Decision Tree Exploration]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=5360#p5360</link>
			<description><![CDATA[<p>In this post I want to explore DECISION TREES. If you have a very comprehensive example of a way to use decision trees, please post it here. Please make it easy to understand (clean and simple naming conventions).</p><div class="codebox"><pre><code>-DECISION TREE EXPLORATION

--States
normal = true
happy = false
sad = false
worried = false
afraid = false

--Conditions
got_some_money = false
bump_your_head = false
loose_wallet = false
walk_into_dark_room = false

function GetEmotional(x)
    x = true
end

if got_some_money then
    GetEmotional(happy)
end

--What if we want an animation to play if they are happy:

if got_some_money then
    GetEmotional(happy)
    changeAnimation(object,animationID)
end

--Multiple conditions?

if bump_your_head and walk_into_dark_room then
    GetEmotional(sad)
    GetEmotional(afraid)
end</code></pre></div><p>Certain CONDITIONS affect your current STATE.</p>]]></description>
			<author><![CDATA[dummy@example.com (Tutorial Doctor)]]></author>
			<pubDate>Sun, 06 Oct 2013 17:56:19 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=5360#p5360</guid>
		</item>
	</channel>
</rss>
