Hiya how would I make an armor that functions like quick claw from pokemon? (As in, an armor that gives the wearer a chance to move first each round in battle.)
MV Making a Quick Claw-type Armor
RPG Maker MV SupportIf you're using standard battle systems, I guess you could change makeActionOrders function to modify the array after it sorts the battlers according to speed, but I think it also works if you just check for the armor and make it give a huge speed boost in makeSpeed (change X to armor id and Y to chance, like 0.5):
Game_Battler.prototype.makeSpeed = function() { var bonusSpeed = 0; if (this.isActor() && this.armors().some(armor => armor.id === X) && Math.random() < Y) { bonusSpeed += 10000; } this._speed = Math.min.apply(null, this._actions.map(function(action) { return action.speed() + bonusSpeed; })) || 0;};I tried adding that as a plugin but I couldn't get it to work
I quickly tested it and it seemed to work for me. Like the actor started attacking before the dudes who used guard with +2000 speed (when the random chance "succeeded").
Not really sure what I was doing wrong with your plugin, but I figured my own solution that works well enough (still thanks anyways though!) Just need to put this in every troop ("String" being the quick claw-like armor in this image).
The max speed state just buffs speed by 1000% which means it still wont go before skills with high speed, but that doesn't really matter much for my game in particular.
Original thread: https://forums.rpgmakerweb.com/threads/making-a-quick-claw-type-armor.179941/