Line spacers and fire length

Post Reply
Kyoshi
Posts: 11
Joined: Sat Aug 11, 2012 5:38 pm

Line spacers and fire length

Post 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

User avatar
Vadi
Posts: 4901
Joined: Sat Mar 14, 2009 3:13 pm

Re: Line spacers and fire length

Post 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.

Kyoshi
Posts: 11
Joined: Sat Aug 11, 2012 5:38 pm

Re: Line spacers and fire length

Post 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 :)

User avatar
Vadi
Posts: 4901
Joined: Sat Mar 14, 2009 3:13 pm

Re: Line spacers and fire length

Post 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.

Post Reply