<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Scripts!]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=159</link>
		<description><![CDATA[The most recent posts in Scripts!.]]></description>
		<lastBuildDate>Mon, 12 Sep 2011 17:49:55 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Scripts!]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=609#p609</link>
			<description><![CDATA[<p>From the main scene script, it is not possible to get the objects from overlay scene. Since only one script run at a time, it would be nice if the objects of overlay scene could also be able to get from the main script to change its property!</p><p>Regards</p>]]></description>
			<author><![CDATA[dummy@example.com (Arclord)]]></author>
			<pubDate>Mon, 12 Sep 2011 17:49:55 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=609#p609</guid>
		</item>
		<item>
			<title><![CDATA[Re: Scripts!]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=607#p607</link>
			<description><![CDATA[<p>Hi, there is only one script running at a time, the only way to share lua functions<br />is to create a separate lua file and use &quot;dofile(&quot;customFunctions.lua&quot;)&quot; to link it.</p><p>But for sharing variables it&#039;s not possible without doing c++, I taught I did something but I probably forget,<br />lets add it to the script todo list.</p><p>If you create a dll plugin, there is 2 ways to share variables :</p><p>- create a custom behavior with some variables, you can then get/set these variables from script using :<br />getBehaviorVariable(object, behaviorId, « variableName »)<br />setBehaviorVariable(object, behaviorId, « variableName », value)</p><p>- create custom script functions using MScriptContext :<br /><a href="http://www.maratis3d.org/engine_docs/class_m_script_context.html">http://www.maratis3d.org/engine_docs/cl &#133; ntext.html</a></p><p>Thanks</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Mon, 12 Sep 2011 15:31:36 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=607#p607</guid>
		</item>
		<item>
			<title><![CDATA[Scripts!]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=604#p604</link>
			<description><![CDATA[<p>Hi,<br />&nbsp; &nbsp;Suppose, if I have two scenes with two defferent scripts. One for each level. Say, the second one is HUD overlay. Can I call functions or send/receive values between this two script files? <br />&nbsp; Also, same like for script and dll. send receive values?</p><p>&nbsp; &nbsp;Thanks<br />&nbsp; &nbsp;Regards</p>]]></description>
			<author><![CDATA[dummy@example.com (Arclord)]]></author>
			<pubDate>Mon, 12 Sep 2011 12:15:00 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=604#p604</guid>
		</item>
	</channel>
</rss>
