TP egoscan trigger in Mudlet

Hooray!  Got the TK working, now need to get the TP one working.  I've tried everything, but can't figure out what to do.  Spending the evening reading through the mudlet wiki isn't helping, either.

Trying to trigger: The max/current ego strength of Marcella: 4737/4308


To mindburst when they're at 50% or lower, otherwise mindblast.

:(

Best Answer

Answers

  • edited March 2013

    Ciaran said:
    Off the top of my head.. try this (note: haven't tested it)
    ^The max/current ego strength of (\w+)\: (\d+)/(\d+)$
    Doesn't the '/' need an escape? So it would be.

    ^The max\/current ego strength of (\w+)\: (\d+)\/(\d+)$

    Edit: After testing, at least for me neither Ciaran's nor mine work.

         "He was well fed, and on his way to being slightly intoxicated--which contributed to his sense of wellbeing. And, most important, he was among friends. There can't be much more to life than this, he thought."  -Pug's thoughts on his first Ale (via Raymond Feist)


    Visit my personal authorial website. (coming back up soon, with my first publications)
    Coding Resources: Mechanic's Corner | Code Academy | StackOverflow
  • edited March 2013
    edit: ack egoscan... not discern

    Anyway, my trigger should match.
    Take great care of yourselves and each other.
  • It didn't on mine, but I'm using Mushclient and maybe there are translation errors on regex between the two?

         "He was well fed, and on his way to being slightly intoxicated--which contributed to his sense of wellbeing. And, most important, he was among friends. There can't be much more to life than this, he thought."  -Pug's thoughts on his first Ale (via Raymond Feist)


    Visit my personal authorial website. (coming back up soon, with my first publications)
    Coding Resources: Mechanic's Corner | Code Academy | StackOverflow
  • Ciaran said:
    Off the top of my head.. try this (note: haven't tested it)
    ^The max/current ego strength of (\w+)\: (\d+)/(\d+)$

    local name = matches[2]
    local ego = tonumber(matches[4])
    local maxego = tonumber(matches[3])
    local percent = math.floor(ego / maxego * 100)

    if percent < 50 and name == target then
    send("psi super mindburst " .. target)
    end
    Works perfectly. Thanks!
Sign In or Register to comment.