Hello !
I've added a Training Bow to increase the archery skill during quiet nights.
The training Bow uses training arrows which I added
It's working as intended but I have 2 issues with it.
The 1st one is that it still does 1 damage to players and blocks, when I would want it to do no damage at all.
I'm not sure if it's doable as you have to hit something to gain exp on archery (I tried to set Velocity, Gravity and Lifetime to 0 but no exp).
Here is what I have fore those :
[*]Training Bow
[*]Training Arrow :
Second thing is I can't have a good name and description for it.
Training bow says "WOODENTRAININGBOW" and training arrow says "TRAININGARROW".
I've tried to add it into the Localization.txt but didn't seem to work.
If anyone has any clue how to help me
I've added a Training Bow to increase the archery skill during quiet nights.
The training Bow uses training arrows which I added
It's working as intended but I have 2 issues with it.
The 1st one is that it still does 1 damage to players and blocks, when I would want it to do no damage at all.
I'm not sure if it's doable as you have to hit something to gain exp on archery (I tried to set Velocity, Gravity and Lifetime to 0 but no exp).
Here is what I have fore those :
[*]Training Bow
Code:
<item id="2001" name="woodenTrainingBow">
<property name="Meshfile" value="Items/Weapons/Ranged/Bows/WoodenBow/WoodenBowPrefab"/>
<property name="Material" value="wood"/>
<property name="RepairTools" value="wood"/>
<property name="HoldType" value="27"/> <!-- "Sway Off" is hardcoded for hold types 26, 27, 53 -->
<property name="FuelValue" value="0"/>
<property name="EconomicValue" value="0"/>
<property name="EconomicBundleSize" value="1"/>
<property name="SellableToTrader" value="false"/>
<property name="DegradationBreaksAfter" value="false"/>
<property name="SoundJammed" value="ItemNeedsRepair"/>
<property name="SoundDestroy" value="wooddestroy1"/>
<property name="CrosshairOnAim" value="false"/> <!-- aimTest -->
<property name="CrosshairUpAfterShot" value="false"/>
<property class="Action0"> <!-- AttackAction -->
<property name="Class" value="Catapult"/>
<!-- Catapult might not be the best name for it but it can also be used for a slingshot -->
<property name="Hitmask_override" value="Arrow"/>
<property name="Delay" value="1"/>
<property name="Crosshair_min_distance" value="30"/> <!-- 30 -->
<property name="Crosshair_max_distance" value="30"/> <!-- 30 -->
<property name="Magazine_size" value="1"/>
<property name="Magazine_items" value="trainingArrow"/>
<property name="Rays_spread" value="0.017"/>
<property name="Reload_time" value="0.9"/>
<property name="Bullet_icon" value="uzi"/>
<property name="Sound_start" value="bow_fire"/>
<property name="Sound_repeat" value=""/>
<property name="Sound_end" value=""/>
<property name="Sound_empty" value="weapon_empty"/>
<property name="Sound_reload" value="bow_reload"/>
<property name="Sound_draw" value="bow_draw"/>
<property name="Sound_cancel" value="bow_fire_cancel"/>
<property name="Particles_muzzle_fire" value="nozzleflashuzi"/>
<property name="Particles_muzzle_smoke" value="nozzlesmokeuzi"/>
<property name="Max_strain_time" value="0.5"/>
<!-- ammunition can override Exp values-->
<property name="ActionExp" value="5"/>
<property name="ActionExpBonusMultiplier" value="5"/>
</property>
<property class="Action1"> <!-- UseAction -->
<property name="Class" value="Zoom"/>
<property name="Zoom_max_out" value="45"/>
<property name="Zoom_max_in" value="45"/>
</property>
<property name="Group" value="Ammo/Weapons,Basics"/>
<property class="Attributes">
<property name="DegradationRate" value="0,0"/>
<property name="DegradationMax" value="1,1"/>
</property>
<property name="ActionSkillGroup" value="Archery"/>
<property name="CraftingSkillGroup" value="craftSkillWeapons"/>
<property name="RepairExpMultiplier" value="5.5"/>
<property name="PickupJournalEntry" value="alternateAmmoTip"/>
<property name="CustomIcon" value="woodenBow" />
<property name="CustomIconTint" value="fad10b"/>
</item>
Code:
<item id="2002" name="trainingArrow">
<property name="Meshfile" value="Items/Weapons/Ranged/Bows/WoodenBow/Arrow"/>
<property name="DropMeshfile" value="Items/Misc/arrow_dropped"/>
<property name="HandMeshfile" value="Items/Misc/arrow_hand"/>
<property name="HoldType" value="32"/>
<property name="Material" value="paper"/>
<property name="Stacknumber" value="250"/> <!-- STK ammo -->
<property name="FuelValue" value="0"/>
<property name="EconomicValue" value="0"/>
<property name="EconomicBundleSize" value="5"/>
<property class="Action1">
<property name="Class" value="Projectile"/>
<property name="Explosion.ParticleIndex" value="0"/> <!-- no expl. -->
<property name="Velocity" value="47"/>
<property name="FlyTime" value="0"/>
<property name="Gravity" value="-4.7"/>
<property name="LifeTime" value="12"/>
<property name="DamageBonus.head" value="0"/>
<property name="DamageBonus.glass" value="0"/>
<property name="DamageBonus.wood" value="0"/>
<property name="DamageBonus.earth" value="0"/>
<property name="DamageBonus.metal" value="0"/>
<property name="DamageBonus.cloth" value="0"/>
</property>
<property name="Group" value="Ammo/Weapons,Basics"/>
<property class="Attributes">
<property name="GetQualityFromWeapon" value="true"/>
<property name="EntityDamage" value="0,0"/>
<property name="BlockDamage" value="0,0"/>
</property>
<property name="CraftingSkillGroup" value="craftSkillWeapons"/>
<property name="CustomIcon" value="ironArrow" />
<property name="CustomIconTint" value="fad10b"/>
</item>
Training bow says "WOODENTRAININGBOW" and training arrow says "TRAININGARROW".
I've tried to add it into the Localization.txt but didn't seem to work.
Code:
woodenTrainingBow,items,Gun,KgNone,Wooden Training Bow,"Arc en bois d'entraînement",Training Holzbogen,,Training Arco de madera
woodenTrainingBowDesc,items,Gun,EnChanged GrChanged,"Used for training archery. Uses training arrows for ammunition. Do not try to kill anything with it.","Un arc en bois. Idéal pour l'entraînement à l'archerie. Requiert des flèches d'entraînement comme munitions. Ne pas essayer de tuer Lyeos avec","Training Bow",,Training Bow
trainingArrow,items,Ammo,EnChanged,Training Arrow (Ammo),"Flèche en fer d'entraînement",Training Eisenpfeil (Mun),,Training Flecha de hierro
trainingArrowDesc,items,Ammo,KgNone,A stone arrow used for practicing archery. Only used with a training bow.,"Une flèche en pierre servant à l'entraînement à l'arc. Ne s'utilise que sur un Arc d'entraînement",Training Arrow,,Training Arrow
