| Well, my main issue is that I want to keep the scripts separate in their own files. Basically, my entire system is based off of the main system.lua. You have prompt.lua, stats.lua, etc. And each of these has a settings file (with triggers and what not) such as prompt_settings.lua. A trigger in prompt_settings has reference to prompt:capture, which is defined in prompt.lua as prompt:capture(name, line, wildcards, styles). Normally, I would just set the trigger to send-to script, and put the function in the send text - this works. However, I can't find any way to get a hold of the styles of the match if I do it that way. I tend to reuse quite a few of my scripts and functions, so defining them in the triggers file results in a lot of redundant code, which I'd prefer to avoid. Anyone have any ideas as to how to get around this issue efficiently? |