Moracalle Posted March 17, 2022 Share Posted March 17, 2022 So, I was able to make my character Solitary her own sprite, but I am completely new to coding and don't know how to start giving her the perks and items that I want to give her. The most I've been told is to reference other mods, but I still don't know how to take bits and pieces and apply it to my own code. I'll read something and be told something references this but still will be completely lost. What I want for my character: Weapon ☆ 1.I want her to have a custom weapon, a baseball bat, that will be given to her upon spawning into the world. 2. I want to be able to craft this item with its own recipe and somehow have it appear in the war tab. 3. I want to be able to edit its damage ----- Sanity 1. Because she's a cat, I want a higher sanity drain for wetness☆ 2. Maybe some kind of sanity penalty for eating meat that is not a crockpot dish, but not sure right now. 3. No sanity drain from ghosts like Wendy☆ --- Mob Neutrality 1. Because she is not human, I would like to know how to make the pigs hostile towards her since she would be seen as a monster ---- Magic Tab/ War tab (Little bit of a reach from basics probably) 1. Still referencing Wendy, I would like her to be able to spawn ghost followers either via a custom item (with its own crafting recipe, same as her basic weapon) or befriend ghosts from gravesights on fullmoons or ones she digs up and have them follow her around to fight for her. Once they're gone, she'd have to do the process again to collect more. I don't know which path could be easier, but I figure that it can wait till I have a remote idea of what I'm doing. Link to comment https://forums.kleientertainment.com/forums/topic/138341-need-help-coding-my-character/ Share on other sites More sharing options...
FurryEskimo Posted March 21, 2022 Share Posted March 21, 2022 @Moracalle Some of that is fairly simple. I'd suggest starting with a basic guide on how to make a custom character mod: Once you have that ready you can ask people how to make those edits. 1. Because she's a cat, I want a higher sanity drain for wetness☆ This would be increasing the sanity wetness multiplier. I've never done this but I'm fairly certain it exists. Look in the component file for sanity and then look for wetness or moisture. 2. Maybe some kind of sanity penalty for eating meat that is not a crockpot dish, but not sure right now. This would likely be a ListenFor code related to eating, and then the game would need to check what the item is. I'm not too familiar with how this is done, but the simplest way would likely be to check the name against a list/array. 3. No sanity drain from ghosts like Wendy☆ I think that's basic, just set the ghost sanity drain modifier to 0 in the character's master_postinit file. I may be wrong about that though, I haven't looked at Wendy's code and there may be another way. To make pigs/etc. hostile I think instead of a "player" tag in their master_postinit code you add "monsterplayer" That might be enough. I'm not familiar with how to make custom crafting menus or ghost followers, but I'm sure there are others who could help. Like I said though, it might help if you got the basics working and then ask how specific functions can be added. If all of this is too much for you then there's always the option to commission someone to do the work for you, but even then it can help a lot if you at least try to get it working first and then go looking for help once you've gotten stuck. I don't think there are many people who will be able to give you a completed mod file with all of what you jsut described pre-prepared for you. OH, and downloading NotePad+ will make the coding easier, although different people prefer different coding tools. Modly they're highlight keywords and help tell you what code relates to what other code. Link to comment https://forums.kleientertainment.com/forums/topic/138341-need-help-coding-my-character/#findComment-1550689 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