m&m system & questions thread

135678

Comments

  • HalseHalse Member Posts: 8 Novice
    I am trying to create an AI offense was wondering what is used in the system to track enemy afflictions or if I need to code that? Like an example... mm.enemyaffs.paralized or whatever.

    Thanks
  • EnyalidaEnyalida Nasty Woman Member Posts: 4,384 Transcendent
    I don't think anything is used to track enemy afflictions, because it's pretty darn hard to track afflictions like that in Lusternia. Many cure methods give no third person message, and those that do still cure random afflictions from their list (with some exceptions).
  • IleeinIleein Member Posts: 630 Mythical
    edited March 2014
    Ok, so for some reason my QQ trigger just isn't working; I've thrown all sorts of debug echos into it and what I've determined is the m&m QQ trigger simply isn't firing. I went into the Errors panel and found this: 

    [ERROR:] object:<QQ> function:<Trigger1138>
             <m&m:13522: attempt to index global 'ndb' (a nil value)>

    So how can I fix this? Everything else seems to work okay so far.

    Jadice, the Frost Queen says to you, "Constant vigilance."
  • ShaddusShaddus , the Leper Messiah Outside your window.Member Posts: 7,751 Transcendent
    Do you have GMCP enabled?
    Bob Junior says, "I had a party hook onnce. Lost it iNsiDee of soMe buxsm dracnari maiden, I thiik."
  • RialormRialorm Member Posts: 1,055 Transcendent
    Did you install every xml, not just the one that says import me? ndb is the samespace for NameDB, the name highlighter module that comes bundled with m&m. It seems that this is somehow nil, which makes me think you might not have it at all. Which does surprise me because it is like the best thing ever and if that is the case you are seriously missing out.
    image
    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.
  • IleeinIleein Member Posts: 630 Mythical
    Huh, I'm fairly certain I did install everything! I've been experiencing a lot of problems, though, so I've been uninstalling and reinstalling things, which may have created more problems. What I'm doing now is just completely uninstalling Mudlet and rebuilding from the ground up. We'll see if that helps.
    Jadice, the Frost Queen says to you, "Constant vigilance."
  • VadiVadi Member Posts: 256 Gifted
    Wait wait, you install the zip, not the xmls invidiually.
  • HalseHalse Member Posts: 8 Novice
    So just did an update that came through and now it won't install at all...
  • RialormRialorm Member Posts: 1,055 Transcendent
    Halse said:
    So just did an update that came through and now it won't install at all...
    I had that for the last update. I uninstalled everything from the package manager and then manually downloaded the latest version and installed it. That resolved it quite nicely.
    image
    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.
  • HalseHalse Member Posts: 8 Novice
    How do you manually download?
  • RialormRialorm Member Posts: 1,055 Transcendent
    When you bought the system, you should have received an email with the download link. If you no longer have that, I'd contact Vadi and he can tell you what it is.
    image
    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.
  • HalseHalse Member Posts: 8 Novice
    Thanks @Rialorm‌
  • HalseHalse Member Posts: 8 Novice
    Still won't load...hmm
  • TarkentonTarkenton Traitor Bear Member Posts: 2,555 Transcendent
    You loaded the entire package via zip file, yeah?  Not unzipping it or anything?
    image
  • HalseHalse Member Posts: 8 Novice
    Yep
  • HalseHalse Member Posts: 8 Novice
    When I go to toolbox > package manager > install > select the file...all it does is say unpackaging and then stops...
  • TarkentonTarkenton Traitor Bear Member Posts: 2,555 Transcendent
    edited March 2014
    Odd...try it with a new profile?  If that doesn't work, I'd back up your current profile(s), uninstall and reinstall mudlet, then try again.
    image
  • HalseHalse Member Posts: 8 Novice
    Works on new profile
  • IleeinIleein Member Posts: 630 Mythical
    Out of curiosity, I recently learned Stratagem in Combat, and turned on the option for m&m to use them. I haven't immediately noticed any changes; how does m&m use stratagems,  if the option is enabled?
    Jadice, the Frost Queen says to you, "Constant vigilance."
  • SiamSiam Whispered Voice Member Posts: 2,622 Transcendent
    Hi! I'm trying to add my target before the custom prompt. Here's what I currently have:

    I added this to my targetting alias:
    -- define a custom tag that displays the value of a variable, 'target'
    mm.adddefinition("@target", "target")
    so, my alias currently has this:

    target = string.title(matches[2])

    cecho("\n\n\n<yellow:black> TARGET: " .. target.. " \n\n\n")

    resettraxxer()

    mm.adddefinition("@target", "target")


    Here's my current prompt: 

    [@target] ^r@health|^1@%health%, ^c@mana|^2@%mana%, ^g@ego|^3@%ego% 

    But it currently returns:  

     [nil] 4810|100%, 6300|100%, 7200|109%   

    even after declaring a target. 

    I'm not terribly bright when it comes to coding, so help, please! :)



    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 


  • RialormRialorm Member Posts: 1,055 Transcendent
    Line doesn't belong in your target alias, it should be in a trigger that fires on login or in a script that runs when the client starts. It only needs to be set once, but it does need to be set each time the client restarts as they are not saved like actual configuration options. 
    image
    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.
  • SiamSiam Whispered Voice Member Posts: 2,622 Transcendent
    Thanks!
    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 


  • VadiVadi Member Posts: 256 Gifted
    Ileein said:
    Out of curiosity, I recently learned Stratagem in Combat, and turned on the option for m&m to use them. I haven't immediately noticed any changes; how does m&m use stratagems,  if the option is enabled?
    Just for the do system - doesn't use it much otherwise, haven't thought of a good way to make it all work, 
  • GregoriGregori Member Posts: 2 Inept
    Can someone point out what I am doing wrong here? It just tries to discern regardless.


    function mycrap.discern(whom)

    if not mm.bals.balance or mm.bals.equilibrium then mm.dofirst(send("discern ".. whom)) return end

    send("discern ".. whom)


    end

  • LeradLerad Member Posts: 2,405 Transcendent
    I think you forgot an else in there. Not 100% sure, but slot it before your second send and give it another try.

  • UshaaraUshaara Schrödinger's Traitor Member Posts: 1,264 Transcendent
    Think you're missing another 'not'. So:

    if not mm.bals.balance or not mm.bals.equilibrium then..

  • BelibiBelibi Member Posts: 216 Master
    edited April 2014
    @gregori

    if not mm.bals.balance or mm.bals.equilibrium 
    should be
    if not ( mm.bals.balance and mm.bals.equilibrium )
    or 
    if not mm.bals.balance or not mm.bals.equilibrium 
    image
  • IleeinIleein Member Posts: 630 Mythical
    So, one thing I wouldn't mind being able to see is an echo for essence changes, like the existing ones for health/mana/ego changes. Is that something I could add relatively easily on top of the existing framework?
    Jadice, the Frost Queen says to you, "Constant vigilance."
  • ZouviqilZouviqil Queen of Uberjerkiness Member Posts: 975 Transcendent
    gmcp.Char.Vitals.essence is a variable that will give you your current essence as a string. You can set a variable to this, as a number. So like, myessence = tonumber(gmcp.Char.Vitals.essence)

    Then what you do is, you keep track of what would give you essence. Influencing completing, killing something. Put them all under the same trigger. When it occurs... you have to call it as an echo somehow to be on the same line as the prompt using the existing framework that I don't know of. But the number you want would be gotten like so:

    cecho(tonumber(gmcp.Char.Vitals.essence) - myessence)
    myessence = tonumber(gmcp.Char.Vitals.essence)

    Far from perfect advice, but I hope it helps, @Ileein
  • NelrasNelras Member Posts: 60 Adept
    Recently got m&m and am having problems putting my defenses up. I have used mmshow defup to set up my defenses and this happens:

    mmdefs basic
    (abjure deathsight)
    You touch the cosmos and allow your eyes to pierce through the veil of death.
    5880h, 6400m, 7200e, 10p, 21900en, 24885w Blrx-
    (abjure timeslip)
    You must regain equilibrium first.
    5880h, 6400m, 7200e, 10p, 21900en, 24885w Blrx-

    (abjure timeslip)
    You must regain equilibrium first.
    5880h, 6400m, 7200e, 10p, 21900en, 24885w Blrx-

    (abjure timeslip)
    You must regain equilibrium first.
    5880h, 6400m, 7200e, 10p, 21900en, 24885w Blrx-

    (abjure timeslip)
    You have recovered equilibrium.
    5880h, 6480m, 7200e, 10p, 21900en, 24885w Belrx-

    Touching upon cosmic probabilities, you weave a net of safety around yourself.
    5880h, 6130m, 7200e, 10p, 21900en, 24838w Blrx-
    (abjure nimbus)
    You must regain equilibrium first.
    5880h, 6130m, 7200e, 10p, 21900en, 24838w Blrx-

    (abjure nimbus)
    You must regain equilibrium first.
    5880h, 6130m, 7200e, 10p, 21900en, 24838w Blrx-

    (abjure nimbus)
    You must regain equilibrium first.
    5880h, 6130m, 7200e, 10p, 21900en, 24844w Blrx-

    (abjure nimbus)
    You must regain equilibrium first.
    5880h, 6130m, 7200e, 10p, 21900en, 24844w Blrx-

    (abjure nimbus)
    You must regain equilibrium first.
    5880h, 6130m, 7200e, 10p, 21900en, 24844w Blrx-

    (abjure nimbus)
    You must regain equilibrium first.
    5880h, 6130m, 7200e, 10p, 21900en, 24844w Blrx-

    You have recovered equilibrium.
    5880h, 6130m, 7200e, 10p, 21900en, 24844w Belrx-

    (abjure nimbus)
    Drawing cosmic dust into a sphere, you slowly let it expand into a nimbus of glittering motes.
    5880h, 6050m, 7200e, 10p, 21900en, 24829w Blrx-

    (m&m): Ready for combat! (basic defences mode, took 7.0s)

    Just set to a few of the cosmic defences there to provide an example.
    This becomes a real problem if I add kafe to the defences to be set up.
    I have stripped all of my defs as well (except nimbus, which won't go away) so that having them up already does not interfere.
    Before starting this, I have also ensured that I only have 10 kafe in my rift.

    mmdefs basic
    (eat kafe|outr kafe|abjure deathsight)
    What do you want to eat?
    5880h, 6480m, 7200e, 10p, 21900en, 24900w Belrx-

    You remove 1 kafe, bringing the total in the rift to 9.
    5880h, 6480m, 7200e, 10p, 21900en, 24900w Belrx-

    You touch the cosmos and allow your eyes to pierce through the veil of death.
    5880h, 6400m, 7200e, 10p, 21900en, 24885w Blrx-
    (abjure timeslip)
    You must regain equilibrium first.
    5880h, 6400m, 7200e, 10p, 21900en, 24885w Blrx-

    (eat kafe|outr kafe)
    You eat a kafe bean.
    An instant feeling of excitement and edginess overcomes you.
    5880h, 6400m, 7200e, 10p, 21900en, 24885w Blrxk-

    You remove 1 kafe, bringing the total in the rift to 8.
    5880h, 6400m, 7200e, 10p, 21900en, 24885w Blrxk-

    (abjure timeslip)
    You must regain equilibrium first.
    5880h, 6400m, 7200e, 10p, 21900en, 24885w Blrxk-

    (abjure timeslip)
    You must regain equilibrium first.
    5880h, 6400m, 7200e, 10p, 21900en, 24891w Blrxk-

    You have recovered equilibrium.
    5880h, 6400m, 7200e, 10p, 21900en, 24891w Belrxk-

    (abjure timeslip)
    You may eat or smoke another herb.
    5880h, 6480m, 7200e, 10p, 21900en, 24891w Belrxk-
    (eat kafe|outr kafe)
    Touching upon cosmic probabilities, you weave a net of safety around yourself.
    5880h, 6130m, 7200e, 10p, 21900en, 24844w Blrxk-

    You eat a kafe bean.
    5880h, 6130m, 7200e, 10p, 21900en, 24844w Blrxk-

    (m&m): Ready for combat! (basic defences mode, took 3.2s)


    You remove 1 kafe, bringing the total in the rift to 7.
    5880h, 6130m, 7200e, 10p, 21900en, 24844w Blrxk-

    You may eat or smoke another herb.
    5880h, 6130m, 7200e, 10p, 21900en, 24844w Blrxk-

    You have recovered equilibrium.
    5880h, 6130m, 7200e, 10p, 21900en, 24850w Belrxk-

    If I try this with more defs, it continues eating kafe until they are all finished - it also continues to try it if I run out of kafe while it is still doing the other defs.

    Does anyone here have any idea what is going on here/how to fix it?
    I do have GMCP enabled and have tried reinstalling both m&m and mudlet already.
Sign In or Register to comment.