Jump to content

Making sanity perks for a character


Recommended Posts

Hi, I'm pretty new to modding and I'm mostly experimenting for now, however, there's something that I'm struggling with.
 I checked some of the og character's prefab docs, and even when trying to replicate them for what i'm trying to do, I couldn't understand what exactly I had to do.
 One of my character's main negatives is her low (75) sanity, and to make it even harder to keep her sanity high, I decided to make her cynophobic (aka dog phobia) to cause some extra trouble during hound attacks.


 But I couldn't really understand how to do that? I figured I'd need a tag, but I still don't know how to apply them.
 The last version of the coding for this is this one (keep in mind I'm completely new to coding, this is the third version of the very first line of code I added):

local function 
    --cynophobic
    IsNearHound (inst, -TUNING.SANITYAURA_LARGE)
    IsNearHoundMound (inst, -TUNING.SANITYAURA_LARGE)
    end
end    
    
local function    
    --insectenthusiast
    IsNearBee (inst, TUNING.SANITYAURA_SMALL)
    IsNearButter (inst, TUNING.SANITYAURA_SMALL)
    end
end

When I made it I figured it wasn't quite right, but I think it's best to ask what I should even do rather than keep trying without even knowing what I have to do.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...