Multiple Element Types on Weapons

Still a bit new on this issue...

If I have a Fire Sword and set Atk Elements to both Physical and Fire, how does the damage get distributed, 50% physical 50% fire?

So if an enemy is immune to fire, will the enemy still receive the physical damage?
Ace has really bad default calculations for elements... I think it is something along the lines of the highest element%(what the target is weakest against) gets counted, and if they're both = the first one gets counted. It's probably the one true criticism I have about how the base game works, but there are plug and play scripts to fix it (several of them.) 

Here's one of them: http://crazescriptasylum.wordpress.com/2012/01/06/second-script-elemental-merger/
It just picks the element that deals the most damage.
thank you both
This script allows for full control over both attack and defense elemental values. It also allows for elements to be increased via script call and notetags...
Thanks Dek, I will take a look now, having a bit of trouble with Craze's elemental script.
I was reading over the script descriptions but don't really see how you could assign "50% fire, 50% physical" weapon elemental damage rates with either script.


For example, this script allows you to clearly define that a skill will do 30% fire damage and 70% physical damage, and each elemental damage value is calculated separately, so if they're immune to physical damage, at least your fire damage will still go through.


However, if you want to specify that your weapon will deal 30% fire and 70% physical...where would you put that? The weapon I suppose? But then element rates can be inherited from the actor, class, armors, and states.
Tbh I don't really see how you could assign "50% fire, 50% physical" weapon elemental damage rates with either script.
You can't.. I've been trying. It isn't really 50/50..

The idea is this.. the Fire Sword deals physical damage [the actual sword] and Fire damage [the enchantment]

If a character in my game attacks a fire elemental with the fire sword, I want the elemental to be able to nullify the fire portion of the sword attack but still receive the physical portion. So, in effect, in receive 50%

So far, no luck. It's OK tho, I will just have to settle with making the fire sword exclusively deal fire damage and I'll just figure it out.
notetag <atk ele: element_id, float_value> within an actor/class/skill/state etc will increase the damage dealt by the float value. This damage will be of an element_id type.

eg.

actor 1 attacks and deals 100 damage normally.

add notetag <atk ele: 3, 0.5>

actor 1 will now deal 150 damage.

If enemy is weak to element 3 which causes him to feel 200% of fire damage, the damage deal will then be 300 (when using notetag)

At least thats how i remember it working when i wrote it. if it oesnt i will look into that a.s.a.p
I'm sorry, I have been withholding information, Dek, I am using an ABS. I couldn't get your script to run, I'm sure your script works perfectly fine, it's probably my ABS that is interfering with it.
ABS shouldn't interfere with my script (depending on whether you are using one which completely disregards the default calculations, such as Khas' ABS), in which case. no standard elemental modifier script will help :/
I'm using Falcao's.. I received this error

so4e8p.png
Falcao's ABS uses the default methods...

The reason its not working is due to a small typo (my fault). it seems I havent updated that script for longer than I thought. Sorry about that.

Change the line to this

        o.load_elemental_controland it should work fine 😛
notetag <atk ele: element_id, float_value> within an actor/class/skill/state etc will increase the damage dealt by the float value. This damage will be of an element_id type.


eg.


actor 1 attacks and deals 100 damage normally.


add notetag <atk ele: 3, 0.5>


actor 1 will now deal 150 damage.


If enemy is weak to element 3 which causes him to feel 200% of fire damage, the damage deal will then be 300 (when using notetag)


At least thats how i remember it working when i wrote it. if it oesnt i will look into that a.s.a.p
That doesn't sound like what Dymdez wants.


If I attack and deal 100 damage normally, and my attack is 50% fire and 50% physical, I should still deal 100 damage. I would deal 50 fire damage, and 50 physical damage.


Suppose the enemy takes double damage from fire.


This means that my attack would deal 50*2 fire damage, and 50 physical damage, for a total of 150.


My "atk element rate" is designed based on that concept. I am currently extending it to support weapons and other feature objects https://github.com/Hime-Works/Requests/issues/149
Ahh yea, I see what you mean.

My script assumes that the default rate will always be 1.0 and the element modifiers are done after this like so...

  def sD13x_element_rate(user,elements)    rate = 1.0    elements.each do |i|      erate = element_rate(i)      uatkr = user.atk_element_rate(i)      rate += uatkr * (1.0*erate) if erate > 1.0      rate -= uatkr * (1.0-erate) if erate < 0.0    end    rate  end
It seems your script allows for a skills damage value to be separated into element percentages and then only modifies that percentage ?
Yes, both of our scripts have different focuses: mine splits up damage into separate elemental damages, while yours adds elemental damage bonuses.

Though, if a weapon does fire and physical damage, it still seems strange that dealing double fire damage would multiply the whole damage.

For example if I did 10% fire and 90% physical damage for a total of 100 damage, I wouldn't expect double fire damage to deal 200 damage.
yea i double checked that after i wrote it and i realised my statement was slightly wrong.

it only multiplies the weak element damage value so it would actually be actor attacks and deals 100 damage, add notetag <atk ele: 3, 0.5>
actor now deals 150 damage. When targets element is weak (200% dmg) the damage total would be 200, not 300 like initially stated :/
haha .. so uhh.. what does this mean to us newbies 🙂
Tsukihime's script splits up your damage into elements and then modifies that percentage of element damage if the target is strong / weak to the element.

My script changes the way elements are handled to allow for attack / defense elements that calculate the damage dealt and provides various ways to distribute those stats.

Either one will change the way elements are handled, just slightly differently 😛
Right, spot on, I will check out Tsuk's right now, it looks spot on. Not to say your script isn't awesome, either, Dek, it truly is.

Well gentlemen, this has been enlightening and insightful. We lived, we learned, laughed, and, dare I say, we even loved a little bit.

Thanks for your time, now if you'll excuse me, I will be making some fire swords.

Original thread: https://forums.rpgmakerweb.com/threads/multiple-element-types-on-weapons.24358/