Jump to content
Rpg²S Forum
  • 0

Cura tutti gli HP dopo il Level Up!


PrinceEndymion88
 Share

Question

4 answers to this question

Recommended Posts

  • 0

C'è, si chiama Heal level up o qualcosa di simile. Se usi il tasto cerca o vedi nell'elenco degli script lo trovi.

Un consiglio, prima di aprire una nuova discussione cerca sempre se c'è nel forum.

Link to comment
Share on other sites

  • 0

Cercando su internet (qui non l'ho trovato) ho trovato questo scripit di CCOA

#==============================================================================

# ** 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

 

Ma purtroppo cura anche gli SP a me serve solo per gli HP

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...