Sunday, February 12, 2012
Var replace on event check...
Such a frustrating night, of trying to do something that I had working else where. Basically way back in the good old days we did in line replacement of variables in text. IE if you put in the xml "I have #gold" you get back "I have 20". But now with the jobs I wanted to do the same thing but not in text but as a check so basically is #gold == 20 it turned in to a huge pain in my ass but I won in the long run.
So basically I pull out my magic dice #rand3 and can now randomly choose a job. BTW #rand3 is reset every time there is an event. So one step closer to jobs being done. I need to now build a way to set replacement variables. That way #gold can be added to + 20. My head is already swimming.