I just downloaded Mudlet and started to check it out. So far it seems the project has lots of potential.
Anyway, to my question, I probably missed something trivial. The first thing I did was of course to try out the scripting engine, what better way to test it out than attempting to grab my prompt which looks like this
Thus I set out and wrote a pattern as follows
The above trigger fires and grabs the right numbers with matches[]. However, it only fires if the prompt is not shown alone. It's kind of hard to explain, if I just type <enter> in the mud, the prompt shows up, but the trigger does not fire. It only fires if the prompt shows up due to some other messages, for example, mud messages, i.e., the following output from the mud fires the trigger:
Code: Select all
555 hps| 222 sp| 100 mp > Autosave.
whereas
does not.