I'm wondering if there is any way around this problem, other than changing my coding structure:
This is just sample code of what I'm trying to do. I'm trying to make an alias that creates a trigger. The unexpected problem I've run into is that the %0 inside the trigger returns the match for the alias (in this case "test", not the internal trigger (in this case whatever line the mud sends). This code is obviously useless, but it demonstrates my problem - how can I get %0 int the internal addxml.trigger to refer to the matched text of the trigger and not the alias? I apologize if this has been addressed elsewhere.
addxml.alias {
name = 'my_alias',
match = "test",
enabled = true,
ignore_case = true,
regexp = false,
send_to = 12,
send = [=[
addxml.trigger {
match = ".*",
name = "my_trigger",
enabled = true,
regexp = true,
send_to = 12,
send = [[
Note("%0")
]]
}
]=]
}
This is just sample code of what I'm trying to do. I'm trying to make an alias that creates a trigger. The unexpected problem I've run into is that the %0 inside the trigger returns the match for the alias (in this case "test", not the internal trigger (in this case whatever line the mud sends). This code is obviously useless, but it demonstrates my problem - how can I get %0 int the internal addxml.trigger to refer to the matched text of the trigger and not the alias? I apologize if this has been addressed elsewhere.
addxml.alias {
name = 'my_alias',
match = "test",
enabled = true,
ignore_case = true,
regexp = false,
send_to = 12,
send = [=[
addxml.trigger {
match = ".*",
name = "my_trigger",
enabled = true,
regexp = true,
send_to = 12,
send = [[
Note("%0")
]]
}
]=]
}