Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Is there any way that strength adds max hp?

Try this
Code:
#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
#  This class handles the actor. It's used within the Game_Actors class
#  ($game_actors) and refers to the Game_Party class ($game_party).
#==============================================================================

class Game_Actor < Game_Battler
  #--------------------------------------------------------------------------
  # * Alias Listing
  #--------------------------------------------------------------------------
  alias dargor_xp_actor_maxhp_str_base_maxhp base_maxhp
  #--------------------------------------------------------------------------
  # * Get Basic Maximum HP
  #--------------------------------------------------------------------------
  def base_maxhp
    return dargor_xp_actor_maxhp_str_base_maxhp + base_str
  end
end
This will add the character's base strenght to it's base maxhp.
I did the script in 2 minutes and I can't test it because I'm at work, so tell me if there's something wrong with it.
Also, you haven't specified XP or VX so I made it XP, but it should also work on VX.

Take care!
-Dargor
 
Dargor":3laqkctg said:
Try this
Code:
#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
#  This class handles the actor. It's used within the Game_Actors class
#  ($game_actors) and refers to the Game_Party class ($game_party).
#==============================================================================

class Game_Actor < Game_Battler
  #--------------------------------------------------------------------------
  # * Alias Listing
  #--------------------------------------------------------------------------
  alias dargor_xp_actor_maxhp_str_base_maxhp base_maxhp
  #--------------------------------------------------------------------------
  # * Get Basic Maximum HP
  #--------------------------------------------------------------------------
  def base_maxhp
    return dargor_xp_actor_maxhp_str_base_maxhp + base_str
  end
end
This will add the character's base strenght to it's base maxhp.
I did the script in 2 minutes and I can't test it because I'm at work, so tell me if there's something wrong with it.
Also, you haven't specified XP or VX so I made it XP, but it should also work on VX.

Take care!
-Dargor
Awesome!!!It works!! Really thanks a lot!!
I am using XP , THANKS!! so excited XD
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top