kurush wrote:-eni- wrote:A realy nice one. Is there any chance to inlcude more details to trade/passenger missions too? An information about how much cargospace is required would be good.
One thing I am not sure is whether I can do any math in the language files, but I assume that probably not. I am also not sure whether there is a macro that gives you the # of cargo units required for one ware of this type. If there is, I can probably put it on the briefing. Otherwise, it would require a modification of the actual MD files and this is something that will be breaking with each new release. For passengers it is always 6 * # of passengers though, seems to be simple enough to calculate without modding. And for wares you can just print yourself a table of their size and then do some math practice
For the Group Passenger Transport Missions (2.130 Generic Group Transport), you can use {
value@L2M130.NeededSpace} for the cargo space needed - from:
Code: Select all
<set_value name="L2M130.NeededSpace" exact="{value@L2M130.Passenger Count}*{lookup.type.cargospace@SS_WARE_PASSENGER}"/>
Number of passengers * passenger cargo space - already in the mission code.
The Cargo Transport Missions (2.116 Cargo Transport - Entertainment Chips etc...), the total space needed isn't calculated until after the briefing is created.
However as each ware has its own individual text, you could add the cargo class - {lookup.type.cargoclass.name@SS_WARE_RWASTE} - {already in radioactive waste briefing) telling the player they need a ship to carry XL cargo. There is also {lookup.type.cargospace@SS_WARE_RWASTE}, which will give the Cargo space per unit of the specified type, as you are already told the number to collect it should be simple maths.