Search the Community
Showing results for tags 'damage formula'.
Found 3 results
So I'm using Rpg Maker XP, and I've been playing with the damage formula, and I have a few ideas and want to know what you guys think. This is mostly me trying to figure out what to do about physical defense. This is a game where you put points into the stats you want per level. I know it depends on game type but I'm asking for, in most scenarios, which of these would you think you would favor most? If you have any additional ideas to add to what I have, Im open to hear them. 1) Direct damage reduction: Basically defense is subtracted from the damage and there is your final damage which is the default formula of ((power + atk )* rate) - pdef Note: "rate" takes in your other stats depending on what % of that stat is taken which you specify via database. 2) Damage Resistance: Turns PDEF into a % of physical damage is reduced. So same as above except instead of subtracting it as an integer, it is multiplied as a %. (power + atk) * rate * pdef 3) Ratio-Based (User.atk + rate) / p,def * power This one takes the ratio of your atk and stats vs the target's defense. 4) Ratio-based+ (rate / user.atk) * (user.atk + power) / pdef Similar to above but this makes it so your stat has to match the weapon or you'll be punished (so you can't run a 1000 atk dagger with 20 STR). Tho a debuff in, for example, STR in a str-based skill would increase the damage so idk anymore. Open to ideas about how to fix that issue. 5) Temporary HP If your pdef is 70, for example, you have 70 temporary HP at the beginning of battle (AKA HP shield or whatever you want to call it). Once it depletes, it's gone until the end of battle. 6) Armor Health As armor health depletes, so does the amount of damage it reduces. This one isn't exactly a stand-alone idea as it can be mixed with the others, but thought I'd put it out there.
Apologies if this is in the wrong forum! So I'm trying to make unique skills as my game goes along rather than the typical ones it gives you automatically, and I'm running into some hangups. I know it's possible to make them happen, but the damage formula isn't totally clear to me. I know it can run on if/then statements and calculations, but I need a bit of help explaining those. I've gone through a few notable threads and they've been helpful, but not totally clear. Here are some examples of specific skills I'd like to implement, but don't know how to work the damage formula. "Absolution" -- If target has less than 40% HP, instantly kill them; otherwise, deal medium holy damage. Any skill that can target both enemies and allies -- for instance, "deal damage to all enemies and heal all allies", or "lower defense of all enemies and raise defense of all allies" "Rune of Dispersion" -- all damage is dispersed among enemies for 3 turns (see Bravely Default's Black Mage Skill "Damage Dispersion" except applied to enemies) There are others yet to be determined, but just getting a good grasp on how to make more complex and unique damage formulas would really help. I'd like to be able to work it from scratch. Thank you for any help at all! And feel free to move this if it's in the wrong place.
So this was an idea initially posted by IrateResearcher Well, after playing around with the damage formula and variables, I accidentally stumbled upon a way that could get that done, So I decided to make the skill! Demo link It's fully set up using eventing, no scripts at all so it should work in any project (That uses a battle system allowing events). Though it's definitely not plug and play unless you. Use the default database Have the only character using the skill be Actor 6 So yes. Just decided to put it out if you were wondering how to make it yourself. The skill is composed of two skills and a common event. Skill one is the skill you actually see, it does nothing but: Serve as the "visual" skill with the description and energy costs. Call a common event (Optional)Apply a 1 turn duration state on the enemy to prevent the "Attack had no effect on x" message. Then we have the common event, this one is a bit more complicated. I'll try to break down what it does. In the screenshot below you'll see how it's set up for three of the 6 guns (In the demo it's set up for all 6) (Optional)Play the gun cocking sound. Set the Variable storing the number of items to 0 to prevent the skill getting more powerful every time you use it. Set the Variable storing total damage to 0 to prevent the skill getting more powerful every time you use it. <Label-TestFlint> Tells the event where the start of the "test" sequence is. Checks whether or not the player has any "Flintlock" in their inventory If they do: -Add 1 point to the variable storing the number of items -Remove one "flintlock" from the inventory. -Return to <Label-TestFlint>to see if they have more than one If they don't: -(optional)Return as many "flintlock" to the player's inventory as were removed. (Not doing this would result in the item being consumed. -Tells the game that the "flintlock" is worth 16 damage per item. -Multiplies this value by the number of items counted. -Adds this value to the variable storing the total damage for the skill. -Sets the variable of counted items to 0 so it can go and count the next type. So, let's say the player has 6 "flintlock" in their inventory Each "flintlock" is worth 16 points of damage. 16 x 6 = 96 damage. After doing this calculation the script then does the same for the "Musket" and the "Dragoon", putting all their values together. As you see, the only things that changed between item types are the items, and the name of the labels. So, let's scroll to the bottom here. (optional)The event waits 20 frames (a little less than half a second) (Optional)Another guncock sound is played. The script tells Actor 6 (Kayako) to use the skill "GunVolley" on a random target. (Note: it IS possible to pick a defined target, but since this skill targets all enemies it's unnecessary) So, we had the hardest part behind us... we head over to the second skill it calls. This one does the actual damage. This skill is: NOT directly selectable Called by the common event above Contains the following damage calculation: a.atk * 2 + a.agi * 3 + v - b.def * 2 Which does the following Take the skill user's Attack power Mutiplies this value by 2 Take the user's agility Multiplies this value by 3 Adds the value of Variable 5 (Which is the variable storing the total damage of all items combined) Divides this by the defense of the opponent (times 2) So let's say, Actor 6 has an Attack power of 120 An agility of 98 and the attack power of all Counted items in her bag combined is 2400 The enemy has a Defense of 130 The damage done should be the following: (120 x 2=)240 + (98 x 3=)294 + 2400(=2934) - (130 x 2=)260 = 2674 (240 + 294 + 4400 - 260 = 2674) Yes, you read that right. 2674 whopping damage. The opponent's defense doesn't have much to say to that. Obviously the skill might need some balancing, (To be honest, I am not sure if this is even how damage calculations in RPGmaker go) or the items should be harder to acquire. But you definitely notice that! So yes, that's all there is to this skill, if you want to use something like this yourself, go ahead, no need to credit anyone.. Perhaps let me know, leave a like if you enjoyed it. Kukuku. (If you use this skill directly without modifications you might want to thank IrateResearcher for the idea. But yes! Happy fun times!