Non-coding method: hit the (i) and you'll get timestamps on the left of the main window.
Coding method: set a variable to os.clock() when your balance goes to 0. When it goes to 1, do something like
local timetaken = os.clock() - timeused
cecho("That took "..timetaken.." seconds.")
If you don't know how to set scripts to run on gmcp events, the tldr is make a script, name it scriptName, add gmcp.Char.Vitals to the user defined event line then hit +, then make a function named scriptName. Anything in the block will run when that gmcp is updated.
Are you just creating something to put up your defenses? I have an alias that uses stratagems so it just casts the next thing as soon as balance comes back.
Like my mudlet alias so when I type DEFUP it does:
Comments
Coding method: set a variable to os.clock() when your balance goes to 0. When it goes to 1, do something like
local timetaken = os.clock() - timeused
cecho("That took "..timetaken.." seconds.")
If you don't know how to set scripts to run on gmcp events, the tldr is make a script, name it scriptName, add gmcp.Char.Vitals to the user defined event line then hit +, then make a function named scriptName. Anything in the block will run when that gmcp is updated.
Like my mudlet alias so when I type DEFUP it does:
Edit: I should probably just use SM ADD rather than a bunch of SM INSERT 1 but it does the job.