Editing the value of arrows

Users who are viewing this thread

ArneHD

Recruit
Hi, I've edited the size of quivers and wanted to edit their price so they weren't too wild. However, try as I might, I can't figure out how/where arrow prices are listed. Could you help me out.
 
In M&B2 every item have it's price calculated depending on it's uncapped tier. And the tier is calculated depending on the stats of the item.

You can change this by changing "DefaultItemValueModel" value class or by making your own.

Actually there are a few prices that are complete non sense because of how a tier is calculated, for arrows and quiver it's simply damage + quantity -20 if i remember correctly and the price is something like 3^tier*100 leading to serious nonsense and really exponential prices for items of higher tiers, meaning in the case of bolts/quiver you can have a stack of 60 arrows costing more than an armor plate.
 
Upvote 0
Actually you don’t need to rely on the auto calculated value.
You can override it by adding the line:
value="17000" for example

It needs to be in the section anywhere after the id in your xml file for that item but before Itemcomponent like this:

FOR EXAMPLE:

<Item id="MYarrows01"
name="{=}My Arrows"
body_name="bo_capsule_arrow"
holster_body_name="bo_axe_short"
mesh="arrow_bl_g"
holster_mesh="arrow_bl_g_quiver"
holster_mesh_with_weapon="arrow_bl_g_quiver"
subtype="arrows"
flying_mesh="arrow_bl_flying"
weight="0.06"
difficulty="0"
appearance="1"
Type="Arrows"
value="17000"
item_holsters="quiver_back_top:quiver_back_top_2"
holster_position_shift="0,0,0.15"
is_merchandise="true">

<ItemComponent>
<Weapon weapon_class="Arrow"
stack_amount="50"
thrust_speed="0"
speed_rating="0"
physics_material="missile"
missile_speed="10"
weapon_length="97"
thrust_damage="90"
thrust_damage_type="Pierce"
item_usage="arrow_top"
passby_sound_code="event:/mission/combat/missile/passby"
rotation="0, -80, 25"
sticking_position="0,-0.97,0"
sticking_rotation="90,0,0"
center_of_mass="0,0.0,-0.13">
<WeaponFlags Consumable="true"
AmmoSticksWhenShot="true"
AmmoBreaksOnBounceBack="true" />
</Weapon>
</ItemComponent>
<Flags />
</Item>
 
Upvote 0
How did you edit the size/amount of quivers? i change the stack amount but the game crashes am i missing something?
 
Upvote 0
Back
Top Bottom