This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
weapons [2021/10/18 18:36] – justin | weapons [2021/10/18 19:35] (current) – justin | ||
---|---|---|---|
Line 8: | Line 8: | ||
|Attack Animation|If set, this will override the [[character|character' | |Attack Animation|If set, this will override the [[character|character' | ||
|Ammo/ | |Ammo/ | ||
- | |Projectile Speed|Determines how fast the weapon' | + | |Projectile Speed|Determines how fast the weapon' |
|Minimum Range|Determines the minimum distance (in [[tile|tiles]]) required between the [[character]] and target [[entity]] in order to use the weapon. A value of 1 indicates that the weapon can be used from adjacent [[tile|tiles]]. This setting is only applicable to ranged weapons.| | |Minimum Range|Determines the minimum distance (in [[tile|tiles]]) required between the [[character]] and target [[entity]] in order to use the weapon. A value of 1 indicates that the weapon can be used from adjacent [[tile|tiles]]. This setting is only applicable to ranged weapons.| | ||
|Maximum Range|Determines the maximum distance (in [[tile|tiles]]) between the [[character]] and target [[entity]] from which the weapon can be used. This setting is only applicable to ranged weapons.| | |Maximum Range|Determines the maximum distance (in [[tile|tiles]]) between the [[character]] and target [[entity]] from which the weapon can be used. This setting is only applicable to ranged weapons.| | ||
Line 15: | Line 15: | ||
^Type^Description^ | ^Type^Description^ | ||
|None (Unlimited Use)|Weapon can be used an unlimited number of times (e.g. a sword).| | |None (Unlimited Use)|Weapon can be used an unlimited number of times (e.g. a sword).| | ||
- | |None (Single Use)|Weapon is consumed on use (e.g. a throwing dagger). For this type, you would typically want to set the weapon item as stackable so the player can easily carry many at once.| | + | |None (Single Use)|Weapon is consumed on use (e.g. a throwing dagger). For this type, you would typically want to set the weapon |
- | |Items by ID|Weapon consumes ammo items on use (e.g. a bow or a gun). The required ammo items are defined by one or more item IDs. The items will be consumed from the player' | + | |Items by ID|Weapon consumes ammo [[item|items]] on use (e.g. a bow or a gun). The required ammo [[item|items]] are defined by one or more [[item]] IDs. The [[item|items]] will be consumed from the player' |
- | |Items by Tag|Weapon consumes ammo items on use (e.g. a bow or a gun). The required ammo items are defined by one or more item tags. The items will be consumed from the player' | + | |Items by Tag|Weapon consumes ammo [[item|items]] on use (e.g. a bow or a gun). The required ammo [[item|items]] are defined by one or more [[item]] tags. The [[item|items]] will be consumed from the player' |
=====Projectiles===== | =====Projectiles===== | ||
In order for a ranged weapon to generate a visual projectile when used (e.g. an arrow, bullet, spinning dagger, etc.), you will need to make use of the " | In order for a ranged weapon to generate a visual projectile when used (e.g. an arrow, bullet, spinning dagger, etc.), you will need to make use of the " | ||
- | Since projectiles are [[object|objects]], | + | Since projectiles are [[object|objects]], |
- | (Info about " | + | To control |
=====Setting Up a Ranged Weapon===== | =====Setting Up a Ranged Weapon===== | ||
Line 37: | Line 37: | ||
4) If desired, set a custom attack [[animation]] to play for the [[character]] when using the weapon. For example, " | 4) If desired, set a custom attack [[animation]] to play for the [[character]] when using the weapon. For example, " | ||
- | 5) Assign a model to the " | + | 5) Set the projectile speed, minimum distance |
- | - Create at least one ammo item and be sure to add their IDs to the list of ammo item IDs for the weapon item. Assign object model if applicable. You can skip this step if your weapon doesn' | + | 6) Choose |
- | - Create | + | 7) Assign a model to the "Object Model" property of your weapon. As explained in the " |
+ | |||
+ | 8) If your weapon consumes ammo, you'll need to create at least one ammo [[item]], for example an arrow to use with a bow. You can skip this step if your weapon doesn' | ||
+ | |||
+ | 9) Optionally, if your weapon generates projectiles, | ||
~~NOTOC~~ | ~~NOTOC~~ |