-
Notifications
You must be signed in to change notification settings - Fork 0
ReloadWeapon.js
Allows players to reload their weapons, not by the name of the ammo attribute but by the name of the weapon that created the ammo attribute.
!Reload <weapon phrase> (Players and GM)
Uses the weapon phrase to search your attributes for one beginning with "Ammo - " while the rest of the attribute's name must match the weapon phrase. See MatchingObjs.js.
If no Ammo attribute is found, the user will be informed that a clip for that weapon doesn't exist yet.
If too many clips match (such as trying to reload your bolter when you have an Astartes Heavy Bolter and an Astartes Godwyn Bolter), you will be asked to pick one.
Otherwise the Ammo attribute will use AttributeHandler.js to set it to its max value. It will not look up what the Weapon thinks its max value should be, so you can make custom clip sizes and this API Command will not care.
!Reload all (Players and GM)
Will delete every Clip Attribute and Local Clip Attribute (see LocalAttributes.js) the selected token has.