07-23-2003, 01:07 AM
Ok i've made a script engine which works fine, but the problem is how can i read variables and change them in my program for example:
in my program
i have a integer called 'gold' which holds the value 40
now i don't want my in my parser that it looks up for this string 'gold' and then goto the function where it read the value after it, but i want that i read 'gold' in, 'gold' is stored in a string and then reconized by my program as the integer gold.
it's a bit unclear maybe but if you need more explaination i will give it ;-)
in my program
i have a integer called 'gold' which holds the value 40
now i don't want my in my parser that it looks up for this string 'gold' and then goto the function where it read the value after it, but i want that i read 'gold' in, 'gold' is stored in a string and then reconized by my program as the integer gold.
it's a bit unclear maybe but if you need more explaination i will give it ;-)