(Using default, so language is Lua)
This is such an elementary thing, I'm embarrassed to post it, but I've been looking through the documentation to no avail.
I have a trigger that pulls in a substring which I'm using to generate a hyperlink. I take that (%1) and add text to it to make the command which works. I'd also like to take the entire string and send it as the new string text. Nothing all that wacky.
My issue is:
The %1 expands before parsing so I only need to say to get the output I want, but this also means that the match can't include single quotes. (Also allows for code injection, come to think, but that's beside the point) When the MUD mixes things like that, the script gags and dies.
How do I pull in a matched string or substring to a variable that I can supply a function without it seeing it as literal text to parse?
This is such an elementary thing, I'm embarrassed to post it, but I've been looking through the documentation to no avail.
I have a trigger that pulls in a substring which I'm using to generate a hyperlink. I take that (%1) and add text to it to make the command which works. I'd also like to take the entire string and send it as the new string text. Nothing all that wacky.
My issue is:
The %1 expands before parsing so I only need to say
'say %1'How do I pull in a matched string or substring to a variable that I can supply a function without it seeing it as literal text to parse?