Yanfly Engine Plugins is a plugin library made for RPG Maker MV, a wonderful piece of software to help you make that role playing game of your dreams. You can find out more about RPG Maker MV here.
Ever wanted to make a status effect where the affected target will be struck by a critical hit 100% of the time if possible? This Tips & Tricks video will show you how it can be done in RPG Maker MV!
You can grab the copy/paste code here:
Insert the following code into your Vulnerable state’s notebox.
<Custom Select Effect>
// Get the current skill
var skill = this.item();
// Check if the skill exists and can deal critical damage
if (skill && skill.damage.critical) {
// Get the previous Critical Hit settings
this._prevForcedCriticalHit = $gameSystem._forceCritical;
this._prevForcedNoCriticalHit = $gameSystem._forceNoCritical;
// Force the hit to be a critical hit
BattleManager.actionForceCritical();
}
</Custom Select Effect>
<Custom Deselect Effect>
// Check if the previous settings exist
if (this._prevForcedCriticalHit !== undefined) {
// Revert the Critical Hit settings to what they were before
$gameSystem._forceCritical = this._prevForcedCriticalHit;
$gameSystem._forceNoCritical = this._prevForcedNoCriticalHit;
}
</Custom Deselect Effect>
Enjoy!
Please wait while you are redirected...or Click Here if you do not want to wait.