DreamCore™
Welcome to DreamCore™️
~Hanzo Kimura

Please Register if you still don't have an account here.
Please Like us on Facebook.


Join the forum, it's quick and easy

DreamCore™
Welcome to DreamCore™️
~Hanzo Kimura

Please Register if you still don't have an account here.
Please Like us on Facebook.
DreamCore™
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Recover Hp/Mp With Level Up

2 posters

Go down

Recover Hp/Mp With Level Up Empty Recover Hp/Mp With Level Up

Post by awfarrow Tue Nov 30, 2010 5:05 am

The base script was much larger than this so I simplified it etc
Code:
#--------------------------------------------------------------
# ? How to use:
# Put this script above main, you can setup script below
#=================================================================

class Game_Actor < Game_Battler

#==================================
# * SCRIPT SETUP PART
#----------------------------------
RECOVER_HP = true # Recover HP when level up? (true/false)
RECOVER_MP = true # Recover MP when level up?
REMOVE_STATES = true # Cure all states when level up?
#==================================

alias wora_fullhpmp_gamact_lvup level_up
def level_up
wora_fullhpmp_gamact_lvup
@hp = maxhp if RECOVER_HP
@mp = maxmp if RECOVER_MP
if REMOVE_STATES
@states.clone.each {|i| remove_state(i) }
end
end
end

Enjoy Wink
awfarrow
awfarrow

Posts : 33
Reputation : 0
Join date : 2010-11-26
Age : 30
Location : Essex

Back to top Go down

Recover Hp/Mp With Level Up Empty Re: Recover Hp/Mp With Level Up

Post by awfarrow Tue Nov 30, 2010 3:59 pm

BUMP Smile
awfarrow
awfarrow

Posts : 33
Reputation : 0
Join date : 2010-11-26
Age : 30
Location : Essex

Back to top Go down

Recover Hp/Mp With Level Up Empty Re: Recover Hp/Mp With Level Up

Post by IceDragon Wed Dec 01, 2010 5:36 am

>.> Could you wait about 2 days before bumping.
Its a very simple script, nothing more.
You could try to add more features to make it better.
I'm fresh out of ideas though.
IceDragon
IceDragon

Posts : 150
Reputation : 1
Join date : 2010-09-26
Age : 30
Location : Manchester, Jamaica

Back to top Go down

Recover Hp/Mp With Level Up Empty Re: Recover Hp/Mp With Level Up

Post by awfarrow Wed Dec 01, 2010 5:39 am

Okay Sorry Ice usually in most forums it's One but okay as for the script it's meant to Simple I only Scripted it for a basic job which I have been told works nothing more also I could add a Defence Regen to it but that might clash with it and I have that in a separate Script.
awfarrow
awfarrow

Posts : 33
Reputation : 0
Join date : 2010-11-26
Age : 30
Location : Essex

Back to top Go down

Recover Hp/Mp With Level Up Empty Re: Recover Hp/Mp With Level Up

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum