Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hey! Question for you: I have a script right now that updates the help window in the Skill Menu scene with a description I set for each skill type. It works just fine with your plugin, but it's a bit of a hassle having to set the description for each skill type twice. Any way to modify it or adapt it to load the same description I set in your plugin parameters? 

Great plugin by the way, I've been looking for exactly this functionality so I appreciate it!

(() => {

  // Override the updateHelp method for Window_SkillType

  Window_SkillType.prototype.updateHelp = function() {

    const skillTypeId = this.currentExt();  // Get the skill type ID from the command

    switch (skillTypeId) {

      case 1:  //Kyokushin

        this._helpWindow.setText("Sensei Hugg's special style of Kyokushin Karate. I'm 2nd Kyu, but I'm rusty these days...");

        break;

      case 2:  // Scrapping

        this._helpWindow.setText("Moves I've learned from movies, TV, video games, comic books, and from getting myself in fights.");

        break;

      case 3:  //Insults

        this._helpWindow.setText("Getting in somebody's head can hurt them just as a punch or a kick. A weak mind makes a weak person.");

        break;

case 4:  //Self-talk

        this._helpWindow.setText("I have mental health too... gotta make sure I can keep my head in the game. Big girls don't cry.");

        break;

      // Add more cases for additional skill types if needed

      default:

        this._helpWindow.setText("");  // Default empty text

        break;

    }

  };

})();

(3 edits)

Thank you for the praise and patronage, much appreciated 😊

Yes, you can retrieve this info through my plugin’s API.

(() => {

  // Override the updateHelp method for Window_SkillType

  Window_SkillType.prototype.updateHelp = function() {

    const skillTypeId = this.currentExt();  // Get the skill type ID from the command

    const bcd = TS_Battle_Command_Descriptions.parameters.battleCommandDescriptions
        .find(bcd => bcd.skillTypeIds.includes(skillTypeId));

    if (bcd) this._helpWindow.setText(bcd.description);
    else this._helpWindow.setText("");  // Default empty text
  };

})();

I haven’t tested this, but it should work. It’s not necessary to include null/undefined checks for most properties in my plugins since I normalise them to always be populated.

Works perfectly! Thanks so much!