Sign in to follow this  
Breeziy

Sanity regen while holding specific items?

Recommended Posts

Breeziy    14

Hi guys, me again! Is there any way to let a specific character have a sanity gain while holding certain items? I imagine the code for this can't be too complicated, but I'm not sure where to start as most items in game have a sanity aura which isn't exactly what I want. Specifically, I'm looking for something that will check if character x is holding gold or gems, then sanity will regen at a slow rate. Thank you in advance!

Edited by Breeziy

Share this post


Link to post
Share on other sites
Thalkas    1235

I think something like Wurt with holding fish in her inventory bar?

    inst:AddComponent("itemaffinity")
    inst.components.itemaffinity:AddAffinity(nil, "PREFAB_NAME", TUNING.DAPPERNESS_MED, 1)

 

Share this post


Link to post
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
Sign in to follow this