27 lines
1001 B
Plaintext
27 lines
1001 B
Plaintext
ScriptName GA_00E_DuesterSSiegelSCPT Extends ObjectReference
|
|
|
|
;-- Variables ---------------------------------------
|
|
|
|
;-- Properties --------------------------------------
|
|
ObjectReference Property DisabledSigil Auto
|
|
ObjectReference Property HangBridge Auto
|
|
Int Property StaticState Auto
|
|
Message Property message01 Auto
|
|
MiscObject Property sigilStone Auto
|
|
|
|
;-- Functions ---------------------------------------
|
|
|
|
; Skipped compiler generated GetState
|
|
|
|
; Skipped compiler generated GotoState
|
|
|
|
Event onActivate(ObjectReference akActionRef)
|
|
If StaticState == 0 && Game.GetPlayer().GetItemCount(sigilStone as Form) == 0 && DisabledSigil.isDisabled()
|
|
message01.Show(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
|
|
ElseIf StaticState == 0 && Game.GetPlayer().GetItemCount(sigilStone as Form) != 0 && DisabledSigil.isDisabled()
|
|
Game.GetPlayer().RemoveItem(sigilStone as Form, 1, False, None)
|
|
DisabledSigil.Enable(False)
|
|
HangBridge.PlayGamebryoAnimation("Backward", False, 0.0)
|
|
EndIf
|
|
EndEvent
|