Giving Weapons "Power" Instead of ATK or M.ATK Changes

FullZetsu

Warper
Member
Joined
Jun 9, 2018
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMMV
So in the game I've been developing, I want Weapons to have a Unique Value (Power), that is used to calculate Damage, alongside the Character's Parameters. Essentially, I want to be able to make a formula like: ( (a.atk / b.def) * Power )
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
Will 'Power' vary over time? If so, how do you want it to happen?
A simple way of doing this would be to assign a value to a variable and use that variable in the formula as your multiplier. Should you want that variable to increase you can do it however would fit in with your game.

In Ace that would be
((a.atk/b.def) * v[n])
where n = the variable id.

However, perhaps in Javascript variables are designated differently.
 

FullZetsu

Warper
Member
Joined
Jun 9, 2018
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMMV
The idea is that each Weapon would have a set Power and whenever the Character equips a different weapon, the power would change. So a Wooden Sword would have the value of 20 but an Iron Sword would have the value of 50, for example.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
If you don't want to use a plugin, and you are not using the stat LUK for anything much, then you could re-purpose it, call it PWR for the benefit of your players, and just add your 20 or 50 straight in there on the weapon tab itself. Then your formula would read
((a.atk/b.def) * a.luk)

You would still have to use LUK in the formula so that the engine can read which stat you are referring to.

However, if you don't want to re-purpose an existing stat, then you will need to search for a plugin that gives you additional stats.
 

SwiftSign

Veteran
Veteran
Joined
Aug 5, 2015
Messages
184
Reaction score
45
First Language
English
Primarily Uses
RMMV
I agree Kes' ways are probably the easiest, or perhaps using note-tags to help give your weapons new stats without plugins (although that'll make your formulae a lot more convoluted).

Here's a similar thread with some recommended plugins, although there may be some more since 2016.
 

FullZetsu

Warper
Member
Joined
Jun 9, 2018
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMMV
Thank you both, I am currently going to use the Luck Stat as Power, as Kes suggested, but I will definitely look into adding additional Stats into the game as well.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top