Trigger filtering's pretty easy, I've already got it capturing my exits and later I'll make a purdy compass to go with.
However, for the sake of learning Lua, I'd like to know if there's a way I can do it without Mudlet's unique trigger-filter functionality.
In zMud, we would capture exits like this:
Code: Select all
Trigger: ^You see {a single exit|exits} leading (*).$
#var Exits {%1}
#var Exits {%replace( @Exits, ", ", "|")}
#var Exits {%replace( @Exits, "and ", "|")
Is there any way to do something similar to the above in Lua, or perhaps a clean, alternative method that doesn't require trigger filtering? (which I love, by the way, don't get me wrong)