-
Notifications
You must be signed in to change notification settings - Fork 2
ItemCollections
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
first line - ItemCollection Name and options(used for career reward, so empty for shops)
next line - item descriptions
- ItemsName
- ItemType, can be
Weapon
JumpJet
AmmunitionBox
HeatSink
Upgrade
Mech
MechPart
Reference
- Count - how many of this items add to shop. 0 - infinity. For Reference - how many items take from linked file
- Weight - Rarity of item for reference. Bigger value - more common item, ignored on reference line
Must be empty. And no more than one empty line, or we get parser error
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