CrystalPinesGF replied to CrystalPinesGF's topic in [Don't Starve Together] Mods and ToolsLet me explain what i'm trying to do, so it's easier for people. I want my character to be able to transform when attacked by a mob and if sanity is below 80 (two ways for him to transform), he's a bit more stronger but losses sanity fast, gains 5 sanity for each mob killed. If he was attacked by a mod he will be stay in that form for a certain amount of time (i'm thinking of making it 2 minutes), every time he is attacked the time resets.
CrystalPinesGF posted a topic in [Don't Starve Together] Mods and ToolsI want to make the character in my mod able to transform when attacked or below a certain amount of sanity. I do understand some code but not all of it, I looked at Woodie's code but some of the code that allows him to transform I don't really understand, so I was hoping to get a little bit of help with how to make my character transform when attacked or below a certain amount of sanity.