RoseRed31 Posted July 20, 2015 Share Posted July 20, 2015 Hi I'm new to modding for don't starve. I've seen and read toturials on how to make a character. I know how to make a character just fine now. However, my issue is I want to create a mod that 1) has a character able to transform after using an item too many times and have this item speak, like woodie and 2) make an unlockable character through this one. I've already searched everywhere online for how to do this, which people always bring up "just refer to woodie lua". Now I'm still fairly new to the coding aspects so simply looking at woodies setup and renaming everything is not what I'm after. I need a break down in steps of how i would achieve this so that in later mods I can understand what the heck I'm doing. Thanks all for any help with this. Link to comment https://forums.kleientertainment.com/forums/topic/56319-help-creating-a-character-that-transforms-and-unlockable-character/ Share on other sites More sharing options...
Developer ImDaMisterL Posted July 20, 2015 Developer Share Posted July 20, 2015 Have you tried looking at Lucy's prefab and at other mods that do the same thing?Might help. Link to comment https://forums.kleientertainment.com/forums/topic/56319-help-creating-a-character-that-transforms-and-unlockable-character/#findComment-655953 Share on other sites More sharing options...
RoseRed31 Posted July 20, 2015 Author Share Posted July 20, 2015 i have looked at lucy's prefab and also markiplier mod but I don't know which parts of woodies/lucy luas that i need. Link to comment https://forums.kleientertainment.com/forums/topic/56319-help-creating-a-character-that-transforms-and-unlockable-character/#findComment-656044 Share on other sites More sharing options...
RoseRed31 Posted July 21, 2015 Author Share Posted July 21, 2015 help anyone? Link to comment https://forums.kleientertainment.com/forums/topic/56319-help-creating-a-character-that-transforms-and-unlockable-character/#findComment-656140 Share on other sites More sharing options...
Finerlobster Posted July 21, 2015 Share Posted July 21, 2015 I saw these codes below in this mod: http://forums.kleientertainment.com/files/file/351-waverly-the-bewitched/To make an unlockable character:function ModPlayerProfile(PlayerProfile) function PlayerProfile:IsCharacterUnlocked(character) if character == "wilson" then return true end if self.persistdata.unlocked_characters[character] then return true end if not table.contains(CHARACTERLIST, character) and character ~= "YOUR CHARACTER NAME" then return true -- mod character end return false endendAddGlobalClassPostConstruct("playerprofile", "PlayerProfile", ModPlayerProfile) Unlock function:local function Unlock() GetPlayer().profile:UnlockCharacter("YOUR CHARACTER NAME") GetPlayer().profile:Save()end Link to comment https://forums.kleientertainment.com/forums/topic/56319-help-creating-a-character-that-transforms-and-unlockable-character/#findComment-656172 Share on other sites More sharing options...
RoseRed31 Posted July 22, 2015 Author Share Posted July 22, 2015 I saw these codes below in this mod: http://forums.kleientertainment.com/files/file/351-waverly-the-bewitched/To make an unlockable character:function ModPlayerProfile(PlayerProfile) function PlayerProfile:IsCharacterUnlocked(character) if character == "wilson" then return true end if self.persistdata.unlocked_characters[character] then return true end if not table.contains(CHARACTERLIST, character) and character ~= "YOUR CHARACTER NAME" then return true -- mod character end return false endendAddGlobalClassPostConstruct("playerprofile", "PlayerProfile", ModPlayerProfile) Unlock function:local function Unlock() GetPlayer().profile:UnlockCharacter("YOUR CHARACTER NAME") GetPlayer().profile:Save()end where would i put these codes? :3 Link to comment https://forums.kleientertainment.com/forums/topic/56319-help-creating-a-character-that-transforms-and-unlockable-character/#findComment-656366 Share on other sites More sharing options...
Finerlobster Posted July 22, 2015 Share Posted July 22, 2015 where would i put these codes? :3 Put the first code in your modmain.lua, and execute the second code to unlock it. Link to comment https://forums.kleientertainment.com/forums/topic/56319-help-creating-a-character-that-transforms-and-unlockable-character/#findComment-656466 Share on other sites More sharing options...
RoseRed31 Posted July 23, 2015 Author Share Posted July 23, 2015 Ok, thx. I'll test this out. Link to comment https://forums.kleientertainment.com/forums/topic/56319-help-creating-a-character-that-transforms-and-unlockable-character/#findComment-656675 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