I just went back to using Mudlet today, and I need your help. I've lost what little I've learned in the past.
Basically, I want to capture the amount of esteem I have, and should it be greater than a set amount(for example: 100), I'd like to imbue the captured amount to a figurine. I was thinking of basing it off of QSC. Help, please?
| Siam Star-eyes, Echo of the Wyrd ---------------------------------- #86 |
| Essence: 27,866,684 Power: 10p ( 92%) Karma: 10% Esteem: 156 |
| Health : 4810/4810 Mana : 6175/6300 Ego : 6684/7500 Analytical |
|-------------------------------------------------------------------------|
Viravain, Lady of the Thorns shouts, "And You would seize Me? Fool! I am the Glomdoring! I am the Wyrd, and beneath the cloak of Night, the shadows of the Silent stir!"
#bringShikariback
Comments
^\| Essence: .+ Power: \d+p \( \d+\%\) Karma: \d+\% Esteem: (\d+) \|$
if you didn't care about how specific the regex was, you could just do
^\| Essence: .+ Esteem: (\d+) \|$
and you'd just do...
esteem = tonumber(matches[2])
I can't test right now, I put lots of \ in front of characters I wasn't sure about... But I think that should work
"Beseeched she, the Night for Beauty, and beauty it was she found," you sing, letting an ebony and moonhart mandolin howl with painful notes.
I want to ignore everything else besides "you sing", see below:
^" * " you sing,* \.$
I suspect I have to use the A-Z thing here, right? I can't find something similar in the new forums, though. I think I could always trigger "you sing" as a substring, but I think that'd be too crude... ) All help would be appreciated!
Before the arithmetic line.
This might mean that the number is not saved across sessions, though. If you want to keep track of how many times you've used the patted emote across sessions. You'll need to use the loadVars() and saveVars() functions.
if tonumber(gmcp.Char.Vitals.esteem) > 100 then
send("imbue "..mm.conf.figurine.." with " ..gmcp.Char.Vitals.esteem.. " esteem", false)
end
Then you just need triggers to scoop up the things that drop out of the bodies.
You have received a new honour! Congratulations! On this day, you have shown your willingness to ensure a bug-free Lusternia for everyone to enjoy. The face of Iosai the Anomaly unfolds before you, and within you grows the knowledge that you have earned the elusive and rare honour of membership in Her Order.
Curio Exchange - A website to help with the trading of curio pieces in Lusternia.