G'day to ye lads and lasses!! I am here to ask about setting up a damage formula for the default Attack command that everyone uses. I noticed that using a.level just causes the game to crash if enemies use it, so I can't go that route (unless I give them a different skill altogether?).
I was originally using the default damage formula of a.atk*4 - b.def*2, but was trying other damage formula to see what would work best for my game (I am using RPG Maker MV, for the record). I've tried
(50*a.atk*a.atk)/(100+b.def) which does make stats really strong, but feels like it makes it hard to balance stats. For example:
With this damage formula, and fighting Giant Fauna at level 99
Fauna: 155 DEF vs 240 DEF (255 ATK)
Giant Fauna: 100 ATK & 20 DEF
Fauna: Takes ~2000 damage vs ~844 damage, deals 9999 damage
60 DEF vs 100 ATK is about 3000 damage
So this DOES let stats matter a lot (a big difference between 85 points of Defense for the player).
Of note, the player stats are capped at 255 (forced by me), but enemies CAN go above 255 with buffs (I don't think the players can even with buffs with a hardcap??). I'm trying to make it so that each point matters a lot (you have Weapons, Shields (called Collabs, equippable units that grants a lot of different bonuses/penalties), and Accessories. There's no Helmets or Armors in this game).
Once I figure this out, I can try to figure out a good way for Magic Attacks (they also use the default Magic damage formula too...don't know if using the Attack formula but switched to the magic stats would be ideal??). I suppose the above formula could work well if I fine tune enemy stats around what the player would be around that level of the game??
The question being what would be a good damage formula for the Attack command when player stats are hardcapped at 255 (and it's not super easy to boost stats outside of in-battle buffs and some equipment) in which makes the stats actually matter a lot if it's say...20 ATK vs. 15 DEF versus 25 ATK vs. 15 DEF. Does that help with the question?
Though I will give that a try with the actor, I forgot all about that despite using it once or twice with some skills.
I suppose I should've added more information to the original post too in regards to things like that. ^^;;
I'm effectively going the Final Fantasy route with stats/HP (at level 99, most of the cast hits between 4500-8500 HP without any equipment or buffs), and most stats (without equipment) tend to hit around the 150 mark, give or take (some can hit around 200 ATK naturally, others can't hit 90 normally). For enemies, I try to have them start off with about 150 HP, and then by end game, normal mobs hit about 6500-18000 HP, give or take. Granted, I don't want the regular attacks to outclass skills, but it needs to be viable enough. I tried looking through the thread before posting, actually, and tried some formulae but don't know if they're exactly what I need. I WAS going to mimic the Final Fantasy VII damage formula but...I don't know how to mimic that since there's no "Strength" stat to substitute (and no Vigor stat to replicate the FFVI damage formula). You also get 4 party members in an active battle party, and can switch out active party members with those in reserve (8 party members total).
But yeah, seems like it's just a looooot of testing to get the right thing. Just a very tedious process is all lol...I've forgotten about how troublesome it can be! I'm aware it's doesn't exist in a void (only a tree man does : v ), just thought about asking about it to see if I could get a bit of a headstart on it so I could move on to testing enemies a bit faster. ^^;
I feel like sharing this with others, in case they want this formula for themselves.
So, I reused the FFVIII attack formula and modified it for both physicals and magic attacks.
(((a.atk*a.atk)/16 + a.atk) * (265 - b.def)/256) * a.atk/64
Replace a.atk with a.mtk and a.def with a.mdf for magic. Seems like this scales quite well with stats. If you use a lot of buffs in your game that stacks together, can just adjust the final number (64 to 32 lets buffs shine a lot more IIRC. Or it might be the other direction).
(((a.atk*a.atk)/16 + a.atk) * (265 - b.def)/256) * a.atk/180
I also tested how much this affects skills by adjusting the final number. Where a regular attack from a character with 255 ATK vs. 200 DEF does about ~6000 damage, the above skill would do about ~1600-1700, so it's good for if you want to make low-damage skills.
Again, just wanted to share what I found, don't know if this is the topic for that or not. Wasn't sure what else I could adjust with this formula for other abilities (I outright removed raw numbers. Originally spells had values like 150 base damage on top of the formula, but with this formula...maybe those aren't needed anymore??)
Im working on an addition to a heal that will damage all enemies for a portion of the heal. My problem is calling the enemies because they are not the target.
Im trying to use this format for the damage portion but im not sure how to change the target aspect of this to pull the enemies. (yes i know there is no check for the state i will be using to trigger this yet)
<JS Post-Damage>
for (let i=0; i<target.friendsUnit().aliveMembers().length; i++) {
if(target.friendsUnit().aliveMembers()[i]!=target) {
target.friendsUnit().aliveMembers()[i].gainHp(0 - Math.round(value / 5));
target.friendsUnit().aliveMembers()[i].startDamagePopup();
}
}
</JS Post-Damage>
Any help would be appreciated.
Sorry i miss read what thread i was in. Thanks though for the info.
I made a parabola completely by accident:
(a + (b + (1 * (x / 5))) * x
It's still not want I wanted but was a bit surprised I came up with that without it feeling like guess work.
Hi, everyone. Both a quick question and a complaint. First, the question, to get it out of the way. What is wrong with my damage formula, and how do I fix it?
( Math.arctan( a.atk - b.def ) + 2 ) * a.atk - enemy.level * enemy.level
Explanation: The arctangent of the difference between the attacker's attack and the defender's defense, plus two (to bring it above zero), acting as a multiplier to the attacker's attack, with flat damage reduction provided by the opponent's level (functions helpfully provided by Yanfly's Enemy Levels plugin). This turns the attack/defense ratio into a smoothly-asymptoting multiplier ranging from 0 to 4 (this aspect is depicted in the attached picture to make sure I wasn't getting my basic trig wrong), while also preventing early kills on much-higher-leveled enemies. Anyway, tested both with and without the enemy.level * enemy.level at the end, and I've been getting 0 both times.
Now the complaint: It is very very frustrating to search for basic information on the syntax, operators, and formulae I must use for the damage formula in RPGM. How must I format this? Does it obey typical PEMDAS? I literally have no idea where to even go for that information. That kind of stuff should really be added to some of the damage formula tutorial posts, tbh.