Ore Smelting Device

A place to discuss mods in development and concepts for new mods.
Post Reply
jamieboi2005
Anarchist
Anarchist
Posts: 18
Joined: Thu Feb 09, 2012 8:55 am

I am trying to create a device that will convert Ore into a new item type Ingots. Ideally I would like to have a screen pop up when the device is 'U'sed so that you can pick the type and amount of ore to convert to ingots. If not then it would simply convert all ore of specific types depending on device level into ingots. Example would be to convert 4 tons of Titanium ore, total price 60 credits into 1 ton of Titanium Ingots, total price 65-75 Credits. I need help figuring out which functions to use and how.
sdw195
Militia Captain
Militia Captain
Posts: 779
Joined: Wed Nov 18, 2009 1:01 am
Location: Still looking for the csc Antarctica
Contact:

look at armor patches

Code: Select all

useScreen=	"&dsUseArmorPatch;"
Image
Image
Image
Image
"Dash_Merc - George is a genius, in that he created this game engine that is infinitely extendable"
"<@sheepluva>Good night everybody, may the source be with you." <-- FOSG dev
"You only need THREE tools in life - WD-40 to make things go, Duct Tape to make things stop And C-4 to make things go away"
jamieboi2005
Anarchist
Anarchist
Posts: 18
Joined: Thu Feb 09, 2012 8:55 am

To start with I want to create the simplest version of this mod idea. All it will do at first is convert titanium ore into titanium ingots. To do things I need to do the following things:

1. When 'U'sed the mod needs to determine if there is Titanium Ore(TO) on board the ship.
2. Next if TO is not found send a message saying "No Ore to Smelt"
3. If TO is on board count how much is on board
4. Remove each ton of TO from the ship

Possible Function:(objRemoveItem gPlayerShip (itmCreate &itTitaniumOre; 1))

5. For each ton of TO removed return 1 Titanium ingot

Possible Function:(objAddItem gplayerShip (itmCreate &itTitaniumIngot; 1))

6. Repeat until no more ore is found

Help with choosing functions would be great!
Post Reply