Game Engine script manual 1.0

	The script is located in the XML file per scene under the namespace <storyboard>. It is executed at scene start and on various user inputs. Within a scene it is possible to create multiple threads execting simultaniously.

use

	use item1 item2

		Truth statement generated by the engine

lookAt

	lookAt item

		Truth statement generated by the engine

pickUp

	pickUp item

		Truth statement generated by the engine

case

	case item.variable operand value

		operands : 	=	equal
					<	lessser
					>	greater
					!	not
					=>	equal or greater
					<=	equal of lesser

		value :		String between double quotes
					numeric value with optional decimal point
	
	should alway end with esac on the same indend		

set

	set item.variable operand/value

		operands :	++	add 1
					-- 	subtract 1

		values :		String between double quotes
					numeric value with optional decimal point

wait

	wait timevalue

		timevalue : 	numeric value in seconds with optional decimal point

label

	Label name

		Sets a point to jump to

jump

	jump labelname

		Jump to that label and level

break

	break

		Breaks current script execution thread

hide

	hide item

		Hides item, disabling it for interaction.
		Put this state in global game state.

say

	say "string"

		Make the main character say a string with talk animation.

play

	play audio_asset

		Plays a loaded audio file.

walkto

	walkTo X Y

		Makes the main character walk to these scene coordinates.

loadScene

	loadScene sceneName
	
		sets up a scene defined in the data file