4
Fork 0
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.
 
 
 

23 lines
878 B

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