Aluminia Posted July 12, 2016 Share Posted July 12, 2016 Hello people, I would like to get some help with creating a script. I have very little scripting knowledge but I do know some basic logic scripting. Alright, so I want to do is essentially the pack-a-punch machine from Call of Duty Zombies. I've made the asset for it and if you don't know what it does in those games, it basically takes your gun and then gives you an upgraded version at the cost of 5000 points. What I want is basically like that but in my mod at the cost of a weapon and 2000 caps. Let's say the player wants to upgrade the 10mm Submachine gun; they must have the weapon and 2000 caps to go with it to receive their upgraded gun. I want to do this for 10+ weapons from a menu where you select it from. I know the basics; i.e, they must have the gun and the caps, if they don't have the gun, they won't receive the upgrade, therefore nothing happens and an message box pops up to let them know. Same for the lack of caps, and the same for if they have neither conditions. However, if they do, they must have these items removed from their inventory to receive their new gun. Basically it's like the crafting system from Fallout 3 but only two ingredients. Essentially three different conditional statements but I have no idea how to code this and everytime, I get the error save message. As I said before, I want this to be selectable from a menu. You go to the machine, activate it, this menu pops up with like 10+ different options for what gun you want to upgrade, you click one and the above conditional statements happen. Any help would be appreciated and you will be credited. Link to comment Share on other sites More sharing options...
clanky4 Posted July 12, 2016 Share Posted July 12, 2016 You could make this with a workbench recipe. Link to comment Share on other sites More sharing options...
uhmattbravo Posted July 12, 2016 Share Posted July 12, 2016 I was thinking the same thing, but stopped and thought it might've just been skyrim that lets you make new crafting stations. Now that I think about it, robco certified basically has robot crafting stations, and IIRC, that'd be pretty similar to dead money's vending machines. So, while I'm sure this can be done with scripting, it really makes more sense to do it as a sort of workbench. Link to comment Share on other sites More sharing options...
Aluminia Posted July 13, 2016 Author Share Posted July 13, 2016 Alright, a workbench is a good idea. Any idea how to create a unique workbench so only these specific gun recipes can be found on it? Upon making a recipe in the GECK, it asks for what specific bench is used; a workbench, reloading bench, campfire, etc. Anyway I can make my own bench to fit in that menu? Link to comment Share on other sites More sharing options...
SGTbayk47 Posted July 13, 2016 Share Posted July 13, 2016 I think you can add your own workbench categories, but I've never tried it myself. Find the Recipe Category tab under Miscellaneous in the GECK and have a poke around in there. Link to comment Share on other sites More sharing options...
Aluminia Posted July 13, 2016 Author Share Posted July 13, 2016 SGTbayk47, thank you, that worked perfectly! Link to comment Share on other sites More sharing options...
Recommended Posts