Error Message : (16,6) missing EOF at 'if'
I'm not sure if the 'if' is actually the problem or i'm missing some properties.
The script is one I had in fallout so this may not be helping.
Could anyone help me correct this please? i'm not too clever with the new properties or scripting ways.
Spoiler
Scriptname svxCampfireScript1 extends ObjectReference
; Forward = Initial turn-on/warm-up state
; SpecialIdle = Fully bright, occasional flicker
; Backward = off
short bInitialized
short bLit ; 1 = Light is on.
short bFlicker ; 1 = Light is fully bright and occasionally flickering.
float fTimer
float fRandomDelay
ref LinkedLight
begin OnLoad
if bInitialized == 0
PlayGroup Backward 1
set bInitialized to 1
endif
end
begin GameMode
if bLit
if GetCurrentTime < 20.0 || GetCurrentTime > 23.0
set LinkedLight to GetLinkedRef
PlayGroup Backward 1
set bLit to 0
set bFlicker to 0
LinkedLight.disable
elseif bFlicker == 0
if fTimer < fRandomDelay
set fTimer to fTimer + GetSecondsPassed
else
set fTimer to 0
PlayGroup SpecialIdle 1
set bFlicker to 1
endif
endif
else
if GetCurrentTime > 20.0 && GetCurrentTime < 23.0
set LinkedLight to GetLinkedRef
PlayGroup Forward 1
set bLit to 1
LinkedLight.enable
set fRandomDelay to 15 + 10.0/99.0 * GetRandomPercent
endif
endif
end
Scriptname svxCampfireScript1 extends ObjectReference
; Forward = Initial turn-on/warm-up state
; SpecialIdle = Fully bright, occasional flicker
; Backward = off
short bInitialized
short bLit ; 1 = Light is on.
short bFlicker ; 1 = Light is fully bright and occasionally flickering.
float fTimer
float fRandomDelay
ref LinkedLight
begin OnLoad
if bInitialized == 0
PlayGroup Backward 1
set bInitialized to 1
endif
end
begin GameMode
if bLit
if GetCurrentTime < 20.0 || GetCurrentTime > 23.0
set LinkedLight to GetLinkedRef
PlayGroup Backward 1
set bLit to 0
set bFlicker to 0
LinkedLight.disable
elseif bFlicker == 0
if fTimer < fRandomDelay
set fTimer to fTimer + GetSecondsPassed
else
set fTimer to 0
PlayGroup SpecialIdle 1
set bFlicker to 1
endif
endif
else
if GetCurrentTime > 20.0 && GetCurrentTime < 23.0
set LinkedLight to GetLinkedRef
PlayGroup Forward 1
set bLit to 1
LinkedLight.enable
set fRandomDelay to 15 + 10.0/99.0 * GetRandomPercent
endif
endif
end

