enderalse/source/scripts/_00e_nq09_tabletscript.psc

53 lines
1.3 KiB
Plaintext

Scriptname _00E_NQ09_TabletScript extends ObjectReference
Event onActivate(objectReference actronaut)
; Show tablet texts
if (Self.GetBaseObject() == _00E_NQ09_Tablet01)
if ( NQ09.GetCurrentStageID() >= 30 )
showMessage(_00E_NQ09_Tablet01_mb)
NQ09.SetCurrentStageID(35)
Return
ElseIf ( NQ09.GetCurrentStageID() >= 35 )
showMessage(_00E_NQ09_Tablet01_mb)
Return
endif
elseif (Self.GetBaseObject() == _00E_NQ09_Tablet02 )
if ( NQ09.GetCurrentStageID() >= 35 )
showMessage(_00E_NQ09_Tablet02_mb)
NQ09.SetCurrentStageID(40)
Return
ElseIf ( NQ09.GetCurrentStageID() >= 40 )
showMessage(_00E_NQ09_Tablet02_mb)
Return
endif
elseif (Self.GetBaseObject() == _00E_NQ09_Tablet03 )
if ( NQ09.GetCurrentStageID() >= 40 )
showMessage(_00E_NQ09_Tablet03_mb)
NQ09.SetCurrentStageID(45)
Return
ElseIf ( NQ09.GetCurrentStageID() >= 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