Hello fellow RPG makers,
I'm using Yanfly's fantastic Equip Skill Tiers plugin, which allows the player to equip skills within tiers, and limits how many skills of the same tier you can equip at once. To achieve this, the plugin stops the player from leaving the scene window if one tier has too many skills equipped (see 2:25 below):
However, to me, it's not always obvious to the player that they have assigned more skills in one tier than is allowed - the relevant tier shows up in a different colour font, but the first few times I've played around with this plugin, it took me more than a few seconds to realise why I couldn't leave the menu. Ideally I'd like to play the buzzer sound effect (or even show a pop-up message box) if the player presses cancel to leave the menu and more skills are assigned than allowed, so the player gets immediate feedback, but I can't figure out how to do that. I think this part of the script:
handles this, but I'm not sure where to stick something like "AudioManager.playSe({name: 'Buzzer', pan: 0, pitch: 100, volume: 100});" or similar instruction. I'd appreciate any help 🙂
I'm using Yanfly's fantastic Equip Skill Tiers plugin, which allows the player to equip skills within tiers, and limits how many skills of the same tier you can equip at once. To achieve this, the plugin stops the player from leaving the scene window if one tier has too many skills equipped (see 2:25 below):
However, to me, it's not always obvious to the player that they have assigned more skills in one tier than is allowed - the relevant tier shows up in a different colour font, but the first few times I've played around with this plugin, it took me more than a few seconds to realise why I couldn't leave the menu. Ideally I'd like to play the buzzer sound effect (or even show a pop-up message box) if the player presses cancel to leave the menu and more skills are assigned than allowed, so the player gets immediate feedback, but I can't figure out how to do that. I think this part of the script:
Code:
Yanfly.ESTier.Window_SkillList_isCancelEnabled =
Window_SkillList.prototype.isCancelEnabled;
Window_SkillList.prototype.isCancelEnabled = function() {
if (this._actor && this._stypeId === 'battleSkills') {
if (!this._actor.equipSkillTiersOk()) return false;
}
return Yanfly.ESTier.Window_SkillList_isCancelEnabled.call(this);
handles this, but I'm not sure where to stick something like "AudioManager.playSe({name: 'Buzzer', pan: 0, pitch: 100, volume: 100});" or similar instruction. I'd appreciate any help 🙂