49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
Scriptname _00E_MQ13c_SC09_ButtonSC extends ObjectReference
|
|
|
|
|
|
;=====================================================================================
|
|
; EVENTS
|
|
;=====================================================================================
|
|
|
|
Event OnInit()
|
|
|
|
Self.BlockActivation()
|
|
|
|
EndEvent
|
|
|
|
Event OnActivate(ObjectReference akActionRef)
|
|
|
|
If MQ13c.GetStage() == 120
|
|
If bButtonPlayer
|
|
If akActionRef == Game.GetPlayer()
|
|
Self.Activate(akActionRef, True)
|
|
Else
|
|
Return
|
|
EndIf
|
|
ElseIf bButtonRomance
|
|
If akActionRef == MQ13c.akCompanionRomance
|
|
Self.Activate(akActionRef, True)
|
|
Else
|
|
Return
|
|
EndIf
|
|
ElseIf bButtonNoRomance
|
|
If akActionRef == MQ13c.akCompanionNoRomance
|
|
Self.Activate(akActionRef, True)
|
|
Else
|
|
Return
|
|
EndIf
|
|
Endif
|
|
EndIf
|
|
|
|
EndEvent
|
|
|
|
|
|
;=====================================================================================
|
|
; PROPERTIES
|
|
;=====================================================================================
|
|
|
|
bool Property bButtonPlayer Auto
|
|
bool Property bButtonRomance Auto
|
|
bool Property bButtonNoRomance Auto
|
|
|
|
_00E_MQ13c_Functions Property MQ13c Auto |