Jump to content

Urgent help with scripting needed!


the themis

Recommended Posts

Posted

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.

Posted

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.

Posted

You might try this, it's supposed to add 100 gold per day.

begin SCRIPTNAME

short currentday

if ( currentday != day )
set currentday to day
"containerID"->additem "gold_001" 100
endif

end

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...