this script ceeps causeing errors : (
now thats not the full script just the problematic part please help
Scripts
Scripting Questionson:use{dialogue "start",XX} //set for XX the ID of the textcontainer or the file in wich the dialogue is
page=start //dont set here a semicolon (;) title=Trader // The title of the dialogue text=start //dont forget this I'm this islands native trader . What may i get you? text=end; button=buy,I want to buy! button=sell,I want to sell! button=info,What can you tell about this island? button=action:close,Nothing, thank you!
on:use{dialogue "start",XX} //set for XX the ID of the textcontainer or the file in wich the dialogue is
on:use {
	msg "foo!";
}
on:use {
	msg "foo!";
}
Tree addendum
	on:changeday {
		local $growthtime=spawntimer;
	}
Axe addendum contained in on:impact script of axe
	$tmp5=getlocal($tmp,$tmp2,$growthtime);
	if (compare_behaviour($tmp,$tmp2,"tree")==1){
		if ($tmp5<0){
			msg "This tree is not ready to be felled"
		}
	}
extendscript with on:collect to extend the script of the item which is used when on:use in the inventory is triggered.
addscript with on:collect.
getlocal.
setlocal you'll see that it has 2 additional parameters. I experimented a little bit with the
getlocal command and found out that it helps in some cases if you add 2 commas in front of the semicolon at the end of the command: tmp5=getlocal($tmp,$tmp2,$growthtime),,;
on:changeday {
local $growthtime=spawntimer;
}
on:changeday {
local $growthtime;
$growthtime=spawntimer ("self");
on:changeday {
local $growthtime;
$growthtime=spawntimer ("self");
getlocal command.
local command works fine you still can use it.
getlocal, you can start an event by using the command
event, this command has to start a local event at the current object from which you wish to get the local variable. then, because of the local event, you can transfer the value of the local variable to a global variable.on:changeday {
	local $growthtime;
	$growthtime=spawntimer ("self");
}
on:globalize {
	$glob_growthtime=$growthtime;
}
event at the object which has this code in it.
event command at the end of the on:globalize event to start a new event (a global one this time) and then put the rest of your script (which is supposed to be executed afterwards you've got the value of the local variable) into it.
getlocal command