Tuesday, March 9, 2010

Hibernation in progress

The programming group is in semi-hibernation waiting for content. I will be putting plans for the AI for the coming months. Right now, the only programming we need for the demo is tools programming.

Wednesday, January 6, 2010

More queries

Two new queries were created. The first is the Random query requested for the demo and the second is the first casting query which I felt would be needed in many cases in combination with other queries. These queries also required a small enhancement to our console which was not correctly handling nested numerical queries.

Here is an example of both queries:

Global.Echo():Text(Global.Int2String():Value(Global.Random():Number(10)))

Lua in the house

We are now supporting lua scripts. These are intended to be used for behavioral scripts, the declarative scripts are still in XML.

To execute a lua script file simply use the ExecuteLuaScript action as below

Global.ExecuteLuaScript():FilePath("Test.lua")

Where Test.lua is the filename of the script. This can either be ASCII or a compiled script.

To access our console from the Lua scripts, use the RelayCommand as follows:

RelayCommand ('Global.Echo():Text("This is a Lua script")')