I want to find out how to use scripting to record an xp value to a variable when I type score and then the next time i type score take the new xp value and output the difference, and also retain the difference so that each time 'score' is typed the difference is added to an overall sum. How could I do something like this? So actually it would output 'sum' not difference. i can provide snippets of the mud code if needed? I think this may deal with regex which im not yet familiar with
I also want to know if instead i can make some kind of to next level script by setting a variable, lets call it 'goal' and subtract the difference from the goal until 'goal' is reached, at which point it should output 'you can gain a level!'
I also want to know if instead i can make some kind of to next level script by setting a variable, lets call it 'goal' and subtract the difference from the goal until 'goal' is reached, at which point it should output 'you can gain a level!'