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.

change strength and dexterity battle system to attack and defense system?

please help! i hate how in rpg maker xp the characters stats are strength and dexterity, etc!! its so much easier with attack and defense, etc like in VX and 2003!!! I heard that you can script all of that back. do u guys have the script for that. because i really hate how in XP your charcaters have to have a weapon in their hand just to do and basic attack. please help!!!! ^_^ thank you
 
There are multiple possibilities on how to proceed... first, if you just want to enable damage without a weapon in a characters hand, that's easily done with a couple of lines one of the other helpful guys in here can tell you... I can't, because I don't have RMXP anymore.
If you really want to change the whole damage calculation (and yeah, I do recommend that), you need to change a bunch of methods within Game_Battler, mainly attack_effect definition - search that in the script editor under Game_Battler and have a look in there. With a little interest, that can be a nice training for scripting beginners, so instead of trying to remember some code from the past I can't even backup, you might try it by yourself.
 
Code:
class Game_Actor
  alias add_str_base_atk base_atk
  def base_atk
    n = add_str_base_atk
    n += base_str
    return n
  end
end

STR will add to ATK even without weapons.
 
jimmyly":33cp5wf3 said:
Code:
class Game_Actor
  alias add_str_base_atk base_atk
  def base_atk
    n = add_str_base_atk
    n += base_str
    return n
  end
end

STR will add to ATK even without weapons.

groovy!! THANX!! now how do i do the same for both types of defenses (physical and special)? after that i will be set ^_^
 

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