MF99K Posted October 26, 2015 Share Posted October 26, 2015 I really can't speak computer, I've never programmed before at all so I'm kinda lost. I think I've gotten two of my character perks to work but I need help with the last one I want it so that the character can befriend anything, even hounds and such. I'd also like to make a mod that involves a hat that has storage capabilities if that's possible as well thanks in advance for any and all help Link to comment Share on other sites More sharing options...
Mobbstar Posted October 26, 2015 Share Posted October 26, 2015 Befriend how? There's a mod called "The Heir" that does this, but maybe not in the fashion you imagined. As for the hatpack, it sounds a lot like a backpack for coding, though you probably have to move the widget (the inventory interface) a bit. Link to comment Share on other sites More sharing options...
MF99K Posted October 26, 2015 Author Share Posted October 26, 2015 Befriend how? There's a mod called "The Heir" that does this, but maybe not in the fashion you imagined. As for the hatpack, it sounds a lot like a backpack for coding, though you probably have to move the widget (the inventory interface) a bit.alright, so how would coding for the backpack hat-thing work then? Link to comment Share on other sites More sharing options...
Arkathorn Posted October 26, 2015 Share Posted October 26, 2015 You should be able to mostly just copy the code used for the backpack. However make sure that you change anything that references the backpack to reference the hat, and anything that references the torso slot to reference the head slot. You will also need to find and edit the values that determine the position of the widget (The graphical interface that holds the backpack's slots). You may also want to figure out a way to use the chest's widget instead, depending on how much storage you want the hat to have. Link to comment Share on other sites More sharing options...
MF99K Posted October 28, 2015 Author Share Posted October 28, 2015 You should be able to mostly just copy the code used for the backpack. However make sure that you change anything that references the backpack to reference the hat, and anything that references the torso slot to reference the head slot. You will also need to find and edit the values that determine the position of the widget (The graphical interface that holds the backpack's slots). You may also want to figure out a way to use the chest's widget instead, depending on how much storage you want the hat to have.could you give me an example as to what the coding would look like? Link to comment Share on other sites More sharing options...
pickleplayer Posted October 28, 2015 Share Posted October 28, 2015 could you give me an example as to what the coding would look like? Take a look through the game files, it's the best way to learn!Find the backpack.lua file in the prefabs folder, and the hat prefab as well. Study them to see how they work and try implementing the same thing into your mod with slightly edited code to see what happens.You can look at other people's mods too, it's not cheating! Do you know where to find the game's files? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.