An area for discussing new ideas and additions to Oolite.
Moderators: winston , another_commander
Galileo
Dangerous
Posts: 103 Joined: Tue Nov 15, 2005 1:55 am
Location: Tasmania, Australia
Post
by Galileo » Sun Apr 23, 2006 4:34 am
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.
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.
Eat talking tree, food blenders!
Galileo
Dangerous
Posts: 103 Joined: Tue Nov 15, 2005 1:55 am
Location: Tasmania, Australia
Post
by Galileo » Mon Apr 24, 2006 1:11 pm
Not even worth a single reply?
Eat talking tree, food blenders!
aegidian
Master and Commander
Posts: 1161 Joined: Thu May 20, 2004 10:46 pm
Location: London UK
Contact:
Post
by aegidian » Mon Apr 24, 2006 2:14 pm
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.
winston
Pirate
Posts: 731 Joined: Mon Sep 27, 2004 10:21 pm
Location: Port St. Mary, Isle of Man
Contact:
Post
by winston » Mon Apr 24, 2006 10:02 pm
As Master and Commander, I thought you didn't actually need to breathe? Or was that some other overlord