Jump to content

Question regarding global variables


Recommended Posts

Okay so I have a couple of global variables (MLS_MainFunctionsStatusGlobal and MLS_SecFunctionsStatusGlobal) both of which are initially set to 0. Inside my main terminal record, I want to have a branch which goes to a submenu which serves as a diagnostic subroutine. In the diagnostic subroutine record I am trying to use these global values to report the state of the computer. They are setup in the following manner within the body text portion:


1? Primary functions are offline; damaged central processor complex detected

2? Primary functions are online and available

3? Secondary functions are offline; damaged communications controller detected

4? Secondary functions are online and available


Within the menu item section, I have a single entry which returns the player to the main menu

1 Return to Main Menu


Now each of the items 1-4 mentioned above are conditioned as follows:


GetGlobalValue Global: MLS_MainFunctionsStatusGlobal == 0.0000

GetGlobalValue Global: MLS_MainFunctionsStatusGlobal == 1.0000

GetGlobalValue Global: MLS_SecFunctionsStatusGlobal == 0.0000

GetGlobalValue Global: MLS_SecFunctionsStatusGlobal == 1.0000


I did a Debug.Trace on these two global values and the log reported values of zero for each which is what I expected. What I can’t figure out is why the conditioned statement above aren’t displaying properly. With a global value of 0 I would have expected 1 and 3 to be displayed but I am getting nothing. Anyone have any sage wisdom?


Link to comment
Share on other sites

If you are filling in the top section fo the screen it can only have one active text element.

 

If you have more than one text entry resolving then it shows nothing.

 

Its super fiddly to create exclusive conditions, or figure out exclusive text.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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