- Joined
- Sep 28, 2017
- Messages
- 1,628
- Reaction score
- 1,115
- First Language
- English
- Primarily Uses
- RMMV
1. The debug console is popping up because there is an error in the formula, this isn't a normal part of RPG Maker. This is something that Yanfly added for extra error handling.
2. The error says "CUSTOM STATE 59 CODE ERROR". Can you please show a screenshot of state #59? Especially need to see the notetag where the error formula is defined.
3. The JS error is "undefined is not a function". This means that something in that code is trying to execute (a function) for something that is not actually defined.
These are the four options where the error could be coming from, because these are the four things that are trying to be called as functions.
If you don't know JS, where did you get this code from?
2. The error says "CUSTOM STATE 59 CODE ERROR". Can you please show a screenshot of state #59? Especially need to see the notetag where the error formula is defined.
3. The JS error is "undefined is not a function". This means that something in that code is trying to execute (a function) for something that is not actually defined.
These are the four options where the error could be coming from, because these are the four things that are trying to be called as functions.
- this.isHpEffect
- this.getItemElements
- element.contains
- target.addBuff
If you don't know JS, where did you get this code from?



