<RetVar> = The command return will be stored in this variable.
<Var/Ware> = The ware that you want the transport class of.
Returns the transports class or size of <Var/Ware>.
'Class' is refered to as a 'Container' size.
Wares come in a variety of classes, from Tiny to Extra Large and Station.
<RetVar> will be the 'long version' of the transport class, for example, 'Small Container' rather than the abbreviated version, 'S'.
Examples:
$ware = Energy cells
$transport.class = get transport class of ware $ware
In this case $transport.class will be 'Small Container'.
-------------------------------------------------------------------------------------
It is not alway convenient to have the 'long' version displayed in a menu. The 'abbreviated' version is available by using the following code.
$transport.class = get transport class of ware $ware
$transport.class.abbreviation = read text: page = 1999 id= $transport.class
('Extra Large Containers XL' becomes 'XL' etc)
(page 1999 is a stock Egosoft page file)
Additional Information:
- Transport classes used ingame are;
Code: Select all
Transport Class: Abbreviation: Tiny Containers - Small Containers S Medium Containers M Large Containers L Extra Large Containers XL Station Containers ST
- »» Trade Commands
<RetVar> = get transport class of ware <Var/Ware>