I finally got the mob variable snippet to work in a limited manor. I striped out the pointer abilites out of it till i can get this to work the way i want. The problem Im having is the scope of these variables. When the mob runs the program it works great but as soon as you go to use the variable in another prog on the same mob its gone allready. Example. Set Setvar 1 $n when char enters room. When char leaves room check $1 OPPS its unset.
If I remove the reset functions for the variables out of mprog_driver then the variables are shared with all mobs and that just wont work. Either i have the reset function in the wrong place in mprog_driver or this just wont work for me with out some redoing. What i would like to do is set the variables to the mob and only have them reset when the mob dies or the var is reset with setvar. I would need this so each instance of the mob could have different variables. How would I go about doing this. Would i have to actually set new variables for mobs in general and then have the setvar function set the ch->var1 etc. Where in the code would i have to add these variables so mobs would have them. Thank you in advance.