Help - Search - Members - Calendar
Full Version: Urgent help with scripting needed!
The Nexus Forums > Specific Games > Morrowind > Morrowind Plug-Ins > TES Construction Set
the themis
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
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
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
Do you know a link to a copy of scripting for dummies becaseu I can only find v6-v8. Thanks
Kevin Woodman
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.