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?
It just picks the element that deals the most damage.
Thanks Dek, I will take a look now, having a bit of trouble with Craze's elemental script.
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 :/
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 😛
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.