A downloadable asset pack

Download NowName your own price


Free to use simple weapon damage plugin. No maths requires.

Put this on weapons:

 <WeaponDamage: min - max>

 <WeaponDamage: min - max, elementId>

Example:  <WeaponDamage: 10 - 20, 3>

---------------------------------------------------------------------------------------

Helpers that can be used in damage formulas:

 a.weaponHasDamage()   // true/false

 a.weaponMinDmg()      // minimum damage

 a.weaponMaxDmg()      // maximum damage

 a.weaponAvgDmg()      // (min + max) / 2

 a.weaponRollDmg()     // random number between min–max

 a.weaponElementId()   // element ID from notetag (or 0)

Examples:

a.weaponRollDmg()                 // pure weapon roll

 a.weaponRollDmg() + a.atk         // weapon roll + ATK

a.weaponAvgDmg() * 1.5            // stronger skill

 a.weaponRollDmg(0) + a.weaponRollDmg(1)  // dual-wield

a.weaponHasDamage() ? a.weaponRollDmg() : a.atk

---------------------------------------------------------------------------------------

Support for Dual Wielding:

All helpers can take a slot index:

 0 = main-hand weapon (default)

 1 = off-hand (dual-wield)

Example:

 a.weaponMinDmg(1)   // off-hand weapon

---------------------------------------------------------------------------------------

License - MIT

Published 20 hours ago
StatusReleased
CategoryAssets
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorDOLGRIM

Download

Download NowName your own price

Click download now to get access to the following files:

DOL_WeaponDamageMZ[Gnome Version].7z 1.4 kB

Development log

Leave a comment

Log in with itch.io to leave a comment.