Is there a script that can restore a set amount of hp/mp and perhaps tp when an actor levels?
Script to restore set hp/mp
RGSS3 Script RequestsWhat's it for? It's easier to make recommendations if you state your intentions.
I'm pretty sure you can do this through events, you don't need a script. :3
Here's how to do it:
Make an event that will play at the very beginning of the game like this one(make sure its second page is blank with the condition that self switch A is on so that you don't get stuck in a loop!):
Then make a common event that will always be on once its switch is flipped in the first event. You can set how much you'd like the character to heal up! (Just copy and paste the events and edit it to accommodate for other characters too!
Hope this was helpful! 👋
Here's how to do it:
Make an event that will play at the very beginning of the game like this one(make sure its second page is blank with the condition that self switch A is on so that you don't get stuck in a loop!):
Then make a common event that will always be on once its switch is flipped in the first event. You can set how much you'd like the character to heal up! (Just copy and paste the events and edit it to accommodate for other characters too!
Hope this was helpful! 👋
Ok do you know if this script can be modified to restore a numerical value of hp/mp (not as a % of hp/mp)
- # )----------------------------------------------------------------------------(
- # )-- AUTHOR: Mr Trivel --(
- # )-- NAME: Level Up Restore --(
- # )-- CREATED: 2014-06-17 --(
- # )-- VERSION: 1.0 --(
- # )----------------------------------------------------------------------------(
- # )-- DESCRIPTION --(
- # )-- Restores HP & MP on level up. --(
- # )----------------------------------------------------------------------------(
- # )-- INSTRUCTIONS --(
- # )-- Plug & Play, or set values to you liking. --(
- # )----------------------------------------------------------------------------(
- # )-- LICENSE INFO --(
- # )-- http://mrtrivelvx.wordpress.com/terms-of-use/ --(
- # )----------------------------------------------------------------------------(
- module MrTS
- module Level_Up
- Restore_HP = 100 #100 - restore HP by 100%
- Restore_MP = 100 #100 - restore MP by 100%
- end
- end
- class Game_Actor < Game_Battler
- alias mrts_level_up level_up
- def level_up
- mrts_level_up
- @hp += (mhp * (MrTS::Level_Up::Restore_HP/100.0)).to_i
- @mp += (mmp * (MrTS::Level_Up::Restore_MP/100.0)).to_i
- end
- end
change line 29 and 30 to
of course, change the number 999 on your liking
Code:
self.hp = 999
self.mp = 999
Is there a way to have it add hp/mp not set your hp/mp?
.... I forgot to put '+' on it (well, I was after wake up, so)
use this
use this
Code:
self.hp += 999
self.mp += 999
Moved to: RGSS3 Script Requests
Original thread: https://forums.rpgmakerweb.com/threads/script-to-restore-set-hp-mp.92902/