Asagi’s Gun License
This script’s title is nothing but an excuse to post a picture of Asagi. You’re authorized to just call it “Ammo Requirements” because it is exactly what it does: allow your characters to equip ammo and force skills to use said ammo.
Originally, this was supposed to be the Actor Inventory, but after much trial, I thought it was easier to make a completely new script altogether.
This is a standalone script, which doesn’t require Ace Equip Engine nor Skill Cost Manager. This shouldn’t prevent you to use them, though because they’re great scripts. But I digress.
Asagi’s Gun License (lol) has three levels of configuration: Class, Weapon and Skill.
The class notetags:
This determines the slot in the equip screen which will be replaced by the ammo slot. In the Brenda’s example above, the ammo slot replaces the shield, so it is set to 1. Note: if you are using Yanfly’s Ace Equip Engine, and happen to have more than 1 of a specific slot (i.e. 4 accessories), only the first one will be replaced.
Just the name of the slot. ‘Arrows’, ‘Bullets’, ‘Dwarf’, really, whatever you want.
Ammo are considered as weapons. Therefore they have a weapon type. Replace x with the weapon type of the kind of ammo you want to use.
For the example above, the class tab is like this:
Preparing the ammo:
Ammo are weapons and they actually don’t need any notetag. The only requirement is that their weapon type must be the same as the one indicated in the class tab to be useable. Due to their nature as weapons, they can use whatever traits you want them to have, like, for instance, teaching skills only usable with them.
The skill notetags:
Skills must be told that they need ammo. You have two possibilities:
Will require and consume ammo of a specific type.
Will require and consume unique arrows. In this case, x isn’t the weapon type but the weapon ID.
And the corresponding skill tab…
Doesn’t require Ace Equip Engine nor Skill Cost Manager. But is compatible with both. Alternatively you can set up the ammo requirements with Skill Cost Manager alone if you are using it.