I'm not really looking for anybody to write this bit of code for me. Rather I am interested in knowing what principles you coding wizards would use to accomplish stuff, so I can learn to do future projects myself.
The goal: I would like to make a toggle that disables all standard mmf curing, replacing all cures with one simple command, "cure me". The idea is so that when bashing I don't need to use any curatives in lieu of Healing instead, but I can toggle it back for combat situations where the more sophisticated standard curing is obviously more appropriate.
What would you do to accomplish this? Especially where would you look through all the lines of code in the system, to make sure any new such toggle doesn't explode the whole system? Or any other efforts you might make to streamline, make it efficient, or whatever other priority wizards have when doing this stuff.
Mayor Steingrim, the Grand Schema says to you, "Well, as I recall you kinda leave a mark whereever you go."
0
Comments
Estarra the Eternal says, "Give Shevat the floor please."
If you're on fire, for example, m&m will automatically apply ice. I'd like to tweak it so instead of "apply ice" it always sends "cure me", regardless of the actual cure. And also be able to toggle between the two behaviors.
It may be easier to just build a second system alongside mm and switch between them yourself.
So just pause mm and switch on your own system for bashing?
MMCONFIG USEHEALING NONE/PARTIAL/FULL, but even at full this module has never really given the kind of behaviour I'm looking for, which is not using other cures at all. I think it only modifies cleanse/succor?
You could add an item in all the prios that just does cure me. Kinda how the slow curing list has different actions in the list from eat dust/sip slush/etc. Then you can just import export prios with the cure me thing at the top and bottom of the list to switch around. It'd be a bit crude but that may be an easy way to do it?
- Make a variable, call it like... BashCuring.
- Make an alias that does mmignore <aff> for every aff (as well as the opposite, to not ignore them all), as well as toggle BashCuring from true/false
- Make a trigger for the 'You are afflicted with <x>.' line or whatever it is. On that line, do if BashCuring then mm.doadd("cure me") end
- OR make a trigger for 'You have slain <x>.' to do:
if #mm.affl > 0 and BashCuring thenmm.doadd("cure me")
end
Discord: Rey#1460
Point three I think is part of the issue not every bashing attack is on the affs message thing yet so it'll miss a ton and you'd need to go through and get all their lines which sounds like a pain.
Discord: Rey#1460
Just a bit confused?
edit - sometimes.
What I did when the old healing was still a thing and m&m didn't cure as fast as I wanted it for bashing etc, I did the following:
1. have an alias to toggle afflictions handled by the 'healing system' as reylari suggested.
2. have a kind of on balance loop thing that runs your healing thing every time you get balance, mm.addbalanceful might do
3. on getting balance do the following, either succor yourself to get your afflictions OR use mm affs list
4. send cure me blah ( or even cure me may do )
5. if you keep a neat table which tracks the afflictions you've taught your system to handle, making the ignore/unignore on mm dynamic should be a breeze and make the system easily expandable.
Probably an hour of coding and testing should bring you something like this.