G Posted March 7, 2016 Share Posted March 7, 2016 (edited) I want to know how to program/code a custom item I've added, a pencil, to be able to interact with papyrus, to be limited (starts off at 100% and goes down by 10% after each use), adding +10 sanity per use, and to make it a craftable item (recipe : 2 twigs and 1 charcoal). I've been scouting around for a solution to this, but my efforts were in vain. I've already created the art for it in-game, but all my character can do is to drop it and inspect it. Please help. Edited March 7, 2016 by G Link to comment https://forums.kleientertainment.com/forums/topic/65200-how-do-i-program-my-custom-item/ Share on other sites More sharing options...
HatefulGravey Posted March 7, 2016 Share Posted March 7, 2016 http://forums.kleientertainment.com/forum/88-tutorials-guides/ There are a few handy guides in the tutorials and guides part of the forum. They can help you to understand the basic ideas once you look at them for a while. The thing that has helped me the most is reading the code for other items in the game. This takes some time, but has helped me understand how to change the way the game works more than anything else has. Beyond that, you mention you can drop it and insect it, what work do you already have done? Some code must exist to make the pencil show up in the game. Lets start with what you have and maybe you are closer to what you want than you think you are. Link to comment https://forums.kleientertainment.com/forums/topic/65200-how-do-i-program-my-custom-item/#findComment-730972 Share on other sites More sharing options...
Arkathorn Posted March 8, 2016 Share Posted March 8, 2016 This tutorial would be your best bet for learning what you need. Link to comment https://forums.kleientertainment.com/forums/topic/65200-how-do-i-program-my-custom-item/#findComment-730988 Share on other sites More sharing options...
HatefulGravey Posted March 8, 2016 Share Posted March 8, 2016 @Arkathorn the code on that post, and many others now that I think about it, displays in a screwy way on my computer. Am I the only one? Any suggestions that might make the code look a little more standard? Link to comment https://forums.kleientertainment.com/forums/topic/65200-how-do-i-program-my-custom-item/#findComment-730991 Share on other sites More sharing options...
G Posted March 8, 2016 Author Share Posted March 8, 2016 @Arkathorn Is it possible if there were a more simpler way of telling? plus, I never needed it to be a handslot item anyways. I needed it to interact with papyrus and make you gain 10 sanity per use. Link to comment https://forums.kleientertainment.com/forums/topic/65200-how-do-i-program-my-custom-item/#findComment-731118 Share on other sites More sharing options...
G Posted March 8, 2016 Author Share Posted March 8, 2016 (edited) @HatefulGravey I've already tried that. Nothing really seemed to have the function I needed. I'm literally 90% to completing this thing. If you want my data for my mod, could you like, tell me how I could do it? Still somewhat new to this place. Edited March 8, 2016 by G Link to comment https://forums.kleientertainment.com/forums/topic/65200-how-do-i-program-my-custom-item/#findComment-731150 Share on other sites More sharing options...
Arkathorn Posted March 8, 2016 Share Posted March 8, 2016 @HatefulGravey Yeah, it's messed up for me too. The forums have gone through a few changes, it probably messed up the formatting. Your objective is kind of complex. Try looking into actions, and adding one for your pencil. Also, check this mod out. Link to comment https://forums.kleientertainment.com/forums/topic/65200-how-do-i-program-my-custom-item/#findComment-731161 Share on other sites More sharing options...
G Posted March 8, 2016 Author Share Posted March 8, 2016 (edited) @Arkathorn Thank you! I had only found so little in the mod, sadly, but I appreciate it though. I had just downloaded the mod for the time being, though I feel not all functions will be of use for MY prefab. Again, thank you so much. Edited March 8, 2016 by G Link to comment https://forums.kleientertainment.com/forums/topic/65200-how-do-i-program-my-custom-item/#findComment-731190 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now