enderalse/source/scripts/fs_nq05_alchemyscript.psc

30 lines
827 B
Plaintext
Raw Normal View History

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
Event OnActivate(objectReference akActionRef)
If (akActionRef == PlayerREF && FS_NQ05.GetStage() < 40 && FS_NQ05.GetStage() >= 30)
int iButton = FS_NQ05_AlchemyMessagebox.Show()
if iButton == 0
PlayerREF.RemoveItem(Nirnroot, 1)
PlayerREF.RemoveItem(SkeeverTail, 1)
PlayerREF.RemoveItem(MothWingMonarch, 1)
PlayerREF.RemoveItem(Garlic, 1)
PlayerREF.RemoveItem(FS_NQ05_Rezept, 1)
FS_NQ05.SetStage(40)
ElseIf iButton == 1
Return
EndIf
Endif
EndEvent