enderalse/source/scripts/_00E_IceClaw.psc

28 lines
811 B
Plaintext

Scriptname _00E_IceClaw extends ObjectReference
Event OnActivate(ObjectReference akActionRef)
If akActionRef == PlayerREF
GoToState("DoNothing")
PlayerREF.AddItem(_00E_FloraEispranke, 1, true)
int EPC = _00E_EisprankeCounter.GetValueInt()
_00E_EisprankeCounter.SetValue(EPC + 1)
If EPC == 0 && _00E_DisableOtherTutorials.GetValueInt() == 0
_00E_EisprankeMessagebox.Show()
EndIf
DisableNoWait()
PlayerREF.EquipItem(_00E_FloraEispranke, false, true)
EndIf
EndEvent
State DoNothing
Event OnActivate(ObjectReference akActionRef)
; Do nothing
EndEvent
EndState
Actor Property PlayerREF Auto
GlobalVariable Property _00E_EisprankeCounter Auto
GlobalVariable Property _00E_DisableOtherTutorials Auto
Message Property _00E_EisprankeMessagebox Auto
Potion Property _00E_FloraEispranke Auto