2021-10-05 22:15:58 +00:00
|
|
|
Scriptname FS_NQ07_AlchemyScript extends ObjectReference
|
|
|
|
|
|
|
|
Actor Property PlayerREF Auto
|
|
|
|
|
|
|
|
Quest Property FS_NQ07 Auto
|
|
|
|
Book Property _00E_FS_NQ07_Rezept Auto
|
|
|
|
Potion Property FoodMead Auto
|
|
|
|
Ingredient Property FrostMirriam Auto
|
|
|
|
Potion Property FoodBananenschnaps Auto
|
|
|
|
Message Property _00E_FS_NQ07_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
|
|
|
|
|
|
|
|
If FS_NQ07.GetStage() == 115
|
|
|
|
If _00E_FS_NQ07_AlchemyMessagebox.Show() == 0
|
|
|
|
PlayerREF.RemoveItem(FoodMead, 1)
|
|
|
|
PlayerREF.RemoveItem(FrostMirriam, 2)
|
|
|
|
PlayerREF.RemoveItem(FoodBananenschnaps, 1)
|
|
|
|
PlayerREF.RemoveItem(_00E_FS_NQ07_Rezept, 1)
|
|
|
|
FS_NQ07.SetStage(120)
|
|
|
|
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
|