Hey,
for a skill that cures all negative states, I want to write a pice of my own code inside Yanflys action sequence. It looks like this:
the ".meta.good" is already coded elsewhere and works perfectly fine. It flags states as good and not affected by luk's chance of not getting it.
The two errors I keep getting are: i is undefined or unexpected token {.
However, $dataStates is an array of which you can check the array length (at least I think you can), and I literally checked these brackets 20 times and they are correct.
If you could help me with that skill and that specific line of code, I would be really thankful!
for a skill that cures all negative states, I want to write a pice of my own code inside Yanflys action sequence. It looks like this:
the ".meta.good" is already coded elsewhere and works perfectly fine. It flags states as good and not affected by luk's chance of not getting it.
The two errors I keep getting are: i is undefined or unexpected token {.
However, $dataStates is an array of which you can check the array length (at least I think you can), and I literally checked these brackets 20 times and they are correct.
If you could help me with that skill and that specific line of code, I would be really thankful!