User Tools

Site Tools


weapons

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
weapons [2021/10/18 19:01] justinweapons [2021/10/18 19:12] justin
Line 8: Line 8:
 |Attack Animation|If set, this will override the [[character|character's]] attack [[animation]] and play the specified [[animation]] name instead of "attack" (e.g. to play a "throw" animation for a throwing dagger).| |Attack Animation|If set, this will override the [[character|character's]] attack [[animation]] and play the specified [[animation]] name instead of "attack" (e.g. to play a "throw" animation for a throwing dagger).|
 |Ammo/Energy Required|Determines whether or not the weapon requires ammo or energy in order to be used. Refer to the "Consumption Types" table below for a description of each option.| |Ammo/Energy Required|Determines whether or not the weapon requires ammo or energy in order to be used. Refer to the "Consumption Types" table below for a description of each option.|
-|Projectile Speed|Determines how fast the weapon's projectile moves, measured in voxels per second. This setting is only applicable to ranged weapons.|+|Projectile Speed|Determines how fast the weapon's projectile moves, measured in voxels per second. If set to zero, the weapon will hit its target instantly. 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.| |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 [[item]] as stackable so the player can easily carry many at once.| 
-|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's [[inventory]].| +|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's [[inventory]].| 
-|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's [[inventory]].|+|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's [[inventory]].|
  
 =====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 "Object Model" [[item]] property found below the equippable/weapon settings. If the weapon's projectile speed to set to zero (i.e. instant), you won't need an [[object]] model as the weapon will hit its target immediately. 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 "Object Model" [[item]] property found below the equippable/weapon settings. If the weapon's projectile speed to set to zero (i.e. instant), you won't need an [[object]] model as the weapon will hit its target immediately.
  
-Since projectiles are [[object|objects]], their "default" [[animation]] will be played upon entering the scene, if one exists. This can be used, for example, to make a throwing dagger spin as it moves towards its target. To achieve this, you would simply create a spinning [[animation]] for the dagger named "default" and assign it to the "Object Model" property of your weapon (or ammo [[item]] if setting up a ranged weapon that consumes ammo).+Since projectiles are [[object|objects]], their "default" [[animation]] will be played upon entering the scene, if one exists. This can be used, for example, to make a throwing dagger spin as it moves towards its target. To achieve this, you would simply create a spinning [[animation]] for the dagger named "default" and assign its model to the "Object Model" property of your weapon (or ammo [[item]] if setting up a ranged weapon that consumes ammo).
  
-(Info about "projectile" attach point to determine where and when the projectile's model will appears during the character's attack animation)+To control when and where the visual projectile will specifically appear, you can create an [[attach_points|attach point]] named "projectile" on one frame of the [[character|character's]] attack [[animation]] and on the weapon's [[object]] model (or ammo [[item|item's]] [[object]] model if the weapon consumes ammo).
  
 =====Setting Up a Ranged Weapon===== =====Setting Up a Ranged Weapon=====
weapons.txt · Last modified: 2021/10/18 19:35 by justin