m&m system

by Vadi

Back to Mechanic's Corner.

Lilia2012-06-13 03:59:40
To use an event handler, it has to be a function. So your code box should have:
function CheckCha()
send("show cha")
end
Vadi2012-06-13 03:59:48
The code should be

function CheckCha()

send("show cha")
emd
Tavon2012-06-13 04:01:42
Thanks and thanks.
Vadi2012-08-03 01:27:39
Another update! 12.7.1.


More colours in the customprompt

All colours from showColors() are now available in the custom prompt! You don't need to define your own tags with them anymore. So ^chocolate, ^MediumOrchid, and ^chartreuse will fly...



Another customprompt improvement is that tags with shorter names won't have a chance to overtake tags with similar but longer names - ie sometimes @shortessence2 became just @shortessence with a 2 at the end, instead of being the other tag. No more! This'll be fine now.



New def lines

m&m's def has been updated with the Envoy changes in regards to shrines and other new trinkets that have come by - gravity, celerity, vendetta and respect. The highmagic and lowmagic equivalents of the shielding ability have been added as well, you can check them with mm.defc.shield - though some of the shield-removing lines might not be in yet fully.



The Pyromancers cauterize ability has been added as well, and can be defup/keepup-able.



Puer and Healspring

Both the Puer and Healspring abilities will be recognized when you've used them. Adding the stag medicinebag is on my list, as well as aliases similar to deephealing to make use of puer and mecidinebag actively. Or perhaps an alias to use those skills to clear up wounds when you get a breather alone? Feedback would be welcome here.



Riding improvements

m&m has been updated to take advantage of the prompt flag and GMCP improvements that were added to Riding! It also will mount steeds in trees now, since you can.



Allheale improvements

Allheale sip tracking has gotten an overhaul, and works properly now to cure aurics in maestoso.



Command queuing optimization

m&m will be better about batching commands together that can be - for example, all enchantments that don't take balance/equilibrium will be done at once now.



Do queue improvements

The do queue can now accept functions and closures! This means you can do mm.doadd(function() send"kick vermin" end), for example, and add more complicated logic into your do function.



As well as that, the do and dofree queues now raise events whenever they're modified - m&m do changed and

m&m dofree changed. This can help you to display the whole do queue on the screen visually, for example.



Lastly, a third argument has been added that allows you to choose whenever to show or not the command on the screen - mm.doadd(what, echoback, show).



Pinleg improvements

Pinleg writhing has been well optimized - the system will now take advantage of double-writhing at once where it can, and it won't writhe on pin/instarend combinations as well, not to waste your balance.



Meld tracker

I've coded a new meld tracker addon that's included for free in all melder systems - this addon will visually plot your meld on the map. As well as that, it'll also detect easily breakable rooms for you and those that are in circles and will mark them for you in red. This is mostly educative - while you can use in combat, since the game gives you little information about where you are getting broken, it's visual plotting can be thrown off-track by others.



Big thanks to everyone who's contributed feedback to make this update what it is :)



Changelog:

  • added all colours in showColors() as tags in the customprompt
  • added beast kick trigger
  • added bullkick trigger
  • added dracnari pipe lighting to be gagged
  • added gravity, celerity, vendetta, respect def lines
  • added impale withdraw lines
  • added lowmagic and highmagic equivalents of shield as a "shield" def
  • added mm.boxDisplay()
  • added mmconfig hook for cavalier hook parry
  • added more bashing triggers!
  • added more hive bashing triggers (thanks Viynain!)
  • added puer to be recognized
  • added puer, healspring to be recognized for curing wounds
  • added Pyromancer cauterize
  • added red colouring to dormant domoths
  • added reflections to be recognized
  • added riding to be recognized off prompt & gmcp
  • added support for transmology negating blindness
  • added visionflux
  • fixed allheale sipping not to doublesip
  • fixed allheale sipping to be proper
  • fixed avengingangel to assume confusion
  • fixed deathsong trigger going off for an SS song
  • fixed impale not to be writhed off while without balance
  • fixed m&m not to apply mending to limbs that are crushed
  • fixed mindclock and quickening defs
  • fixed mm.me.wielded tracking with sheathing/drawing
  • fixed mmdefup toggle not toggling
  • fixed pipe refilling not to go off only when both arms have hemilepgy, not either
  • fixed tags in customprompt sometimes taking over other tags (ie @shortessence taking over @shortessence2)
  • improved commands to be sent quicker for things that don't take balance
  • improved defup to ignore defences on ignore and finish defup anyway
  • improved do queue, it now raises "m&m do changed" and "m&m dofree changed" events
  • improved do queue, you can now add functions do it - ie mm.doadd(function() send"kick vermin" end). This allows for closures in the do queue as well.
  • improved doubledo to go off on a fracturedskull as well
  • improved install to empty pipes after assignment, to make sure pipes get the right items in them
  • improved paralysis, shackled, severedspine triggers to check for the 'p' in the prompt
  • removed the trees requirement from vaulting
  • reworked pinleg writhing pipeline - the system now takes advantage of double-writhing when writhing from double-pinned legs and recognizes when writhes carry over because of a rend
  • updated and improved the peopletracker
  • updated death karma blessing line
  • updated tremors trigger not to cripple limbs
Unknown2012-08-13 02:38:05
Some autorewield things:

(wield 111674)
You are already wielding a brushed silver viola decorated with pieces of night in your left hand.
exlr|bkr-
(wield 111674)
You are already wielding a brushed silver viola decorated with pieces of night in your left hand.
exlr|bkr-
(wield 111674)
You are already wielding a brushed silver viola decorated with pieces of night in your left hand.
(wield 111674)
exlr|bkr-
You are already wielding a brushed silver viola decorated with pieces of night in your left hand.
exlr|bkr-
(wield 111674)
You are already wielding a brushed silver viola decorated with pieces of night in your left hand.
exlr|bkr-
The spirit of one of your ancestors, hearing your song, rises from the mists of the past to watch
over you.
exlr|bkr-
Princess Xena McCloud says, "Ok he'll just run around."
exlr|bkr-
(wield 111674)
You are already wielding a brushed silver viola decorated with pieces of night in your left hand.
exlr|bkr-unwield viola
(wield 111674)
You are already wielding a brushed silver viola decorated with pieces of night in your left hand.
exlr|bkr-
You cease wielding a brushed silver viola decorated with pieces of night in your left hand.
exlr|bkr-
exlr|bkr-
(wield 111674)
You begin to wield a brushed silver viola decorated with pieces of night in your left hand.

And I don't believe it recognizes crushed knuckles:

With a focused look, Lilian strikes at you with a luminous hammer of Mother Moon. Your left knuckles are struck with a loud crack, and you unwield a brushed silver viola decorated with pieces of night.

Turning mmconfig autorewield off then on doesn't clear it.

Also, I get a few problems with impaled detection and trying to springup while impaled.
http://dl.dropbox.co...edspringup.html
Unknown2012-08-13 06:43:58
Lrn2GrippingRune :D
Unknown2012-08-22 20:20:54
Does the influence addon include debating?
Unknown2012-08-22 20:22:59
No.
Janalon2012-08-25 12:33:11
Will there be, or has there been, an official update to the M&M Beastmastery Addon that uses the new GMCP values? ~OR~ Would someone familiar with M&M be willing to post their lines of code?

I never managed to get the old Beastmastery Addon to reliably work on me. Somehow it would lose track of balance. I'm hoping that GMCP would be more reliable in the long run. Any help would be much appreciated!
Unknown2012-08-25 16:44:40
Yeah I brought it up to Vadi when the report came out. He'll get to it when he gets back from vacation I imagine.
Unknown2012-08-26 04:21:22
You are impaled and must writhe off before you may do that.
?:(a) 2796h, 2011m, 3381e, 10p, 19393en, 13014w elrxkdbp-
(stand)
The sticky sap coating your body causes you to move unbearably slowly.
?:(a) 2796h, 2011m, 3381e, 10p, 19393en, 13014w elrxkdbp-
You rush about in a state of utter panic.
You must first stand up before you can do that.
?:(a) 2796h, 2011m, 3381e, 10p, 19393en, 13014w elrxkdbp-
You notice that your sweat glands have begun to rapidly secrete a foul, oily substance.
?:(a) 3187h, 2011m, 3381e, 10p, 19393en, 13014w elrxkdbp-
You bleed 15 health.
?:(a) 3172h, 2011m, 3381e, 10p, 19393en, 13014w elrxkdbp-
You are impaled and must writhe off before you may do that.
?:(a) 3172h, 2011m, 3381e, 10p, 19393en, 13014w elrxkdbp-
(stand)
The sticky sap coating your body causes you to move unbearably slowly.
?:(a) 3172h, 2011m, 3381e, 10p, 19393en, 13014w elrxkdbp-
A sense of extreme nausea washes over you.
?:(a) 3172h, 2011m, 3381e, 10p, 19393en, 13014w elrxkdbp-
You are impaled and must writhe off before you may do that.
?:(a) 3172h, 2011m, 3381e, 10p, 19393en, 13014w elrxkdbp-
(stand)
The sticky sap coating your body causes you to move unbearably slowly.
?:(a) 3172h, 2011m, 3381e, 10p, 19393en, 13014w elrxkdbp-
You blink for a moment, then instantly, all about you is darkness.
?:(a) 3172h, 2011m, 3381e, 10p, 19393en, 13014w elrxkdbp-
Your health continues to drain away as your impaled body shudders on the end of Enyalida's antlers.
?:(a) 2864h, 2011m, 3381e, 10p, 19403en, 13020w elrxkdbp-
You rush about in a state of utter panic.
You must first stand up before you can do that.
?:(a) 2864h, 2011m, 3381e, 10p, 19403en, 13020w elrxkdbp-
Enyalida gives you the once over.
?:(a) 2864h, 2011m, 3381e, 10p, 19403en, 13020w elrxkdbp-
You are impaled and must writhe off before you may do that.
?:(a) 2864h, 2011m, 3381e, 10p, 19403en, 13020w elrxkdbp-
(stand)
A prickly stinging overcomes your body, fading away into numbness.->PARALYSED
?:(a) 2864h, 2011m, 3381e, 10p, 19403en, 13020w elrxkdbp-
The sticky sap coating your body causes you to move unbearably slowly.
?:(a) 2864h, 2011m, 3381e, 10p, 19403en, 13020w elrxkdbp-
You are overcome by it all and topple over in a dead faint.
?:(a) -
(m&m): Enabled blackout curing.
You are impaled and must writhe off before you may do that.

It repeatedly attempts stand or springup while impaled in sap.
Unknown2012-08-26 07:02:05
Evoke gedulah/green when in that situation.
Enyalida2012-08-28 14:02:37
Why would that help? That shouldn't clear away impale or sap, and they'd still be stuck.
Unknown2012-09-15 09:51:39
Since upgrading to the latest m&m (12.7.1) mudlet has been hanging fairly regularly, usually when I'm fighting something. I just get the windows 7 equivalent of the hourglass symbol and '(not responding)' in the title bar of the mudlet window. The only way out of it is to close the window and log back in again.

Icedigger pits seem to be the thing most likely to cause it but it has happened against other things and occasionally when not fighting at all. I'm on windows 7 and Mudlet 2.0-test4 10-25-2011

Might not be caused by m&m, or it could be some weird interaction with my (awful) code. I can't see anything unusual in the main window or any error messages. Any ideas, or any ideas on how I can get more information on the error?
Unknown2012-09-15 10:11:23
Ignore what the topic states, but perform all the actions specified here and this should resolve the issue. (Has worked 100% of the time, to my knowledge.)

http://vadisystems.com/mm/2012/03/custom-prompt-dissapearing/
Unknown2012-09-15 11:00:03
That seems to have done it. Thank you!
Xenthos2012-09-15 13:42:16
I'd think that would have been built into a Mudlet release by now... /me pokes Mudlet-people.
Unknown2012-09-15 14:06:37
Version 2 stable is going to be ready for release soon. Better to do it all then, really. It's been mostly avoided because whilst common, the problem does not affect every user.
Xenthos2012-09-15 16:03:34
Ah, I see.
Vadi2012-09-19 05:47:47
Rhovanoin:

It repeatedly attempts stand or springup while impaled in sap.


I think the unfortunate problem here is that it didn't realize it was impaled - it's already configured to writhe out first before getting up. I'll see about fixing this case that's unique to sap where it didn't catch the impale.