s7809032002
Member
Is there any way that strength adds max hp? just like warcraft3
i need this script...thanks!! :grin:
i need this script...thanks!! :grin:
hmm...this is not actually i wantDesecration":17ghtu2o said:There sure is, though I'm not sure if you wanted a passive increase for strength adding max hp or not but here is a script that is capable of what you want (I think).
http://www.rmxp.org/forums/index.php?topic=7754
Enjoy!
#==============================================================================
# ** 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
Awesome!!!It works!! Really thanks a lot!!Dargor":3laqkctg said:Try this
This will add the character's base strenght to it's base maxhp.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
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