is there a way to make it so that upgrading cargo works in segments?
doing a modded armed transport, and wanted to have the upgrade in 50 ton segments (like 4 different upgrades). starting at like 100 and ending at 300.
cargo hold
-
- Commonwealth Pilot
- Posts: 56
- Joined: Fri Mar 21, 2008 6:06 am
"Darkness makes the sunlight so bright, that our eyes blur with tears. Misery sharpens the edges of our joy. Challenges remind us that we are capable of great things. Life is hard. It is supposed to be."
- Periculi
- Fleet Officer
- Posts: 1282
- Joined: Sat Oct 13, 2007 7:48 pm
- Location: Necroposting in a forum near you
It is very easy!
This is the cargo hold item from Transcendence.xml, the bit you want is contained in the <CargoHoldDevice> tag.
cargoSpace is basically a percent value. 100 = 100% of the max cargo listed for the given ship.
You can make incremental expansions by copying the tag, and making each cargo hold device have a different cargoSpace value:
Look I made the last one a biggy!
Ok, so, now you got all that straight?
Code: Select all
<!-- Cargo Hold Expansion -->
<ItemType UNID="&itCargoHoldExpansion;"
name= "cargo hold expansion"
level= "2"
value= "1000"
mass= "1000"
frequency= "uncommon"
numberAppearing= "1"
modifiers= "MajorItem"
description= "This is a pressurized hold that can be attached to a ship to increase the amount of cargo it can carry."
>
<Image imageID="&rsItems1;" imageX="96" imageY="192" imageWidth="96" imageHeight="96"/>
<CargoHoldDevice
cargoSpace= "100"
/>
</ItemType>
cargoSpace is basically a percent value. 100 = 100% of the max cargo listed for the given ship.
You can make incremental expansions by copying the tag, and making each cargo hold device have a different cargoSpace value:
Code: Select all
<!-- Cargo Hold Expansions -->
<ItemType UNID="&itCargoHoldExpansion10;"
name= "cargo hold expansion"
level= "2"
value= "1000"
mass= "1000"
frequency= "uncommon"
numberAppearing= "1"
modifiers= "MajorItem"
description= "This is a pressurized hold that can be attached to a ship to increase the amount of cargo it can carry."
>
<Image imageID="&rsItems1;" imageX="96" imageY="192" imageWidth="96" imageHeight="96"/>
<CargoHoldDevice
cargoSpace= "10"
/>
</ItemType>
<ItemType UNID="&itCargoHoldExpansion25;"
name= "cargo hold expansion"
level= "2"
value= "1000"
mass= "1000"
frequency= "uncommon"
numberAppearing= "1"
modifiers= "MajorItem"
description= "This is a pressurized hold that can be attached to a ship to increase the amount of cargo it can carry."
>
<Image imageID="&rsItems1;" imageX="96" imageY="192" imageWidth="96" imageHeight="96"/>
<CargoHoldDevice
cargoSpace= "25"
/>
</ItemType>
<ItemType UNID="&itCargoHoldExpansion500;"
name= "cargo hold expansion"
level= "2"
value= "1000"
mass= "1000"
frequency= "uncommon"
numberAppearing= "1"
modifiers= "MajorItem"
description= "This is a pressurized hold that can be attached to a ship to increase the amount of cargo it can carry."
>
<Image imageID="&rsItems1;" imageX="96" imageY="192" imageWidth="96" imageHeight="96"/>
<CargoHoldDevice
cargoSpace= "500"
/>
</ItemType>
Look I made the last one a biggy!
Ok, so, now you got all that straight?
-
- Commonwealth Pilot
- Posts: 56
- Joined: Fri Mar 21, 2008 6:06 am
oh sweet
thanks .. *nods* makes sense

"Darkness makes the sunlight so bright, that our eyes blur with tears. Misery sharpens the edges of our joy. Challenges remind us that we are capable of great things. Life is hard. It is supposed to be."
- Periculi
- Fleet Officer
- Posts: 1282
- Joined: Sat Oct 13, 2007 7:48 pm
- Location: Necroposting in a forum near you
hmm... I might have to go see about that one! I used to use virtual devices for that type of thing- I had a great little 'tribbles' trap that slowly filled your cargo space with Star Trek style furry cutenesses...