scn NDSirBerichSCRIPT
short SpokeToPlayer ; set to 1 when spoke to player
short EventCount ; disable process
float timer
begin OnLoad
setghost 1
end
; Sir Berich disables himself if he is still around after the other ghosts leave
begin gamemode
if getDisabled == 1
return
endif
if getstage ND10Fin >= 15 && SpokeToPlayer == 1
if ( EventCount == 0 )
set Timer to 5
set EventCount to 1
endif
set Timer to ( Timer - GetSecondsPassed )
if ( Timer <= 4 )
if ( EventCount == 1)
ND10FinSirBerichMarker.pme SHLD
set EventCount to 2
elseif ( EventCount == 2)
set EventCount to 3
elseif ( EventCount == 3)
set EventCount to 1
endif
endif
if ( Timer <= 0 )
disable
endif
endif
end
|