Gain Bonus XP or Gold if you win fight Quickly! Rank Fight? Script please help ^_^

Hi everyone,


I'm looking for a script that can give a Bonus XP or Gold if you finish a fight quickly. Ex: You finish the fight before a certain time and you get 2 time the gold and XP.


Similar to something in FF13 that could give a Rank or something at the result screen so people understand that if they kill the enemies quickly they will gain some Bonus.


Just to have something real simple like: a script where you can write in the plugin a multipler of XP or Gold with some standards time like you win the fight in less 1 minutes = 1.5 x times the gold Rank A


Rank B = more then one minute = 1.3x time the gold 


You create the rank 1,2,3,4,5 (with each the time limit) at the end of the fight you show the rank + the time you have taken for the battle and get the bonus gold and xp 🙂


Maybe something already exist to help me do this trick? This will help the player to maybe being more strategic to win the fight fast so he can have the maximum gold and XP.


thank you in advance! 


🙂
Still no javascript plugin master who want to try this challenge in making this plugins? 🙁  
No one around have made a similar script in rpg maker mv yet? to gain bonus in battle depending of the speed the encounter has ended? 
How about you try to use eventing? Nothing in your description reads as if it needs a script.


1) in every troop, have a troop event record game time into a variable on first turn and control a switch "after battle" ON.


2) make a parallel common event conditioned to the switch "after battle".


3) in the common event, use control variables and conditional branches to check how much time has passed since the time was stored on turn 1, and have it give rewards according to that.


4) at the end of the common event, control switch "after battle" OFF.
The plugin is ready, I just need to know what you exactly need, so I can make the last changes 🙂  


Like:


-Do you need a multiplier even for item number?


-Do you want a fixed time for every fight, or would you like to change it everytime?


-Would you like to show a message when you get the result? like "Completed - Rank S!"
The plugin is ready, I just need to know what you exactly need, so I can make the last changes 🙂  


Like:


-Do you need a multiplier even for item number?


-Do you want a fixed time for every fight, or would you like to change it everytime?


-Would you like to show a message when you get the result? like "Completed - Rank S!"



Hello SEK


-Do you need a multiplier even for item number?


This could be a great idea, if you manage to beat the battle in a X amount of time your might get a multiplier of the items receives.


-Do you want a fixed time for every fight, or would you like to change it everytime?


I would like to but a base time (for everybattle) but I would like to be able to overwrite that time in each battle. (Can we add a notetag in the Group of ennemies panel in RPG Maker?)


-Would you like to show a message when you get the result? like "Completed - Rank S!"


Yeah That would be really cool.I would like to write the time the battle lasted and the rank of the team for winning the battle.


More feedback to the player is always a great thing to give them 🙂


Thanks for your help, I'm pretty sure it's something that a lot of people will love to add into there game.


😀
The plugin is on Pending Approval, I wasn't able to multiply the number of items... and actually Troops don't have notetag :/ it could be done by setting a notetag for every enemy and by making an average multiplier, but i think that might be complicated: I put 4 different plugin calls that can be called anytime (on the first turn of the battle, for example) so that you can modify ranks, time and multipliers whenever you need.


You can change the shown message from plugin settings, the message will be shown when every enemy is dead.
Thanks for your help SEK cant wait to try this plugins to add some depth to the combat mechanic of my game. So people who play well and fast can gain some xp and gold boost.


😀
Thanks for your idea! 🙂
Hey SEK was your plugin approved by the scripter master? 😀
Sorry! I thought you saw it  😮
THANKS!! ^_^ !!

Original thread: https://forums.rpgmakerweb.com/threads/gain-bonus-xp-or-gold-if-you-win-fight-quickly-rank-fight-script-please-help-_.60287/