Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> 


———
Before you ask! Read! ;)

You must have 30+ Posts to create a topic here!

Thanks for reading!
———

 
Reply to this topicStart new topic
> Level Up help in XP
MrDenimLP
post Apr 16 2012, 11:01 PM
Post #1


Level 1
Group Icon

Group: Member
Posts: 7
Type: Writer
RM Skill: Intermediate




I'm a fairly new user of RPG Maker XP - only having it for 4 days now - And I am wondering if it is possible to event or script in where whenever the hero or any of the party members level up, their HP and SP are reset to that level's maximum. Any ideas? And an answer in a tutorial-like format would great!


__________________________
This has been Mr. Denim
Go to the top of the page
 
+Quote Post
   
Resource Dragon
post Apr 18 2012, 11:44 AM
Post #2


Dragon has RAWR. So... RAWR.
Group Icon

Group: Local Mod
Posts: 984
Type: Developer
RM Skill: Masterful
Rev Points: 95




Moved to RGSS Script Requests. ~RD


__________________________
click me ->Signup for Digital Hijinks!<- click me
Go to the top of the page
 
+Quote Post
   
MrDenimLP
post Apr 18 2012, 07:43 PM
Post #3


Level 1
Group Icon

Group: Member
Posts: 7
Type: Writer
RM Skill: Intermediate




Nvm, I found a script. Here it is if you want to use it:

#==============================================================================
# ** Heal On Level Up
# By Ccoa
#------------------------------------------------------------------------------
# When you level up all your HP and SP will be return to max
#==============================================================================

class Game_Actor < Game_Battler
alias exp_normal exp
def exp=(exp)
@exp = [[exp, 9999999].min, 0].max
# Level up
while @exp >= @exp_list[@level+1] and @exp_list[@level+1] > 0
@level += 1
# Learn skill
for j in $data_classes[@class_id].learnings
if j.level == @level
learn_skill(j.skill_id)
end
end
# heal
@hp = self.maxhp
@sp = self.maxsp
end
# Level down
while @exp < @exp_list[@level]
@level -= 1
end
# Correction if exceeding current max HP and max SP
@hp = [@hp, self.maxhp].min
@sp = [@sp, self.maxsp].min
end
end


__________________________
This has been Mr. Denim
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th June 2013 - 10:25 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker