Recover Hp/Mp With Level Up
2 posters
Page 1 of 1
Recover Hp/Mp With Level Up
The base script was much larger than this so I simplified it etc
Enjoy
- 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
awfarrow- Posts : 33
Reputation : 0
Join date : 2010-11-26
Age : 30
Location : Essex
awfarrow- Posts : 33
Reputation : 0
Join date : 2010-11-26
Age : 30
Location : Essex
Re: Recover Hp/Mp With Level Up
>.> 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.
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- Posts : 150
Reputation : 1
Join date : 2010-09-26
Age : 30
Location : Manchester, Jamaica
Re: Recover Hp/Mp With Level Up
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- Posts : 33
Reputation : 0
Join date : 2010-11-26
Age : 30
Location : Essex
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|