1. ANSI Colours.
How i can get to lua script full coded ANSI line from mud, when trigger fires? For example when trigger fires on line "Almo tells you: Hey", where "Almo tells you:" - has white color, and "Hey" - has red color. And calls lua function:
function test_trigger( name, line, wildcards, styles )
...
AnsiNote( line );
...
end;
test_trigger function notes single color line. I need to get full coded ANSI line from mud. So, i need call AnsiNote( line ) and get same colors at the output.
2. Multi-Line Triggers from lua.
How i can create multi-line trigger from lua?
3. How i can replace text in mud output?
Thanks.
How i can get to lua script full coded ANSI line from mud, when trigger fires? For example when trigger fires on line "Almo tells you: Hey", where "Almo tells you:" - has white color, and "Hey" - has red color. And calls lua function:
function test_trigger( name, line, wildcards, styles )
...
AnsiNote( line );
...
end;
test_trigger function notes single color line. I need to get full coded ANSI line from mud. So, i need call AnsiNote( line ) and get same colors at the output.
2. Multi-Line Triggers from lua.
How i can create multi-line trigger from lua?
3. How i can replace text in mud output?
Thanks.