Skip to content

ItemCollections

Denadan edited this page Dec 22, 2018 · 3 revisions

ItemCollections - Battletech 1.3 way to populate shops. It is csv file with list of items or links to other lists

for example

itemCollection_Upgrades_SLDF,,,
Gear_Actuator_Coventry_Alpha,Upgrade,1,5
Gear_Actuator_Friedhof_Cronos,Upgrade,1,5
Gear_Cockpit_Majesty_M_M_MagestrixAlpha,Upgrade,1,4
Gear_Cockpit_StarCorps_Dalban,Upgrade,1,4
Gear_Gyro_Hermes_Equilibrium,Upgrade,1,3
Gear_TargetingTrackingSystem_RCA_InstaTrac-XII,Upgrade,1,2
Gear_TargetingTrackingSystem_Hartford_S2000,Upgrade,1,2
Gear_TargetingTrackingSystem_Kallon_Lock-On,Upgrade,1,2
Gear_HeatSink_Generic_Double,HeatSink,1,1

Format

first line - ItemCollection Name and options(used for career reward, so empty for shops)

Item Format

next line - item descriptions

  1. ItemsName
  2. ItemType, can be
Weapon
JumpJet
AmmunitionBox
HeatSink
Upgrade
Mech
MechPart
Reference
  1. Count - how many of this items add to shop. 0 - infinity. For Reference - how many items take from linked file
  2. Weight - Rarity of item for reference. Bigger value - more common item, ignored on reference line

Last Line

Must be empty. And no more than one empty line, or we get parser error

Reference

Reference is a way to link other list and randomize its content. How it Work, for example

itemCollection_SLDF,,,
itemCollection_Upgrades_SLDF,Reference,5,1

this mean - "take 5 random items from itemCollection_Weapons_Liao_uncommon" and put it in result list. Chance of item will be selected defined by it Weight attribute. For example according ItemCollection at start of article Gear_HeatSink_Generic_Double have rarity 1 so it have twice less chance to appear then Gear_TargetingTrackingSystem_Hartford_S2000 with rarity 2 or five time less then Gear_Actuator_Coventry_Alpha with rarity 5

Clone this wiki locally