Osgoode Posted October 12, 2012 Share Posted October 12, 2012 I'm trying to make an inventory item that converts one item into another (more specifically, charcoal into diamonds). Problem is I can't script worth a damn, so if anyone is willing to make me a basic script I would greatly, greatly appreciate it. The script needs to do the following upon clicking the scripted item in the player's inventory. 1. Display a message. (Do you want to compress 10 charcoal into diamond? Yes. No.)2. If yes, remove a quantity of items from the player's inventory.3. Play a sound. (DING!)4. Display another message. (Compression successful.)5. Add an item to the player's inventory. It would be wonderful if you could make the appropriate variables (items, sound, messages, whatever) modular/replaceable via the script properties menu, so I could reuse the script for something else in the future, but it's not strictly necessary.Just so you know, the mod I am making would be for purely personal use. Even so, if I ever did release a mod with your script you would get full credit. I would NEVER release a mod using someone else's work without their permission or without crediting them. Link to comment Share on other sites More sharing options...
BrabbelKP Posted October 12, 2012 Share Posted October 12, 2012 It would be quite different from your idea, but wouldn't it be easyer to simply add a recipie to the smelter (or make a new crafting-station, could be a placable one, I think there was a mod that had placable crafting-stuff). Link to comment Share on other sites More sharing options...
Osgoode Posted October 12, 2012 Author Share Posted October 12, 2012 It would be much easier. I've made many crafting recipes and they're no trouble to implement. In this case though I'm trying to make a misc item that the player can carry around with them, and a placeable crafting station wouldn't really work for "immersion" (*ugh*) purposes. Link to comment Share on other sites More sharing options...
Recommended Posts