Trying to make a seperate menu for collectibles and i'm stuck

Hi everyone. So i'm trying to make a collectible menu in javascript for my game. I have it so far displaying the menu command in the main menu, the custom menu itself and the items that are part of the custom category. When testing to see if pressing the Ok button on the item would trigger an action, I keep getting a type error for the item. It crashes on my Scene_Collectible.prototype.onPageOk function and that's where i'm completely lost on. I'll post the code I have so far to see if anyone can help.


EDIT: So I modify the script a bit to remove most of the parameters except one command slot and one position slot for testing and I added another photo of where the crash is occuring as well. I at a lost at this point of what to do.


Untitled.png

View attachment Collectible Menu.js

Area of concern.png
Also I don't know if i'm in the right area to ask this question.
No you're not, I'll move it over to Plugin Support.


Also, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-make-a-seperate-menu-for-collectibles-and-im-stuck.69177/