Group: Member
Posts: 25
Type: Mapper
RM Skill: Masterful
Hi, I'm currently using this script that allows the player to restore HP & MP while guarding.
KGC script
CODE
#_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_ #_/ ◆ Recover on Guard - KGC_GuardRecover ◆ VX ◆ #_/ ◇ Last Update: 08/10/2008 #_/ ◆ Written by TOMY #_/ ◆ Translation by Mr. Anonymous #_/ ◆ KGC Site: #_/ ◆ [url="http://ytomy.sakura.ne.jp/"]http://ytomy.sakura.ne.jp/[/url] #_/ ◆ Translator's Blog: #_/ ◆ [url="http://mraprojects.wordpress.com"]http://mraprojects.wordpress.com[/url] #_/----------------------------------------------------------------------------- #_/ This script allows you to add HP/MP Recovery percentiles to the battle #_/ guard/defend command. #_/ * Note from the translator: I had previously ported this script myself, #_/ this official KGC port however, is a bit more cleanly coded. #_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_
#============================================================================== # ★ BEGIN Customization ★ #==============================================================================
class Scene_Battle < Scene_Base #-------------------------------------------------------------------------- # ● Execute Battle Action: Guard #-------------------------------------------------------------------------- alias execute_action_guard_KGC_GuardRecover execute_action_guard def execute_action_guard execute_action_guard_KGC_GuardRecover
@active_battler.guard_recover_effect if @active_battler.hp_damage != 0 display_damage(@active_battler) elsif @active_battler.mp_damage != 0 display_mp_damage(@active_battler) end end end
It works really nicely, the only thing I wish to change is the recovery rate for one of the characters, making it his specialty. In my database, it's the character #001 (class #001) if it helps. He should be able to regain 10% of his HP and 10% of his MP for guarding instead of 5% each.
Thanks a lot for your help!
This post has been edited by TheDrifter: Oct 15 2011, 11:44 AM