Page 1 of 1

Methods for dealing with cargo

Posted: Sun Apr 23, 2006 4:34 am
by Galileo
Just some requests to improve the handling of cargo in scripts:

Changes to existing methods:

Code: Select all

awardSpecialCargo: <amount> <description of cargo>
Awards the specified amount of the specified cargo if it exists in descriptions.plist. This method would require some way to specify the weight of the special cargo.


New methods:

Code: Select all

removeSpecialCargo: <amount> <description of cargo>
Removes the specified amount of the specified special cargo from the players hold. <amount> can include all.

Code: Select all

removeCargo: <amount> <Commodity name>
Removes a quantity of the cargo named the cargo name must match the name in commodities.plist exactly. <amount> can include all.

Code: Select all

testForCargo: <Commodity name>
Returns a value indicating the amount of the named cargo in the player's cargo hold.

Code: Select all

testForSpecialCargo: <description of cargo>
Returns a value indicating the amount of the named cargo in the player's cargo hold.

Posted: Mon Apr 24, 2006 1:11 pm
by Galileo
Not even worth a single reply?

Posted: Mon Apr 24, 2006 2:14 pm
by aegidian
FHS, give me a moment to breathe!

Some of those look eminently sensible - but I don't have the time to make them a *todo* at the moment.

Posted: Mon Apr 24, 2006 10:02 pm
by winston
As Master and Commander, I thought you didn't actually need to breathe? Or was that some other overlord :-)