enderalse/source/scripts/_00e_playerhousingkoppophonmessage.psc

15 lines
441 B
Plaintext
Raw Normal View History

Scriptname _00E_PlayerhousingKoppophonMessage extends ObjectReference
Book Property noteToGive auto
Message Property messageToShow auto
GlobalVariable Property giveOnce auto
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
if akNewContainer == Game.getPlayer() && giveOnce.getValue() == 0
messageToShow.show()
Game.getPlayer().additem(noteToGive, 1)
giveOnce.setValue(1)
Endif
Endevent