enderalse/source/scripts/_00e_mq07b_questboxsc.psc

36 lines
1.1 KiB
Plaintext

Scriptname _00E_MQ07b_QuestBoxSC extends ObjectReference
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnTriggerEnter(ObjectReference akActionRef)
if MQ07b_LishariUglyFailsaveGlobal == None
MQ07b_LishariUglyFailsaveGlobal = Game.GetForm(0x0003AC43) as GlobalVariable
EndIf
if MQ07b_SC2_Bellhammer == None
MQ07b_SC2_Bellhammer = Game.GetForm(0x0003AC40) as ObjectReference
EndIf
MQ07b_SC2_Bellhammer.Enable()
if MQ07b_LishariUglyFailsaveGlobal.GetValueInt() == 1 && akActionRef == Game.GetPlayer()
if MQ07b.GetStage() < 51
MQ07b.SetStage(51)
EndIf
EndIf
EndEvent
;=====================================================================================
; PROPERTIES
;=====================================================================================
GlobalVariable Property MQ07b_LishariUglyFailsaveGlobal Auto
Quest Property MQ07b Auto
ObjectReference Property MQ07b_SC2_Bellhammer Auto