Attack Element Modifiers

attackElementModifiers

This script allows you to set up “attack element modifiers”. Basically, you can

  1. Set up skills with multiple attack elements
  2. Specify the attack element rate for each element

By default, damage calculations are done by first calculating the skill’s “base” damage, then applying the elemental modifiers. An elemental modifier is the product between “elemental damage rate” and “elemental resist rate”.

For example, if your fire damage rate is 100% and the target’s fire resist rate is 25%, then the actual fire damage is 75%. If your damage was 100% fire, then that means the actual damage you inflict is reduced by the target’s resistance.

Suppose you have a skill that inflicts both fire and earth elemental damage, and you want to make it so that the damage is 70% fire and 30% earth. With this script, it properly calculates the total damage dealt, after all elemental resistances have been applied.

If an enemy has no fire resistance and has 50% earth resistance, then your final element multiplier is equal to 70% from fire + 15% from earth, for a total of 85% of the skill’s base damage.

Download

Script: download here

Installation

In the script editor, place this script below Materials and above Main

Tutorials

Usage

To specify an attack element, note-tag skills or items with

<attack element: ELEMENT_NAME>

Where the ELEMENT_NAME is the name of your element in the database. Refer to
the Terms tab.

To specify attack element rates for each element, add the rate to the note-tag
as a percentage

<attack element: ELEMENT_NAME RATE>

Some example rates are

0.5 means it deals 50%
1.0 means it deals 100%
2.0 means it deals 200%

Damage Element Type

Elemental damage is calculated in two different ways depending on the skill’s
element type.

If the element type is “normal”, then it takes the user’s attack elements and
calculates damage based on those.

If there are multiple objects contributing to atk elements, then it will average out each element individually. For example, if you were dual-wielding a sword that does 30% fire damage and 70% physical damage, and you had another sword that does 50% fire and 50% physical damage, then the total damage that you will do is 40% fire and 60% physical. You can verify that the math is correct.

If the element type is anything else, then it takes the skill’s attack elements. When you note-tag a skill with atk elements, then that is assumed to be the skill’s damage element types.

Example

To specify that your skill inflicts 70% fire and 30% earth damage, you would
note-tag it with

<attack element: fire 0.7>
<attack element: earth 0.3>

Notes

To clarify, when I say “resistance”, I am not talking about the value that you specify for the “element rate” feature.

A fire element rate of 20% means the battler only receives 20% of any fire damage. This is equivalent to a fire resistance of 80%.

A fire element rate of 200% means the battler receives 200% of any fire damage. How you want to describe this in terms of resistance is up to you.

You may also like...

29 Responses

  1. Stefen says:

    It’s very easy to find out any topic on net
    as compared to textbooks, as I found this post
    at this web page.

  2. Tarell says:

    Hi there! Quick question that’s totally off topic. Do you know how
    to make your site mobile friendly? My blog looks weird when browsing from my iphone.
    I’m trying to find a theme or plugin that might be able to
    correct this issue. If you have any suggestions, please share.
    Many thanks!

  3. Karna says:

    I got this site from my pal who shared with me regarding this web site and at the moment this time I am visiting this website and reading very informative articles here.

  4. Laurina says:

    Excellent website you have here but I was wanting to know if you
    knew of any message boards that cover the same topics discussed in this article?
    I’d really love to be a part of group where I can get comments from
    other experienced people that share the same
    interest. If you have any recommendations, please let me know.
    Thank you!

  5. Judge says:

    Great information. Lucky me I ran across your website
    by accident (stumbleupon). I’ve saved as a favorite for later!

  6. Cherry says:

    If some one desires to be updated with most up-to-date technologies therefore he must be
    pay a quick visit this web site and be up to date daily.

  7. Khiana says:

    Hi there everyone, it’s my first pay a quick visit at this web page,
    and post is really fruitful for me, keep up posting
    these articles or reviews.

  8. Shirlee says:

    Thanks for your marvelous posting! I seriously enjoyed reading it, you might be a great author.
    I will be sure to bookmark your blog and definitely
    will come back in the future. I want to encourage yourself to continue your great job, have a nice holiday weekend!

  9. Benigno says:

    I’m amazed, I have to admit. Seldom do I encounter a blog
    that’s both equally educative and interesting, and let me
    tell you, you’ve hit the nail on the head. The issue is something not enough men and women are speaking intelligently
    about. Now i’m very happy that I stumbled across
    this during my search for something relating to this.

  10. Synthia says:

    Amazing! Its truly awesome piece of writing, I have got much clear idea about from this paragraph.

  11. Alyse says:

    With havin so much content do you ever run into any problems
    of plagorism or copyright infringement? My website has a lot of
    unique content I’ve either created myself or outsourced but it appears a lot of it
    is popping it up all over the internet without my
    permission. Do you know any solutions to help prevent content from being ripped off?

    I’d genuinely appreciate it.

  12. Rafi says:

    Nice post. I was checking continuously this weblog and I am
    impressed! Extremely useful information particularly the
    remaining part 🙂 I deal with such info much. I was
    seeking this particular info for a very lengthy time. Thanks and good luck.

  13. Nakea says:

    Appreciating the dedication you put into your site and detailed information you provide.

    It’s nice to come across a blog every once in a while
    that isn’t the same old rehashed material. Excellent read!
    I’ve saved your site and I’m including your RSS feeds to my Google account.

  14. Farhan says:

    Pretty! This was an incredibly wonderful article. Thank you for providing this info.

  15. Jenipher says:

    Wow, this post is fastidious, my sister is analyzing these
    things, thus I am going to let know her.

  16. Elasmo says:

    This script is almost perfect for my weapon system, but I’m encountering an interesting problem. I want to have some weapons still inflict a single damage type, but choose that type (from 2 choices) based on what will be most effective against the enemy. Without using scripts at all, this seems to be what the system does if you attach multiple attack elements to a weapon. However, while using this script, I haven’t been able to duplicate that effect. Using the notetags makes the damage divide between the elements, and having no notetag at all seems to make the damage ignore elemental resistances altogether. I’m fairly new to this; am I missing something obvious?

    • Hime says:

      Sounds like there’s a bug. If there are no note-tags, then it should default to just picking the one that deals the most damage.

  17. Bright_Shield says:

    Wanted to verify something I read in the file.

    If a skill is notetagged:
    attack element: water 1
    and the actor has, say, a fire sword that is notetagged:
    attack element: fire .45
    attack element: normal .55

    Then I should see 100% water damage, correct?

    IF SO:
    Now assuming I had a skill that was:
    attack element: water .5
    attack element: normal .5
    and the actor has the same fire sword that is notetagged:
    attack element: fire .45
    attack element: normal .55

    then would the skill do 50% water, and something like 22.5% fire 27.5% normal, (half of the weapon stats) if my math is right?

    • Hime says:

      "Normal" is not an element and is treated as a special case. This script does not provide the ability to mix skill atk element and weapon atk elements. It is either "skill elements" or "user elements".

  18. Matthew says:

    Is it possible to set a notetag for the 'Normal Attack' element?

  19. Allusion says:

    This is a great script, Hime! You wouldn’t believe how greatly this helps my game, which is 99.9% focused on elements. Thank you! 😀

  20. halrawk says:

    Quick question on this, does the element drop down box matter at all when using these notetags?

    Eg. if skill is set to water element, then note tagged

    Will it still do any water element damage? Or will the notetags overwrite the water element?

    • halrawk says:

      Oops, that should read:

      Eg. if skill is set to water element, then note tagged
      attack element: fire 0.7
      attack element: earth 0.3

      Will it still do any water element damage? Or will the notetags overwrite the water element?

  1. March 2, 2014

    […] Attack Element Modifiers script has been updated to support all database objects that supports features. This includes […]

Leave a Reply

Your email address will not be published. Required fields are marked *