You’re using VisuMZ_1_BattleCore to set up the menu, right?
Due to its obfuscation and lack of public API, I don’t support its custom features directly.
That said, you can load your code as separate plugin after mine, to make it easier to update my code:
'use strict';
// Untested, but very likely to work.
const oldGetActorCommandHelp = TS_Battle_Command_Descriptions.getActorCommandHelp;
TS_Battle_Command_Descriptions.getActorCommandHelp = function (commandData) {
if (commandData && commandData.symbol === 'singleSkill') {
const object = $dataSkills[commandData.ext];
const help = object && object.description;
if (typeof help === 'string') return help;
}
return oldGetActorCommandHelp.apply(this, arguments);
};
You don’t need to look up the _list
entry because commandData
should be exactly that object already. It’s also a good idea to avoid accessing the window through SceneManager._scene
, as another plugin may reuse Window_ActorCommand
in a different scene or under a different property name.
Thank you for your patronage and for sharing your issue and solution!