enderalse/source/scripts/defaultaddbookscript.psc

16 lines
335 B
Plaintext

Scriptname defaultAddBookScript extends ObjectReference
BOOK PROPERTY itemToAdd AUTO
{the misc item to place}
INT PROPERTY count AUTO
{how many of the above item the char should have}
EVENT onLoad()
IF (SELF.getItemCount(itemToAdd) < count)
SELF.addItem(itemToAdd, count - SELF.getItemCount(itemToAdd), TRUE)
ENDIF
ENDEVENT