zarqon
Well-known member
There are starting to be quite a lot of places where I need to access the remaining turns (or presence) of an effect in a formula. Adding a text function (similar to the existing loc(), pref(), etc.) for the amount of turns you have of an effect would allow me to significantly reduce the number of variables I need to pass in to ZLib's eval() function -- which replaces string keys in the formula with float values before calling modifier_eval() on it. This would make my script both smaller and more efficient.
It might be easier to require the number of the effect as the function's parameter, rather than the actual name of the effect, since the effect name might contain parentheses. Or, it could allow both if doing matching on the effect name wouldn't cause trouble, but I suspect simple integers would be easier and safer.
This enhancement could only become more useful as time goes by!
It might be easier to require the number of the effect as the function's parameter, rather than the actual name of the effect, since the effect name might contain parentheses. Or, it could allow both if doing matching on the effect name wouldn't cause trouble, but I suspect simple integers would be easier and safer.
This enhancement could only become more useful as time goes by!