Weapon Extensions (ammunition) - KageDesu/Alpha-ABS-Z GitHub Wiki

⚠️ Information actual for version 0.9 and above

You can create weapons that can load into itself different items as extension for Attack skill. It's can be used as powerup for weapon or as ammunition (like arrows for Bow)

weaponExtExample

If weapon support extensions, you will see Slot Icon near weapon icon (by default)

weaponExtIcon

How create weapon that supports Extensions

Add next block to weapon Note section:

<AAExt>
extensions:X,X..
extensionRequire:Z
extensionConsume:Z
</AAExt>

Where: extensions - Items ID's that can be used as extension for this weapon (can be one, or many separated by comma)

extensionRequire - if 1 - you can't use weapon without at least one extension activated, 0 - you can use weapon without extensions (if you need create weapon that require some ammunition, like bow uses arrows, then use 1)

extensionConsume - if 1 - with every weapon usage extension item will be consumed (by 1), 0 - not

Example for Bow (require arrows for shoot):
weaponExtBowDefinition
(you can find it in Demo project)

Example for Sword (extensions are optional):
weaponExtSwordDefinition


How create extension items

  1. If you want create item only as ammunition, without change any Attack skill (or weapon skill) parameters, just add <AAExt> to Note section

weaponExtItemNOte

  1. If you want modify Attack skill (or weapon skill) with extension, use block
<AAExt>
...any ABS parameter for skills
</AAExt>

Extension parameters will be replace Attack skill parameters (only when extension is active)
All available ABS parameters you can find here: ABS Skills Settings

weaponExtModExampleNote


Visual element configuration

Edit file data/AABSZ/WeaponSkillExtensionSlot.json (open with any text editor).


Examples

Sword that can use multiple target damage extension and fire extension

swordExample

Different types of arrows for Bow

Explosive:
explosiveArrow

Heavy: (knockback target)
heavyArrow

Pierce:
pierceArrow

⚠️ All this examples you can find in Demo Project


⚠️ **GitHub.com Fallback** ⚠️