Help with elseif in trigger
Posted: Wed Jun 01, 2016 12:17 am
Hi I am loving Mudlet a lot but will even more once I get more familiar with things I know. I come from a zMUD and cMUD background, but also have a bit of Lua experience.
The MUD I play on has a lot of parties. The party formation lines up in a sort of 3x3 grid. I mainly play a healer and am trying to set up a visual representation of this grid to make healing for parties easier. I have managed to set up a 3x3 grid of geyser gauges that is not perfect but a good starting point.
I can do something like:
The trigger is designed to fire of of the following line.
Is there a kind soul out there that might shed some light onto where I am going wrong?
Thanks,
Mike
The MUD I play on has a lot of parties. The party formation lines up in a sort of 3x3 grid. I mainly play a healer and am trying to set up a visual representation of this grid to make healing for parties easier. I have managed to set up a 3x3 grid of geyser gauges that is not perfect but a good starting point.
I can do something like:
From the command line and see that the gauge works, but I'm having trouble doing this from within the script of the trigger that I have set up to do so.
The trigger is designed to fire of of the following line.
Trigger pattern is:
Trigger script is:
Ok so I know the trigger works because the trigger fired echo is printed to the screen. I can also echo out the matches[] to see that they are capturing the correct information. Where I am stumped at right now is the if elseif statement test echos won't fire no matter what. I've tried all kinds of things and nothing seems to work. I can't get the gauges to be populated at all.
Is there a kind soul out there that might shed some light onto where I am going wrong?
Thanks,
Mike