2021-10-05 22:15:58 +00:00
|
|
|
Scriptname FS_NQ05_AlchemyScript extends ObjectReference
|
|
|
|
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
|
|
|
|
Quest Property FS_NQ05 Auto
|
|
|
|
Book Property FS_NQ05_Rezept Auto
|
|
|
|
Ingredient Property Nirnroot Auto
|
|
|
|
Ingredient Property SkeeverTail Auto
|
|
|
|
Ingredient Property MothWingMonarch Auto
|
|
|
|
Ingredient Property Garlic Auto
|
|
|
|
Message Property FS_NQ05_AlchemyMessagebox Auto
|
|
|
|
|
2021-10-12 02:10:35 +00:00
|
|
|
Bool bActivationBlocked = False
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2021-10-12 02:10:35 +00:00
|
|
|
Event OnActivate(ObjectReference akActionRef)
|
|
|
|
If akActionRef == PlayerREF && _00E_PlayerhousingMaster.ReferenceCanBeActivated(Self) && bActivationBlocked == False
|
|
|
|
bActivationBlocked = True
|
|
|
|
|
|
|
|
Int qStage = FS_NQ05.GetStage()
|
|
|
|
If qStage >= 30 && qStage < 40
|
|
|
|
If FS_NQ05_AlchemyMessagebox.Show() == 0
|
2021-11-08 19:37:48 +00:00
|
|
|
FS_NQ05.SetStage(40)
|
2021-10-12 02:10:35 +00:00
|
|
|
PlayerREF.RemoveItem(Nirnroot, 1)
|
|
|
|
PlayerREF.RemoveItem(SkeeverTail, 1)
|
|
|
|
PlayerREF.RemoveItem(MothWingMonarch, 1)
|
|
|
|
PlayerREF.RemoveItem(Garlic, 1)
|
|
|
|
PlayerREF.RemoveItem(FS_NQ05_Rezept, 1)
|
|
|
|
EndIf
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
|
|
|
|
2021-10-12 02:10:35 +00:00
|
|
|
bActivationBlocked = False
|
|
|
|
EndIf
|
2021-10-05 22:15:58 +00:00
|
|
|
EndEvent
|