2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_NQ24_LeveledListCheck extends ObjectReference
|
|
|
|
{Ensures that the housing documents as well as the blueprint storage book are only sold once}
|
|
|
|
|
|
|
|
Event OnTriggerEnter (ObjectReference akActionRef)
|
|
|
|
|
|
|
|
If akActionRef == PlayerREF
|
|
|
|
If _00E_NQ24_PlayerHouseMarketOwned.GetValueInt() == 0
|
|
|
|
_00E_NQ24_LeveledListHouseMarket.AddForm(_00E_Game_Playerhouse_ArkMarket_Document, 1, 1)
|
|
|
|
VendorItemsBanker.AddForm(VendorItemPropertyArkMarket)
|
|
|
|
ElseIf _00E_NQ24_PlayerHouseMarketOwned.GetValueInt() == 1
|
|
|
|
_00E_NQ24_LeveledListHouseMarket.Revert()
|
|
|
|
VendorItemsBanker.RemoveAddedForm(VendorItemPropertyArkMarket)
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
If _00E_NQ24_PlayerHouseNobleOwned.GetValueInt() == 0
|
|
|
|
_00E_NQ24_LeveledListHouseNoble.AddForm(_00E_Game_Playerhouse_UpperCity_Document, 1, 1)
|
|
|
|
VendorItemsBanker.AddForm(VendorItemPropertyArkUpperCity)
|
|
|
|
ElseIf _00E_NQ24_PlayerHouseNobleOwned.GetValueInt() == 1
|
|
|
|
_00E_NQ24_LeveledListHouseNoble.Revert()
|
|
|
|
VendorItemsBanker.RemoveAddedForm(VendorItemPropertyArkUpperCity)
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
;not NQ24 related but still needs to be handled the same way, did not want to create a new script
|
2024-01-22 15:00:04 +00:00
|
|
|
;2.1: Replaced with a misc item
|
|
|
|
;If _00E_FS_BlueprintContainerBookOwned.GetValueInt() == 0
|
|
|
|
; _00E_FS_LeveledListBlueprintContainer.AddForm(_00E_FS_BlueprintContainerBook, 1, 1)
|
|
|
|
; VendorItemsBanker.AddForm(VendorItemFSBlueprintContainer)
|
|
|
|
;ElseIf _00E_FS_BlueprintContainerBookOwned.GetValueInt() == 1
|
|
|
|
; _00E_FS_LeveledListBlueprintContainer.Revert()
|
|
|
|
; VendorItemsBanker.RemoveAddedForm(VendorItemFSBlueprintContainer)
|
|
|
|
;EndIf
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
;just for FS_NQ07
|
2024-01-10 14:08:24 +00:00
|
|
|
If _00E_FS_NQ07_DoorOwned.GetValueInt() == 0 && FS_NQ07.GetCurrentStageID() >= 115
|
2021-10-05 22:15:58 +00:00
|
|
|
_00E_FS_NQ07_LeveledListDoor.AddForm(_00E_FS_NQ07_MiscDoor, 1, 1)
|
|
|
|
VendorItemsBanker.AddForm(_00E_FS_NQ07_VendorNoSale)
|
|
|
|
ElseIf _00E_FS_NQ07_DoorOwned.GetValueInt() == 1
|
|
|
|
_00E_FS_NQ07_LeveledListDoor.Revert()
|
|
|
|
VendorItemsBanker.RemoveAddedForm(_00E_FS_NQ07_VendorNoSale)
|
|
|
|
EndIf
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
|
|
|
|
Quest Property FS_NQ07 Auto
|
|
|
|
|
|
|
|
GlobalVariable Property _00E_NQ24_PlayerHouseMarketOwned Auto
|
|
|
|
GlobalVariable Property _00E_NQ24_PlayerHouseNobleOwned Auto
|
2024-01-22 15:00:04 +00:00
|
|
|
;GlobalVariable Property _00E_FS_BlueprintContainerBookOwned Auto
|
2021-10-05 22:15:58 +00:00
|
|
|
GlobalVariable Property _00E_FS_NQ07_DoorOwned Auto
|
|
|
|
|
|
|
|
FormList Property VendorItemsBanker Auto
|
|
|
|
|
|
|
|
LeveledItem Property _00E_NQ24_LeveledListHouseMarket Auto
|
|
|
|
LeveledItem Property _00E_NQ24_LeveledListHouseNoble Auto
|
2024-01-22 15:00:04 +00:00
|
|
|
;LeveledItem Property _00E_FS_LeveledListBlueprintContainer Auto
|
2021-10-05 22:15:58 +00:00
|
|
|
LeveledItem Property _00E_FS_NQ07_LeveledListDoor Auto
|
|
|
|
|
|
|
|
MiscObject Property _00E_Game_Playerhouse_ArkMarket_Document Auto
|
|
|
|
MiscObject Property _00E_Game_Playerhouse_UpperCity_Document Auto
|
2024-01-22 15:00:04 +00:00
|
|
|
;Book Property _00E_FS_BlueprintContainerBook Auto
|
2021-10-05 22:15:58 +00:00
|
|
|
MiscObject Property _00E_FS_NQ07_MiscDoor Auto
|
|
|
|
|
|
|
|
Keyword Property VendorItemPropertyArkMarket Auto
|
|
|
|
Keyword Property VendorItemPropertyArkUpperCity Auto
|
2024-01-22 15:00:04 +00:00
|
|
|
;Keyword Property VendorItemFSBlueprintContainer Auto
|
2021-10-05 22:15:58 +00:00
|
|
|
Keyword Property _00E_FS_NQ07_VendorNoSale Auto
|