LDP Critical

Last Updated: 2012.02.12
Download Link
Github Link

This is a script for Lunatic Damage Package with critical themed formulas. Critical hits here can be triggered with various guarantees or increased chances depending on circumstances.

Install this script under YEA – Lunatic Damage. Then, proceed to use the proper effects notetags to apply the proper LDP Critical item desired. Look within the script for more instructions on how to use each effect.

Critical Damage Formula No.1: Attacker HP Crisis

If the attacker strikes while his/her HP is under x%, then the attack will cause a guaranteed critical hit using the normal damage formula.

<custom damage: attacker hp crisis x%>

Critical Damage Formula No.2: Attacker MP Crisis

If the attacker strikes while his/her MP is under x%, then the attack will cause a guaranteed critical hit using the normal damage formula.

<custom damage: attacker mp crisis x%>

Critical Damage Formula No.3: Defender HP Crisis

If the attacker strikes while the defender’s HP is under x%, then the attack will cause a guaranteed critical hit using the normal damage formula.

<custom damage: defender hp crisis x%>

Critical Damage Formula No.4: Defender MP Crisis

If the attacker strikes while the defender’s MP is under x%, then the attack will cause a guaranteed critical hit using the normal damage formula.

<custom damage: defender mp crisis x%>

Critical Damage Formula No.5: High TP Critical

This causes the attack’s critical hit rate to be influenced by how high the attacker’s TP is (relative to the attacker’s MaxTP). Then, the attack will use the normal damage formula.

<custom damage: high tp critical>

Critical Damage Formula No.6: Low TP Critical

This causes the attack’s critical hit rate to be influenced by how low the attacker’s TP is (relative to the attacker’s MaxTP). Then, the attack will use the normal damage formula.

<custom damage: low tp critical>

Critical Damage Formula No.7: Critical Boost

If the attacker lands a critical hit, the damage dealt will have an additional multiplier on top of the critical multiplier. Best used with another damage formula.

<custom damage: critical boost +x%>
<custom damage: critical boost -x%>

Critical Damage Formula No.8: Critical Bonus

If the attacker lands a critical hit, the damage dealt will have an additional bonus added on top of the critical multiplier. Best used with another damage formula.

<custom damage: critical bonus +x>
<custom damage: critical bonus -x>

— And that’s all, folks! —

10 comments on “LDP Critical

  1. I’m curious, fot the tp calculations does the damage calculate before or after tp is spent? It would be very useful for skills that use 100% tp and base their critical rate off of the tp used.

  2. The critical rate formula is a bit off as a 100% boost is read as as something around 315x damage. a 10% Bonus makes a skill with a 10% bonus do around 1700 damage.

    a.atk * 2.5 – b.def * 0.7 is the skills damage formula and it’s tags are
    [one animation]
    [custom damage: normal formula]
    [custom damage: critical boost +100%]
    [learn cost: 100 jp]

    I want to think I’m overlooking something but can’t seem to find it.

  3. This was actually an error on my part as I typo’d on Boost and Bonus.

    v1.01 – Bug Fixed: Typo between Critical Bonus and Critical Boost.

  4. Critical Bonus does really work. It deals null damage to foes when the skill got the tag. I tried chanceing the + to – but then on a critical it healed the foe.

    The skill’s damage formule: 1 + a.luk * 1.65 – b.def * 1 and tags

    If I remove the tag the Critical bones tag it deals normal damage (on the same foe)

  5. where did the tags go? o.O
    (no cast ani)
    (cooldown: 2)
    (custom damage: critical bonus +38)
    (learn cost: 75 exp)
    (learn require level: 3)

    • I just found out that the critical bonus will be nulled unless it is a critical blow.
      then the damage is normal again.
      I am not really getting it anymore o.O

  6. I just want to make attack command work with attacker hp crisis , I writed

    in the attack’s notebox but it worked only for monsters .
    It didnt work for my heroes.
    please help.

  7. damage flies out the window. I just wanted +50%, with the original crit multiplier changed to 2 from 3.
    But the damage of a certain attack with zero variance and this crit boost flies from 3045 to 15225.
    The formula feels skewed somehow.

    • Found the problem. The critical multiplier applies after the critical boost and stuff.
      Which multiplies the critical boost (and the crit itself) by your standard crit multiplier (default is 3, mine is 2).
      Nonetheless, it’s an embarrassing issue that i can’t fix, because it can’t be fixed without changing one of the parameters called by the function (total_damage already factors crit, which is why the critical boost factors crit twice).

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s