enderalse/source/scripts/_00e_fs_nq07_miscdoorscript.psc

23 lines
878 B
Plaintext

Scriptname _00E_FS_NQ07_MiscDoorScript extends ObjectReference
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
If akNewContainer == PlayerREF && !bDone
bDone = true
_00E_FS_NQ07_LeveledListDoor.Revert()
VendorItemsBanker.RemoveAddedForm(_00E_FS_NQ07_VendorNoSale)
_00E_FS_NQ07_DoorOwned.SetValueInt(1)
;we need the following two lines to get the Event triggered properly, gj Beth
PlayerREF.AddItem(_00E_FS_OnContainerChangedFakeItem, 1, true)
PlayerREF.RemoveItem(_00E_FS_OnContainerChangedFakeItem, 1, true)
EndIf
EndEvent
bool bDone
Book Property _00E_FS_OnContainerChangedFakeItem Auto
Actor Property PlayerREF Auto
GlobalVariable Property _00E_FS_NQ07_DoorOwned Auto
Keyword Property _00E_FS_NQ07_VendorNoSale Auto
FormList Property VendorItemsBanker Auto
LeveledItem Property _00E_FS_NQ07_LeveledListDoor Auto