Page 1 of 1

Line spacers and fire length

Posted: Fri Aug 17, 2012 4:15 am
by Kyoshi
I'm a bit confused about the difference between the two. Aren't line spacers and fire length the same thing? If not, could you please explain how they're different, and maybe a case in which one option would be better than another? It would be extremely helpful for me. thank you :D

Re: Line spacers and fire length

Posted: Fri Aug 17, 2012 4:26 am
by Vadi
They are different things and neither is better, it's apples and oranges :)

Line spacers are used in multi-line triggers to force the trigger to skip line(s) before matching the next pattern in your multi-line trigger.

Fire length opens what is called a "trigger chain" in Mudlet - it will allow triggers nested inside the parent trigger to be allowed to be matched for the next x lines.

Hope that helps! Let me know if you want a more through explanation.

Re: Line spacers and fire length

Posted: Fri Aug 17, 2012 4:41 am
by Kyoshi
Alright I see now. I have another question about line spacers though.

So let's say I get feedback from a MUD that says:

You apply a mending salve over your skin.
Your bones in your left leg magically knit back together.

If I wanted to capture that through a filter trigger, I would make one like:

You apply a mending salve over your skin. (exact match)
1 (line spacer)

And then inside I would have the other trigger. It would match up right?

And if I had the same thing, but there was an extra line, like this:

You apply a mending salve over your skin.

The bones in your left leg magically knit back together.

The pattern would be:

You apply a mending salve over your skin. (exact match)
2 (line spacer)


Is this right? Thank you vadi for your quick reply :)

Re: Line spacers and fire length

Posted: Fri Aug 17, 2012 5:17 am
by Vadi
That's one way to do it. Remember to enable multiline and set the line delta to the amount of lines the multiline trigger should be trying to fulfill its matches for after the first pattern matches.