Apologies for the dumb question (I'm a new convert from Zmud and trying to recreate my triggers and such from there).
How do I increment a certain variable anytime a particular pattern matches?
I've read http://www.gammon.com.au/forum/?id=4904 but I'm not too clear on what requiring does -- or even where to do it. Taking the explanations and snippets and turning it into "Click here, type things there, etc" was beyond me. (Sorry, I'm a total rookie when it comes to lua, or any other type of scripting.)
My example should be simpler than that, actually, since I only want to increment by 1 each time. For example, to track arena deaths, I just want a trigger to match on "*You are DEAD!" and have that set @deaths to @deaths + 1.
I'd also like an alias to reset it to 0 (not nil), so I can reset my stats without logging. So "ArenaReset" should set @deaths to 0.
Are these doable without scripting?
Thanks in advance!
How do I increment a certain variable anytime a particular pattern matches?
I've read http://www.gammon.com.au/forum/?id=4904 but I'm not too clear on what requiring does -- or even where to do it. Taking the explanations and snippets and turning it into "Click here, type things there, etc" was beyond me. (Sorry, I'm a total rookie when it comes to lua, or any other type of scripting.)
My example should be simpler than that, actually, since I only want to increment by 1 each time. For example, to track arena deaths, I just want a trigger to match on "*You are DEAD!" and have that set @deaths to @deaths + 1.
I'd also like an alias to reset it to 0 (not nil), so I can reset my stats without logging. So "ArenaReset" should set @deaths to 0.
Are these doable without scripting?
Thanks in advance!