I am dipping my toes into the wonderful world of Mudlet scripting and GMCP, and have a question about a script I'm working on.
I set up a custom tag in svof for use in a custom prompt. It's a simple one - tracks whether the vitality defense is up or down, and color-codes a "V" either red or green, as appropriate. I use regular triggers that look for the various vitality messages to set a variable, and change the colors based on the value of that variable.
I'd like to fine-tune this a bit and have it also recognize when vitality is off cooldown and ready to be put up again. I know that svof gives a message when it's ready and I was thinking I could just go off of that - but I can't find that specific bit of code (and believe me, I've looked.) I figure there might be a GMCP event of some sort that I could use, but I don't really know what to look for just yet.
Any ideas? Is this even possible? Any advice would be appreciated.
0
Comments
Trigger: ^A surge of rejuvenating energy floods your system, healing your wounds\.$
What to do with it:
vitality_reset = false
tempTimer(125, [[vitality_reset = true]])
It was incorporated into re-deffing, but now it just echoes back that it is available.
@Caelan: Thanks, I had tried something like that as well, but as far as I could tell, the cooldown time seemed inconsistent. Is 125 seconds the set value for the cooldown, or is it somewhat random?