DreamCore™
Welcome to DreamCore™️
~Hanzo Kimura

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

Recover Hp/Mp With Level Up

View previous topic View next topic Go down

Recover Hp/Mp With Level Up

Post by awfarrow on 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
avatar
awfarrow

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

View user profile

Back to top Go down

Re: Recover Hp/Mp With Level Up

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

BUMP Smile
avatar
awfarrow

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

View user profile

Back to top Go down

Re: Recover Hp/Mp With Level Up

Post by IceDragon on 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.
avatar
IceDragon

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

View user profile

Back to top Go down

Re: Recover Hp/Mp With Level Up

Post by awfarrow on 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.
avatar
awfarrow

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

View user profile

Back to top Go down

Re: Recover Hp/Mp With Level Up

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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