enderalse/scripts/source/_00e_playerhousingkoppophonmessage.psc

15 lines
441 B
Plaintext

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