Methods for dealing with cargo
Posted: Sun Apr 23, 2006 4:34 am
Just some requests to improve the handling of cargo in scripts:
Changes to existing methods:
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:
Removes the specified amount of the specified special cargo from the players hold. <amount> can include all.
Removes a quantity of the cargo named the cargo name must match the name in commodities.plist exactly. <amount> can include all.
Returns a value indicating the amount of the named cargo in the player's cargo hold.
Returns a value indicating the amount of the named cargo in the player's cargo hold.
Changes to existing methods:
Code: Select all
awardSpecialCargo: <amount> <description of cargo>
New methods:
Code: Select all
removeSpecialCargo: <amount> <description of cargo>
Code: Select all
removeCargo: <amount> <Commodity name>
Code: Select all
testForCargo: <Commodity name>
Code: Select all
testForSpecialCargo: <description of cargo>