MZ Change "Skills" main menu text midgame

Hello guys. Thanks for helping out again.
Right now i need the skills text in main menu to change after a certain event.

Right now it's a mistery, with just a bunch of interrogation marks. (but it's still ckicable, i need also to somehow grey it out, so when you click nothing happens)

1708439910830.png


And then, after a switch or script, the command changes from the interrogations marks to another custom text, and also enabling the player to click and navigate the menu.

I'm using visustella main menu core, and the JS text in the refered menu command is as follows:

1708440062531.png


{"Symbol:str":"skill","Subcategory:str":"","Icon:num":"","TextStr:str":"?????","TextJS:func":"\"return TextManager.skill;\"","ShowJS:func":"\"return this.needsCommand(\\\"skill\\\");\"","EnableJS:func":"\"return this.areMainCommandsEnabled();\"","ExtJS:func":"\"return null;\"","CallHandlerJS:func":"\"SceneManager._scene.commandPersonal();\"","PersonalHandlerJS:func":"\"//SceneManager.push(Scene_Skill);\\nSceneManager._scene.openSubScene(Scene_Skill);\""}

Thanks guys. Appreciate all the help.
I figured out how to grey out the menu, but still need help changing the command name midgame.
BUMP.
Get rid of the string plugin parameter and put a conditional in the JS text.

Code:
return $gameSwitches.value(69) ? TextManager.skill : "????"
where 69 is the ID of a switch you turn on to activate the name.
Get rid of the string plugin parameter and put a conditional in the JS text.

Code:
return $gameSwitches.value(69) ? TextManager.skill : "????"
where 69 is the ID of a switch you turn on to activate the name.
Thank you @ATT_Turan it worked.

But the text changes from "?????" to "Skill".
Can we make it so i can choose other name for Skill?
It shows whatever you typed for the Skill Command in the Terms tab of your database.

So...it's already made so you can choose whatever name you want.
It shows whatever you typed for the Skill Command in the Terms tab of your database.

So...it's already made so you can choose whatever name you want.
Oh, dumb me.
Wonderful, it worked perfectly.
Thanks again @ATT_Turan, really, you're the best.

Problem solved, thread can be closed.
Problem solved, thread can be closed
Make sure to report your opening post and say that the thread can be closed. That way, a mod is sure to see it and close it up.
I'm here now anyway, so I'll go ahead and close, but yes for next time please report 🙂

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/change-skills-main-menu-text-midgame.165980/