ajs52698 Posted September 20, 2016 Share Posted September 20, 2016 Im having a hard time getting a condition to work correctly, ill try to explain. Basically im setting up a event, when its activated its supposed to change a global variable[im unaware if it actually is doing so] and then a condition checks if its change. The problem is when I try to run a function thats conditioned by the global variable, it will not run. Ive checked by removing the global variable condition whether or not it was the main issue and it is. I have no idea what the problem is but this has happened before with another mod im messing with and I have yet to figure out a solution. Link to comment Share on other sites More sharing options...
LoneRaptor Posted September 20, 2016 Share Posted September 20, 2016 (edited) To check if your global is getting set add this below where you change it: Debug.MessageBox("Global set to: " + YourGlobal.GetValue())This will show a messagebox telling you what the variable is set to. If you don't see a message when it should be getting set then something is going wrong in the event you set up. If it does show up but the value is not what it should be set to then your doing something wrong when setting the global. If it does show and is correct the you did something wrong with the condition. Edited September 20, 2016 by LoneRaptor Link to comment Share on other sites More sharing options...
ajs52698 Posted September 20, 2016 Author Share Posted September 20, 2016 (edited) alright ill try it Update: seemed I was using the wrong ontimer event, but thanks anyway for the info on using debug, I will put it to good use! Edited September 20, 2016 by ajs52698 Link to comment Share on other sites More sharing options...
Magicockerel Posted September 20, 2016 Share Posted September 20, 2016 It would be helpful if you could post the script you're using to do this. Link to comment Share on other sites More sharing options...
ajs52698 Posted September 21, 2016 Author Share Posted September 21, 2016 I already solved it, im posting the mod on the nexus. Link to comment Share on other sites More sharing options...
Recommended Posts