How do coding?

So, I am trying to setup a trigger that influences whether I keep on draining mana with amissio or if I absolve when the person is below 50% mana. But, it's not properly working and I am absolving much later than I could be. Also, what could I setup to reset the variable "manakill" so I can switch targets?

^(\w+)'s mana stands at (\d+)/(\d+).$

if matches[2] == target then

if matches[3] / matches[4] < 0.5 then

manakill=true else manakill=false

end

end

So,what am I doing wrong?


Will you still love me when I am no longer young and fergalicious?

Best Answers

Answers

  • Thank you! But, now I have a new problem:

    send("contemplate " .. target)

    if manakill == true then send("hug " .. target)

    else

    send("chant amissio " .. target)

    end

    That's my amissio alias. How can I change it so the most recent result of my trigger is used and not the one before?

    Will you still love me when I am no longer young and fergalicious?
Sign In or Register to comment.