TooMchONI Posted July 25, 2017 Share Posted July 25, 2017 (edited) I have been trying for days trying to make it so that when an umbrella is equipped, that the character does not lose sanity in the rain. The end result of this was so that at night, when raining and wearing an umbrella, that the character wouldn't lose sanity at all. I already have a beautiful code working that does cause a massive amount of sanity loss at night [I did this on purpose for the character]. I have something coded finally that doesn't crash the game or give errors, but it doesn't work per say either. Any ideas how to go about this? Because I am lost. I have also tried to go about this with using sanity tags and all I got was 'umbrella not defined'. Any suggestions would be wonderful. Quote local function umbrella(user) local delta = 0 if TheWorld.state.israining and umbrella_equipped then delta = 0 end end Edit: Added code. [I also have the umbrella assets at the very top of the .lua as well.] Edited July 25, 2017 by TooMchONI Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now