The plugin below terminates prompts with newlines (taking into account some special cases) and appends coloured stat change hints to prompts.
It's designed for Achaea, but can be easily ported to almost any other game. All you need to do to make it work with your prompt is change this plugin's only trigger. Inside that trigger, you would need to capture every stat number that you want to keep track of into a named wildcard. The wildcard's name will become the stat's label in its respective hint.
For example, the current trigger is:
Here we have wildcards labeled "h", "m", "e", "w", and "str". The latter ("str") is not tracked or displayed, since it contains a non-numeric value, but its value is stored into an MXP entity for reference from outside the plugin (just as values of the first four wildcards).
Wildcards containing numeric values are tracked, and whenever there is a change in any of them, they appear after the prompt as "[+123h]", "[-23m]", etc.
The above trigger also does some conditional matching, from which you can see that a varying number of stats can be kept track of.
So, to summarize:
Additional details are available in plugin's description.
It's designed for Achaea, but can be easily ported to almost any other game. All you need to do to make it work with your prompt is change this plugin's only trigger. Inside that trigger, you would need to capture every stat number that you want to keep track of into a named wildcard. The wildcard's name will become the stat's label in its respective hint.
For example, the current trigger is:
^(?P<h>\d+)h, (?P<m>\d+)m(?:, (?P<e>\d+)e|)(?:, (?P<w>\d+)w|) (?P<str>c?e?x?k?d?b?)-$
Here we have wildcards labeled "h", "m", "e", "w", and "str". The latter ("str") is not tracked or displayed, since it contains a non-numeric value, but its value is stored into an MXP entity for reference from outside the plugin (just as values of the first four wildcards).
Wildcards containing numeric values are tracked, and whenever there is a change in any of them, they appear after the prompt as "[+123h]", "[-23m]", etc.
The above trigger also does some conditional matching, from which you can see that a varying number of stats can be kept track of.
So, to summarize:
- you can track and display any number of prompt stats, by capturing their numeric values into named wildcards;
- you can expose the values above, as well as any other values present in the prompt, as MXP entities accessible outside the plugin;
- to save non-numeric values in entities you also capture them into named wildcards.
Additional details are available in plugin's description.