mjshi 2 Posted September 23, 2015 (edited) Consume After Battle 1.0bby mjshi- OK for use in all projects with creditGet it here! (direct link)IntroductionInspired by Doom & Destiny's ration system. For those of you who have not played the game, it works like this: the player can buy cheap "rations" that can only be consumed after battle if the player's HP drops below 75%, which each restore 25% of a single party member's HP. I thought that this was an interesting system that helped the player stay alive through some of the tougher dungeons (it definitely helped me xD), without wasting time or MP on healing manually.So, this script incorporates and expands upon that system a bit. It automatically consumes designated items after battle when necessary.FeaturesSet up items that restore HP, MP, or both after each battle until the player is as close to fully restored as possible. Victory not required.Currently only has a multiconsumption option, working on adding turning that off~ You can turn autoconsumption on/off with a switch, or set it to always be on.Planned Features- Make the code look prettier, it looks a bit messy at the moment. Done! Updated to 1.0a- Configure amount of times an item can be used (for example, HP potion can be used on 3 people before fully consuming one)- Require certain conditions for the HP/MP restore (mainly, did the player win the battle?)- Turn off multiconsumption Screensn/a How to UseDesignate your item IDs, what they restore, and by what percentage/point, and you're all set!Installation: Paste this script above Main, preferably below any custom battle scripts that you have. Demon/a ScriptsDirect Link: http://pastebin.com/RemH96M2 FAQQ: I don't know how to install the script >.<A: Open scripts, click on the empty slot above Main, press Insert. Then read the How to Use section again.Q: I have a question about how to use the script?A: Read the "Configuration" part in the script. If you still have questions, ask here.Q: I want to do something with this but am not sure how to do it?A: Ask away.Creditmjshi Edited October 11, 2015 by mjshi Share this post Link to post Share on other sites
Szyu 52 Posted September 23, 2015 Great idea... I think some Tales of-Games use such a mechanic as well. Share this post Link to post Share on other sites
mjshi 2 Posted September 24, 2015 I've never played the Tales of- games, but congratulations, you have now introduced me to what will consist of the entirety of my winter break xD On a script-related note, I have updated this to look prettier and have also added an option to turn Consume After Battle on or off with a switch. Share this post Link to post Share on other sites
MHRob 8 Posted September 25, 2015 How would I go about making it so that one item restores both hp and mp? I would like to avoid using multiple items just to do something simple after battle, though I'll understand if it can't be done. Share this post Link to post Share on other sites
mjshi 2 Posted October 11, 2015 (edited) Ah, sorry for the late reply, haven't checked this forum in awhile. It's entirely possible, I just haven't coded it in yet.I'll go add that feature right now xD EDIT: Feature added. Sorry for not seeing your post earlier! I swear I had email notifications on for this topic... Edited October 11, 2015 by mjshi Share this post Link to post Share on other sites