Jump to content

Conditioning : Global Variable


ajs52698

Recommended Posts

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

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 by LoneRaptor
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...