# Weapon

## Creation

To create a weapon, find (or create) the *GameName/Resources/GameName/Item/Equipment* folder (or any subfolder) in the project tab and right click.  Choose *Create > AnyRPG > Inventory > Equipment > Weapon*.

![](https://2976860065-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx7Nd93HqSNPpv2JhrViE%2Fuploads%2F9G7tSq5z5xqkHKgW8C3m%2Fimage.png?alt=media\&token=97f75f4d-d477-45b3-a4c5-65f27ef74775)

## Properties

In addition to the properties shared by all [Equipment](https://docs.anyrpg.org/scriptable-objects/items/equipment), weapons have the following unique properties.

| Name                          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Require Weapon Skill          | If true, the character must have a skill that matches the name in the *Weapon Type* field to use or equip this weapon.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Weapon Type                   | The name of a [Weapon Skill](https://docs.anyrpg.org/scriptable-objects/weapon-skill).  This filled in, the weapon can get some default properties from the skill.  If *Require Weapon Skill* is true, the character will need to know this skill to equip and use the weapon.                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Default Hit Effects           | A list of [Ability Effects](https://docs.anyrpg.org/architecture/ability-system/ability-effects) that will be cast on the target when the weapon does damage from a standard (auto) attack.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| On Hit Effects                | A list of [Ability Effects](https://docs.anyrpg.org/architecture/ability-system/ability-effects) that will be cast on the target when the weapon does damage from any attack, including a standard (auto) attack.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Animation Profile Name        | An [Animation Profile](https://docs.anyrpg.org/scriptable-objects/animation-profile) that can overwrite default animations to match the weapon.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Default Hit Audio Profile     | An [Audio Profile](https://docs.anyrpg.org/scriptable-objects/audio-profile) that contains a link to an audio clip that can be played whenever any physical [Ability](https://docs.anyrpg.org/scriptable-objects/abilities) is cast while this weapon is equipped.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Use Weapon Type Objects       | If true, any objects in the *Ability Animation Object List* and *Ability Object List* from the *Weapon Type* will be shown (held) when using this weapon to perform an attack.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Ability Animation Object List | <p>A list of physical prefabs to attach to the character unit when this weapon is being animated during an attack. This could be arrows, special spell or glow effects, etc.<br><strong>Holdable Object Name</strong><br>The name of a <a href="../prefab-profile">PrefabProfile</a> that contains a link to a GameObject.<br><strong>Use Universal Attachment</strong><br>If true, attachment points from the <a href="../prefab-profile">PrefabProfile</a> will be ignored, and the universal attachment in the <em>Attachment Name</em> field will be used.<br><strong>Attachment Name</strong><br>The <em>Node Name</em> field from one of the <em>Attachment Point Nodes</em> in an <a href="../attachment-profile">Attachment Profile</a>.</p> |
| Ability Object List           | <p>A list of physical prefabs to use when this weapon is being used after the animation phase of an attack. This could be arrows, special spell or glow effects, etc.<br><strong>Holdable Object Name</strong><br>The name of a <a href="../prefab-profile">PrefabProfile</a> that contains a link to a GameObject.<br><strong>Use Universal Attachment</strong><br>If true, attachment points from the <a href="../prefab-profile">PrefabProfile</a> will be ignored, and the universal attachment in the <em>Attachment Name</em> field will be used.<br><strong>Attachment Name</strong><br>The <em>Node Name</em> field from one of the <em>Attachment Point Nodes</em> in an <a href="../attachment-profile">Attachment Profile</a>.</p>        |
| Add Scaled Damage Per Second  | If true, automatic damage per second is added to any attack, based on the item level, item quality, and Weapon DPS Per Second setting in the Game Manager.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| Base Damage Per Second        | Base weapon damage per second, unscaled.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |

## Next Steps

* Configure a [Unit Profile](https://docs.anyrpg.org/scriptable-objects/unit-profile)'s *Equipment Name List* to provide this weapon to newly created characters.
* Configure a [Character Class](https://docs.anyrpg.org/scriptable-objects/character-class)' *Equipment Names* list to provide this weapon to newly created characters of that class.
* Configure a [Character Race](https://docs.anyrpg.org/scriptable-objects/character-race)'s *Equipment Names* list to provide this weapon to newly created characters of that race.
* Configure a [Class Specialization](https://docs.anyrpg.org/scriptable-objects/class-specialization)'s *Equipment Names* list to provide this weapon to a newly created characters of that specialization.
* Add a weapon to a [Loot Table](https://docs.anyrpg.org/scriptable-objects/loot-table) so that it can drop when an enemy is defeated.
* Add a weapon to a [Vendor Collection](https://docs.anyrpg.org/scriptable-objects/vendor-collection) and make it available on a vendor.
* Add a weapon to an [Equipment Set](https://docs.anyrpg.org/scriptable-objects/equipment-set) to give it unique set bonuses when one or more pieces of a set are equipped.
* Add a weapon as an output to a [Recipe](https://docs.anyrpg.org/scriptable-objects/recipe) so that it can be crafted.
