Showbizharbor9 Posted September 5, 2017 Share Posted September 5, 2017 (edited) Hello, I'm now attempting to code my character. My game crashes now. I need help with it. Can someone pass me up some advice or something. 1. Gains a little sanity when eating food. 2. Always has a jacket on. 3. Clockwork allies, but Bunnymanphobia. - bunnymen will attack on sight and you lose sanity. Edited September 7, 2017 by Showbizharbor9 Link to comment Share on other sites More sharing options...
Andreasgamming Posted September 9, 2017 Share Posted September 9, 2017 What do you mean by "always has a jacket on" ? do they get cold slower and hot faster? Link to comment Share on other sites More sharing options...
Showbizharbor9 Posted September 15, 2017 Author Share Posted September 15, 2017 Yeah something like that. Link to comment Share on other sites More sharing options...
Showbizharbor9 Posted September 15, 2017 Author Share Posted September 15, 2017 Or insulation Link to comment Share on other sites More sharing options...
Andreasgamming Posted September 16, 2017 Share Posted September 16, 2017 inst.components.temperature.inherentinsulation = 30 --Keep positive inst.components.temperature.inherentsummerinsulation = -30 --Keep negative Those are two codes from my mod that I have. Link to comment Share on other sites More sharing options...
Showbizharbor9 Posted September 16, 2017 Author Share Posted September 16, 2017 (edited) Ok well that one worked.Got any ideas from gaining sanity from eating foods. I had to delete the code I had because it kept crashing the game. Edited September 16, 2017 by Showbizharbor9 Link to comment Share on other sites More sharing options...
Showbizharbor9 Posted September 23, 2017 Author Share Posted September 23, 2017 How can I add a insanity effect around bunny men. I was thinking of using thing elseif self.inducedinsanity_sources ~= nil then self.inducedinsanity_sources[src] = nil if next(self.inducedinsanity_sources) == nil then self.inducedinsanity_sources = nil But Im not sure still. You guys know more than me. Link to comment Share on other sites More sharing options...
ptr Posted September 23, 2017 Share Posted September 23, 2017 Do you mean that for the "sanityaura" component? Link to comment Share on other sites More sharing options...
Showbizharbor9 Posted September 23, 2017 Author Share Posted September 23, 2017 (edited) Yeah something to that effect local SanityAura = Class(function(self, inst) self.inst = inst self.aura = 0 self.aurafn = nil end) How would a use one of these Edited September 23, 2017 by Showbizharbor9 Link to comment Share on other sites More sharing options...
ptr Posted September 23, 2017 Share Posted September 23, 2017 inst:AddComponent("sanityaura") inst.components.sanityaura.aura = -TUNING.SANITYAURA_SMALL All set! Link to comment Share on other sites More sharing options...
Showbizharbor9 Posted September 23, 2017 Author Share Posted September 23, 2017 (edited) Wait how do I add that to bunny man for my character Edited September 23, 2017 by Showbizharbor9 Link to comment Share on other sites More sharing options...
ptr Posted September 23, 2017 Share Posted September 23, 2017 Only for your character? inst:AddComponent("sanityaura") inst.components.sanityaura.aurafn=function(inst, observer) if observer.prefab=="your character" then return -TUNING.SANITYAURA_SMALL end return 0 end Link to comment Share on other sites More sharing options...
Showbizharbor9 Posted September 23, 2017 Author Share Posted September 23, 2017 Ok thanks Link to comment 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