//============================================================================= // SEK_BattleTime&Rank.js //============================================================================= /*: * @plugindesc Get a fast victory and gain different amounts of exp and gold! * @author SEK * * * @param End Battle Message * @desc The Message that will be shown after a battle. write %r for rank, %s for secs and %m for minutes. * @default Battle won in %s secs! - Rank %r * * @help * * Get a fast victory and gain different amounts of exp and gold! * * Note: plugin commands are not case sensitive! * * Plugin Commands: * *Rank rank * Write a list of rank names separated by spaces * *Rank secs * Write a list of secs in a crescent order separated by spaces * * Rank exp * Write a list of exp multiplier values separated by spaces * *Rank gold * Write a list of gold multiplier values separated by spaces * *The lenght of every list must be the same! *You must start from the better result to the worst! *Example: * Rank ranks S A B C D * Rank secs 7 10 12 16 20 * Rank exp 5 4 3 2 1 * Rank gold 5 4 3 2 1 * * if you complete the battle in 7 secs, you'll get S rank, exp*5 and gold*5! * if secs are over the last value of secs list, that value will be taken * anyhow: in this case, if you go over 16 seconds, even if time is 25 seconds, you * will get Rank D * By default, every multiplier is 1 and rank is "none" */ var params=PluginManager.parameters('SEK_BattleTime&Rank'); var Frase = String(params['End Battle Message'] || "Battle won in %s secs! - Rank %r"); var aliasgamin = Game_Interpreter.prototype.pluginCommand; Game_Interpreter.prototype.pluginCommand = function(command, args) { aliasgamin.call(this, command, args); if (command.toLowerCase() === "rank") { switch (args[0].toLowerCase()) { case 'exp': { ExpM=[]; var i=1; for (i;i=0;i--) if (secs