I'm sure someone found a way by now, but I can't find it anywhere :(
How to make armor increase ATK in RMXP?
● ARCHIVED · READ-ONLY
-
-
Are you talking like a static increase in ATK whenever you equip a particular armor piece?
-
Yes exactly. And I'm removing STR and INT in the game I'm working on because I don't like how the damage formula handles those stats. I'm just focusing on ATK. So yeah, I just want a script that you choose any armor id, and you can make it increase ATK (a static number). It sounds like a simple request, but I couldn't find anything :(
-
Well, it's definitely a simple request.
So in the ARMOR_LIST, just be sure to follow the formatting "ID => Number", separate your entries by commas, and keep all entries contained inside the curly brackets.Spoiler# Code be MobiusXVI# Requested by Jonathan4210# Allows armor to increase ATK# Customization Startmodule Mobius module Attack_Armors # ID => ATK_Increase_Amount ARMOR_LIST = {} # Default amount to increase if armor ID not found ARMOR_LIST.default = 0 endend# Customization End# Changes to Game_Actorclass Game_Actor alias mobius_base_atk base_atk def base_atk n = mobius_base_atk n += Mobius::Attack_Armors::ARMOR_LIST(self.armor3_id) return n end end
On a separate note, don't let how the default system calculates damage discourage/dissuade you from using a stat. Through scripting, you can completely customize how damage works and how the stats are all used. It obviously gets more complicated the more you change things, but it can be done and there are scripters out there (myself included) who will help you get your game to where you want it to be. Anyways, hope this code is what you were looking for. -
Great, that's perfect! And even though I can change the damage formula through scripting, I really don't see the point of having 3 damage stats. For my game, just ATK is good enough. Again, thanks :)
-
Hey, I know this is a bit late, but now I started making my game using this script, and when I go to the main menu, I get this:
undefined method 'ARMOR_LIST' for Mobius::Attack_Armors::Module
line 24
Please help. -
Oh my bad. Change the parenthesizes on line 20 to square brackets. So change "n += Mobius::Attack_Armors::ARMOR_LIST(self.armor3_id)" to "n += Mobius::Attack_Armors::ARMOR_LIST[self.armor3_id]"
-
Cool. Thanks for the quick reply.