So you want your own awesome bow…

I recently put out a video where I showed you how to mod the xml files to create a new kind of weapon, the composite box, with advanced metal-tipped arrows and a book to learn how to make both. Well here are the step by step instructions on how to add them to your own game.

<!– add these to the bottom  of items.xml, please be sure the item id’s are unique!–>
<item id=”745″ name=”bowCraftingBook”>
<property name=”Meshfile” value=”Items/Misc/Book” />
<property name=”Material” value=”paper” />
<property name=”HoldType” value=”21″ />
<property name=”Stacknumber” value=”50″ />
<property class=”Action1″>
<!– UseAction –>
<property name=”Class” value=”LearnRecipe” />
<property name=”Title” value=”Guide to Advanced Archery” />
<property name=”Description” value=”Learn how to create a composite bow.” />
<property name=”Recipes_to_learn” value=”compositeBow,arrowIron” />
<property name=”Delay” value=”0″ />
<property name=”Sound_start” value=”Misc/recipe_unlocked” />
</property>
<property name=”FuelValue” value=”20″ />
<property name=”Weight” value=”20″ />
<property name=”Group” value=”Special Items” />
<property class=”Preview”>
<property name=”Zoom” value=”10″ />
<property name=”Pos” value=”0,-0.2″ />
<property name=”Rot” value=”90,45,0″ />
</property>
</item>

<item id=”746″ name=”compositeBow”>
<property name=”Meshfile” value=”Items/Weapons/Ranged/Bows/WoodenBow/WoodenBowPrefab” />
<property name=”Stacknumber” value=”1″ />
<property name=”Degradation” value=”500″ param1=”true” /> <!– increased degradation –>
<property name=”RepairTools” value=”leatherStrips” /> <!– added ability to repair –>
<property name=”Material” value=”wood” />
<property name=”HoldType” value=”27″ />
<property name=”FuelValue” value=”34″ />
<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=”Delay” value=”0.2″ />
<property name=”Range” value=”400″ /> <!– increased range –>
<property name=”Magazine_size” value=”1″ />
<property name=”Magazine_item” value=”arrowIron” />
<property name=”Reload_time” value=”.5″ /> <!– same reload speed for now –>
<property name=”Bullet_icon” value=”uzi” />
<property name=”Sound_start” value=”Weapons/Ranged/Bows/Bow/bow_fire” />
<property name=”Sound_repeat” value=”” />
<property name=”Sound_end” value=”” />
<property name=”Sound_empty” value=”Weapons/weapon_empty” />
<property name=”Sound_reload” value=”Weapons/Ranged/Bows/Bow/bow_reload” />
<property name=”Sound_draw” value=”Weapons/Ranged/Bows/Bow/bow_draw” />
<property name=”Sound_cancel” value=”Weapons/Ranged/Bows/Bow/bow_fire_cancel” />
<property name=”Particles_muzzle_fire” value=”nozzleflashuzi” />
<property name=”Particles_muzzle_smoke” value=”nozzlesmokeuzi” />
<property name=”Max_strain_time” value=”.5″ /> <!– lets play with this… –>
</property>
<property class=”Action1″> <!– UseAction –>
<property name=”Class” value=”Zoom” />
<property name=”Zoom_max_out” value=”55″ />
<property name=”Zoom_max_in” value=”35″ />
</property>
<property name=”Group” value=”Ammo/Weapons” />
<property class=”Preview”>
<property name=”Zoom” value=”28″ />
<property name=”Pos” value=”0,-0.05″ />
<property name=”Rot” value=”90,45,0″ />
</property>
</item>

<item id=”747″ name=”arrowIron”>
<property name=”Meshfile” value=”Items/Weapons/Ranged/Bows/WoodenBow/Arrow” />
<property name=”Material” value=”metal” />
<property name=”Stacknumber” value=”250″ />
<property name=”FuelValue” value=”8″ />
<property class=”Action1″> <!– UseAction –>
<property name=”Class” value=”Projectile” />
<property name=”DamageEntity” value=”120″ /> <!– increased from 60 –>
<property name=”DamageBlock” value=”10.4″ /> <!– doubled from 5.2 –>
<property name=”Explosion.ParticleIndex” value=”0″ /> <!– no expl. –>
<property name=”Velocity” value=”500″ /> <!– increased from 400 –>
<property name=”FlyTime” value=”0″ />
<property name=”LifeTime” value=”20″ />
<property name=”Buff” value=”criticalBleedout” />
<property name=”Buff_chance” value=”0.75″ /> <!– increased from .5 –>
<property name=”DamageBonus.head” value=”6″ />
<property name=”DamageBonus.glass” value=”25″ />
<property name=”DamageBonus.wood” value=”0.1″ />
<property name=”DamageBonus.earth” value=”0.1″ />
<property name=”DamageBonus.metal” value=”0.1″ />
<property name=”DamageBonus.cloth” value=”0.5″ />
</property>
<property name=”Group” value=”Ammo/Weapons” />
</item>

<!– add these to recipes.xml –>

<recipe name=”arrowIron” count=”2″ scrapable=”False” craft_time=”10″ craft_exp_gain=”2″ learn_exp_gain=”20″ >
<ingredient name=”scrapIron” count=”1″ grid=”0, -1″ />
<ingredient name=”stick” count=”1″ grid=”0, 0″ />
<ingredient name=”feather” count=”1″ grid=”0, 1″ />
</recipe>

<recipe name=”compositeBow” count=”1″ scrapable=”False” craft_time=”45″ craft_exp_gain=”2″ learn_exp_gain=”20″ >
<ingredient name=”yuccaFibers” count=”1″ grid=”-2, 1″/>
<ingredient name=”yuccaFibers” count=”1″ grid=”-1, 0″/>
<ingredient name=”yuccaFibers” count=”1″ grid=”0, -1″/>
<ingredient name=”yuccaFibers” count=”1″ grid=”1, -2″/>
<ingredient name=”stick” count=”1″ grid=”2, -2″/>
<ingredient name=”stick” count=”1″ grid=”2, -1″/>
<ingredient name=”stick” count=”1″ grid=”1, 0″/>
<ingredient name=”stick” count=”1″ grid=”0, 1″/>
<ingredient name=”stick” count=”1″ grid=”-2, 2″/>
<ingredient name=”stick” count=”1″ grid=”-1, 2″/>
<ingredient name=”femur” count=”1″ grid=”0, 2″/>
<ingredient name=”femur” count=”1″ grid=”1, 1″/>
<ingredient name=”femur” count=”1″ grid=”2, 0″/>
<ingredient name=”leatherStrips” count=”1″ grid=”2, 1″/>
<ingredient name=”leatherStrips” count=”1″ grid=”1, 2″/>
</recipe>

<!– add this to loot.xml under the lootgroup ‘rarebooks’–>
<item name=”bowCraftingBook”/>
 

About

Oldschool gamer. Professional developer by day, gamer by night. I try to keep myself young through lots and lots and lots of game playing. So far I've been successful.

Leave a Reply

more stuf?