- Joined
- May 15, 2012
- Messages
- 14,682
- Reaction score
- 3,003
- First Language
- Tagalog
- Primarily Uses
- RMVXA
so I have a code which looks like this
if (item.meta.max) {
return eval(item.meta.max);
};
With item.meta.max being "$gameVariables(1)"
but when the code is called, it returns an error that says object is not a function. the nodekit console points to item.meta.max line during this error
I already made sure that item.meta.max returns "$gameVariables(1)" via a show text event so somehow eval doesn't seem to want to evaluate it..
Anyone has an idea of the problem here?
if (item.meta.max) {
return eval(item.meta.max);
};
With item.meta.max being "$gameVariables(1)"
but when the code is called, it returns an error that says object is not a function. the nodekit console points to item.meta.max line during this error
I already made sure that item.meta.max returns "$gameVariables(1)" via a show text event so somehow eval doesn't seem to want to evaluate it..
Anyone has an idea of the problem here?
