enderalse/source/scripts/fs_nq07_alchemyscript.psc

30 lines
757 B
Plaintext

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
Event OnActivate(objectReference akActionRef)
If (akActionRef == PlayerREF && FS_NQ07.GetStage() == 115)
int iButton = _00E_FS_NQ07_AlchemyMessagebox.Show()
if iButton == 0
PlayerREF.RemoveItem(FoodMead, 1)
PlayerREF.RemoveItem(FrostMirriam, 2)
PlayerREF.RemoveItem(FoodBananenschnaps, 1)
PlayerREF.RemoveItem(_00E_FS_NQ07_Rezept, 1)
FS_NQ07.SetStage(120)
ElseIf iButton == 1
Return
EndIf
EndIf
EndEvent