Love the script, but I am trying to have my skill "Leadership" to give more Party slots at certain ranks.
Anyone know a good way to make that happen?
Anyone know a good way to make that happen?
"Battle Members" is the term you are looking for.
// At Leadership lvl 10 and 20 the max battle members increases
// This checks the highest leadership level in the party
// Assuming the abbreviation for the talent is "lead"
Game_Party.prototype.maxBattleMembers = function() {
const highest = Math.max(...$gameParty.members().map(actor => actor.lead).filter(lead => lead));
if (highest >= 20) {
return 6;
} else if (highest >= 10) {
return 5;
} else {
return 4;
}
};
Game_Party.prototype.maxBattleMembers = function() {
const highest = Math.max(...$gameParty.members().map(actor => actor.ldrshp).filter(ldrshp => ldrshp));
if (highest >= 16) {
return 6;
} else if (highest >= 8) {
return 5;
} else if (highest >= 2) {
return 4;
} else {
return 3;
}
};
Game_Party.prototype.maxBattleMembers = function() {
var highest = $gameParty.members().reduce(function(acc, cur) {
return (cur.ldrshp > acc ? cur.ldrshp : acc);
}, 0);
if (highest >= 16) {
return 6;
} else if (highest >= 8) {
return 5;
} else if (highest >= 2) {
return 4;
} else {
return 3;
}
};
Original thread: https://forums.rpgmakerweb.com/threads/frogboy-talent-core.99922/