Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
335 B
16 lines
335 B
5 months ago
|
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
|