Cagealicous Posted January 21, 2019 Share Posted January 21, 2019 So, I'm having a problem trying to make my character have a negative sanity aura around a modded prefab that has a sanity aura. My code is like this: AddPrefabPostInit("tobi", function(inst) if GetPlayer().prefab == "ethan" then inst:AddComponent("sanityaura") inst.components.sanityaura.aura = -TUNING.SANITYAURA_LARGE end end) This was placed in modmain.lua. And I got this error: Any ideas? Link to comment https://forums.kleientertainment.com/forums/topic/102029-negative-sanity-aura-from-modded-item-that-has-sanity-aura/ Share on other sites More sharing options...
CarlZalph Posted January 22, 2019 Share Posted January 22, 2019 I think in regular DS you will still need to use 'GLOBAL.' to index that TUNING table. "GLOBAL.TUNING.SANITYAURA_LARGE" would be what you want. Link to comment https://forums.kleientertainment.com/forums/topic/102029-negative-sanity-aura-from-modded-item-that-has-sanity-aura/#findComment-1145559 Share on other sites More sharing options...
Cagealicous Posted January 25, 2019 Author Share Posted January 25, 2019 Well, I realized that this is for Don't Starve. It was supposed to be for Don't Starve Together. Link to comment https://forums.kleientertainment.com/forums/topic/102029-negative-sanity-aura-from-modded-item-that-has-sanity-aura/#findComment-1147160 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