the themis
May 24 2005, 07:47 PM
I want to make a container that adds gold everyday but I do not know how to script at all. Please please help me!
draighox
May 25 2005, 07:38 AM
OK, I'll try, though syntax may be wrong. There should be global variable "Hour", "CurrentHour", or something like that. I think, the ID of gold coin is "Gold_001", but I'm not sure.
short DoOnce;
if ((DoOnce == 0) and (Hour == 1))
{
"ChestID" -> AddItem, "Gold_001", 100;
DoOnce = 1;
}
if ((DoOnce == 1) and (Hour != 1))
DoOnce = 0;
Try this. Read the help file, correct the syntax and it should work.
Theta Orionis
May 25 2005, 07:56 AM
Read 'Scripting for Dummies' - it's the best scripting tutorial/reference I know of.
Having a look at some of the timer scripts in Morrowind might also be helpful.
the themis
May 25 2005, 01:53 PM
Do you know a link to a copy of scripting for dummies becaseu I can only find v6-v8. Thanks
Kevin Woodman
May 25 2005, 02:21 PM
You might try this, it's supposed to add 100 gold per day.
CODE
begin SCRIPTNAME
short currentday
if ( currentday != day )
set currentday to day
"containerID"->additem "gold_001" 100
endif
end