The line that sets off the Trigger is:
Code: Select all
^H:(\d)\d% M:
--It's my character's health. It captures the first digit in a two-digit health reading. So if my health is H:67%, it will capture the 6. I've it set as the "perl regex" type, and that works totally fine.
Then, in the big script response-box below it, I have typed :
Code: Select all
if matches[2] < 9 and analepticbal == 0 then
send("stick analeptic")
else echo("You're Good!")
end
-- Mudlet seems to be fine with the Trigger as it does not give me any errors about it. The trigger just... does not seem to actually do anything when I'm watching my MUD in action.
(Help!)