I am in the middle of reimplementing a battle system for the 4th time and I am thinking about using some eval() magic.
I know this is a big no-no when it comes to developing for the web, but since the rpgmaker itselft uses tons of eval in the objects js (and the plugins aren't encrypted anyway so anyone could just put in any malicious code anyway), it doesn't seem to be a problem.
So... any objections?
Background:
I know this is a big no-no when it comes to developing for the web, but since the rpgmaker itselft uses tons of eval in the objects js (and the plugins aren't encrypted anyway so anyone could just put in any malicious code anyway), it doesn't seem to be a problem.
So... any objections?
Background:
Many of the skills use have multiple conditions and side effects. I could use a lot of if/else/submethods/recursion and other ways to implement it, but it seems to be easier to use eval for some of the conditions, damage, status effect duration, and other computations. (I'd read the strings in from a json and use them in a method/scope that has variables for str, def etc. to manipulate)