Questions about making scripts
Kharlog
Member Posts: 5
Hi,
I'm trying to do some spellcaster scripts. I've downloaded the script compiler from:
http://www.fileplanet.com/13585/10000/fileinfo/Baldur's-Gate-Script-Compiler-(Final-Version)
Is this the latest/best version?
I've been trying to find some decent way to debug the character script .BS files. I basically need to find a way to print some strings to the chatbox. Alternatively I could save values to some global variables (tokens) and then possibly check the values of those variables using console. Is this possible?
I found a relevant thread here:
http://forum.baldursgate.com/discussion/5235
However nothing will be displayed if I try to input some custom string in DisplayString-function, like
DisplayString(Myself,~Oooooh! Pretty! A Magic Missile!~)
I can only input integer as second parameter and then the corresponding string from dialog.tlk is picked. I cannot figure out the logic how to find which integer refers to which string in that file.
It seems DisplayStringHead-function is not even supported by the compiler I'm using. I get the following error when compiling: "Action:DisplayStringHead Not found. Check for proper brackets."
Does anyone know any decent way to debug Baldur's Gate scripts?
I'm trying to do some spellcaster scripts. I've downloaded the script compiler from:
http://www.fileplanet.com/13585/10000/fileinfo/Baldur's-Gate-Script-Compiler-(Final-Version)
Is this the latest/best version?
I've been trying to find some decent way to debug the character script .BS files. I basically need to find a way to print some strings to the chatbox. Alternatively I could save values to some global variables (tokens) and then possibly check the values of those variables using console. Is this possible?
I found a relevant thread here:
http://forum.baldursgate.com/discussion/5235
However nothing will be displayed if I try to input some custom string in DisplayString-function, like
DisplayString(Myself,~Oooooh! Pretty! A Magic Missile!~)
I can only input integer as second parameter and then the corresponding string from dialog.tlk is picked. I cannot figure out the logic how to find which integer refers to which string in that file.
It seems DisplayStringHead-function is not even supported by the compiler I'm using. I get the following error when compiling: "Action:DisplayStringHead Not found. Check for proper brackets."
Does anyone know any decent way to debug Baldur's Gate scripts?
0
Comments
DisplayString(Myself,xxxxx)
x = string reference.
Use Near infinity instead of this compiler.
I tried Near Infinity (downloaded from http://www.idi.ntnu.no/~joh/ni/download.html) but unfortunately after loading chitin.key file I get error loading dialog.tlk file. Quite possibly the format has been changed in BG:EE. Are you using NI without problems?
Latest version here :
https://github.com/FredrikLindgren/NearInfinity/downloads
Make a backup of your tlk and your chitin.key before using NI.