Weapon Extensions (ammunition) - KageDesu/Alpha-ABS-Z GitHub Wiki
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)
If weapon support extensions, you will see Slot Icon near weapon icon (by default)
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):
(you can find it in Demo project)
Example for Sword (extensions are optional):
- If you want create item only as ammunition, without change any Attack skill (or weapon skill) parameters, just add
<AAExt>
to Note section
- 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
Edit file data/AABSZ/WeaponSkillExtensionSlot.json
(open with any text editor).
Sword that can use multiple target damage extension and fire extension
Different types of arrows for Bow
Explosive:
Heavy: (knockback target)
Pierce: