Hi everyone! I'm working on customizing Yanfly's TP manager and I've entered the following formula into a box (init_tp, but irrelevant):
40+level+(agi*0.2)+((def+res)*0.4)
but when I enter any part of the game that has anything to do with initial TP, the following error is thrown:
YEA TP Manager:589:in `eval': (eval):1: syntax error, unexpected ')', expecting
';' or '\n'
40+level+(agi*0.2)+((def+res)*0.4)
^ (SyntaxError)
from YEA TP Manager:589:in `maxtp'
The "^" points at the asterisk before the 0.4 in the console error report. I have no idea what's causing this, as an earlier formula worked fine. The number of "(" is the same as ")" and I don't see any obvious syntax errors. Can anyone with more experience in Ruby tell me what's wrong? Thanks in advance.
40+level+(agi*0.2)+((def+res)*0.4)
but when I enter any part of the game that has anything to do with initial TP, the following error is thrown:
YEA TP Manager:589:in `eval': (eval):1: syntax error, unexpected ')', expecting
';' or '\n'
40+level+(agi*0.2)+((def+res)*0.4)
^ (SyntaxError)
from YEA TP Manager:589:in `maxtp'
The "^" points at the asterisk before the 0.4 in the console error report. I have no idea what's causing this, as an earlier formula worked fine. The number of "(" is the same as ")" and I don't see any obvious syntax errors. Can anyone with more experience in Ruby tell me what's wrong? Thanks in advance.