I'm not sure I understand what you mean. If you want to make it react to different things differently, I'd do it as follows:
Code:
require('sets')
stun_commands = S{
'The Forest Hare readies Foot Kick',
'The Carrion Worm readies Full-Force Blow',
'The Forest Funguar readies Dark Spore',
}
reply_commands = S{
'<Xxkloudseferotxx> Hey LS',
'<Tennislav> What\'s up',
}
windower.register_event('incoming text', functions(text)
if stun_commands:contains(text) then
windower.send_command('stun')
elseif reply_commands:contains(text) then
windower.send_command('input /l Hey guy')
end
end)
That's the entire code, you just put that in an addon called OnEvent.lua (in Windower/addons/OnEvent/) and load with //lua load onevent (//lua unload onevent to unload again). While it's loaded it will react to text as you specify the commands in there. I think it's pretty straightforward how to expand those commands by more things.