You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Raw text, after Battlemod (simplified mode, default template): [��Thillloab��] � Phlegm�� � Expulsion�� �¨ ��Thillloab��
For this example, the trigger will not fire, because it is matching on the raw input which includes the control bytes.
A workaround would be to place wildcards between each word, which is not ideal, and can lead to false positives: <trigger match="*Phlegm*Expulsion*" sound="..." />
This needs to be resolved by stripping all special codes from the input prior to making a match.
I wrote a lua version of chatmon to address this issue. This new version (should be) backwards compatible with the plugin xml configuration for anyone interested. This has been decently tested and works with Battlemod.
Additionally, I have expanded the functionality to include basic spam filtering, and added commands to configure things without needing to change the xml itself.
@Xabis This is solely at your discretion, and yours alone :) If you wanna submit the addon to the repo just submit a PR and we will review it. We generally approve of people submitting addons to our repository, so feel free to do it.
It seems that Chatmon does not strip color codes prior to making a match.
When using Battlemod, it will rewrite chat lines to include a lot of color coding around targets and ability names,
Example:
<trigger match="*Phlegm Expulsion*" sound="..." />
Raw text, after Battlemod (simplified mode, default template):
[��Thillloab��] � Phlegm�� � Expulsion�� �¨ ��Thillloab��
For this example, the trigger will not fire, because it is matching on the raw input which includes the control bytes.
A workaround would be to place wildcards between each word, which is not ideal, and can lead to false positives:
<trigger match="*Phlegm*Expulsion*" sound="..." />
This needs to be resolved by stripping all special codes from the input prior to making a match.
Related: Windower/Lua#2244
The text was updated successfully, but these errors were encountered: