Jump to content

Terminal Variable Help


Recommended Posts

I am trying to make a terminal that controls the silo door from Lonesome Roads Hopeville's silo it works and is fine, but I'm having trouble using the variables that make the options to open and close appear when they need to. I don't want both to be on the screen at the same time but to use variables as follows..

 

Only display the Open Command when the it is closed.

Only display the Close Command when the it is open.

 

And switch the two when its activated.

 

Anyway if that makes sense.

Link to comment
Share on other sites

I see. Well, in that case:

- Create a new global variable.

- Have the "Open" option set it to 1; the "Close" option set it to 0.

- Use GetGlobalValue as a condition to determine which option should be visible/hidden.

Link to comment
Share on other sites

You can add new globals by going to Gameplay>Globals, then right-click, select 'New' and give it a unique name (you can leave the other settings as the are). You can then use that global variable in scripts, exactly as you would use any "local" variable. In conditions (for options in terminals, messageboxes, perk etc.), when you need to check the value of a global variable, you can use GetGlobalValue.

I hope that covers it for you.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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