'Unrecognised variable or function' error message
Started by Yovaneth, Aug 16 2008 11:36 AM
1 reply to this topic
#1
Posted 16 August 2008 - 11:36 AM
This is cut-down just to ask the question: ignoring the other variables (which also give the same error in other parts of the script) why does this fail when being compiled?
scn LorschaClassScript
ref Me
short bRunClass
short bClassChk
short LorschaIncPick
short LorschaClass
short DoPercent
short pickPercent
short goRun
short bMelee
short bRanged
short bMelRanged
short bSpellChucker
short bStealth
begin GameMode
set Me to LorschaQuest.ME
;the random number generator for class selection
if bRunClass ==1 && DoPercent == 0
set pickPercent to GetRandomPercent
set DoPercent to 1
endif
;Class Selection - Selects class based on combat style choice and then adds class specific equipment
if LorschaClassQuest.bMelee == 1 && bRunClass == 1 && goRun == 0
This last line errors on .bMelee with 'Unrecognised variable or function' error, but bMelee is included in the variables list. Anyone know why?
-Y-
scn LorschaClassScript
ref Me
short bRunClass
short bClassChk
short LorschaIncPick
short LorschaClass
short DoPercent
short pickPercent
short goRun
short bMelee
short bRanged
short bMelRanged
short bSpellChucker
short bStealth
begin GameMode
set Me to LorschaQuest.ME
;the random number generator for class selection
if bRunClass ==1 && DoPercent == 0
set pickPercent to GetRandomPercent
set DoPercent to 1
endif
;Class Selection - Selects class based on combat style choice and then adds class specific equipment
if LorschaClassQuest.bMelee == 1 && bRunClass == 1 && goRun == 0
This last line errors on .bMelee with 'Unrecognised variable or function' error, but bMelee is included in the variables list. Anyone know why?
-Y-
'Go for the optics, Chiktikka. GO FOR THE OPTICS!!' - Tali vas Neema
DLTCEP Tutorials Update Page
DLTCEP Tutorials Main Page
Yovaneth's AI Scripts for BG1, BG2-SoA and IWD1
Fishing for Trouble - a quest mod for Shadows of Amn
#2
Posted 17 August 2008 - 02:36 AM
Never mind. I was trying to modify an existing character; resorting to a hex editor fixed it.
-Y-
-Y-
'Go for the optics, Chiktikka. GO FOR THE OPTICS!!' - Tali vas Neema
DLTCEP Tutorials Update Page
DLTCEP Tutorials Main Page
Yovaneth's AI Scripts for BG1, BG2-SoA and IWD1
Fishing for Trouble - a quest mod for Shadows of Amn