Jump to content


Photo

'Unrecognised variable or function' error message


  • Please log in to reply
1 reply to this topic

#1 Yovaneth

Yovaneth

    The newly-appointed Master Builder of Baldur's Gate

  • Modder
  • 3058 posts

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-

#2 Yovaneth

Yovaneth

    The newly-appointed Master Builder of Baldur's Gate

  • Modder
  • 3058 posts

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-