enderalse/scripts/source/_00e_nq09_tabletscript.psc

53 lines
1.2 KiB
Plaintext
Raw Normal View History

Scriptname _00E_NQ09_TabletScript extends ObjectReference
Event onActivate(objectReference actronaut)
; Show tablet texts
if (Self.GetBaseObject() == _00E_NQ09_Tablet01)
if ( NQ09.GetStage() >= 30 )
showMessage(_00E_NQ09_Tablet01_mb)
NQ09.SetStage(35)
Return
ElseIf ( NQ09.GetStage() >= 35 )
showMessage(_00E_NQ09_Tablet01_mb)
Return
endif
elseif (Self.GetBaseObject() == _00E_NQ09_Tablet02 )
if ( NQ09.GetStage() >= 35 )
showMessage(_00E_NQ09_Tablet02_mb)
NQ09.SetStage(40)
Return
ElseIf ( NQ09.GetStage() >= 40 )
showMessage(_00E_NQ09_Tablet02_mb)
Return
endif
elseif (Self.GetBaseObject() == _00E_NQ09_Tablet03 )
if ( NQ09.GetStage() >= 40 )
showMessage(_00E_NQ09_Tablet03_mb)
NQ09.SetStage(45)
Return
ElseIf ( NQ09.GetStage() >= 45 )
showMessage(_00E_NQ09_Tablet03_mb)
Return
endif
endif
EndEvent
function showMessage(Message mb)
mb.Show()
EndFunction
Activator Property _00E_NQ09_Tablet01 Auto
Activator Property _00E_NQ09_Tablet02 Auto
Activator Property _00E_NQ09_Tablet03 Auto
Message property _00E_NQ09_Tablet01_mb auto
Message property _00E_NQ09_Tablet02_mb auto
Message property _00E_NQ09_Tablet03_mb auto
Quest property NQ09 auto