uberlux Posted June 23, 2013 Share Posted June 23, 2013 I want to make my already functioning overseers desk (via terminal), have a button below the passage so people cant lock themselves down there if dumb enough to run while its closing. Basically, i know that the desk works and everything, i just need to know the script you make for those two-stage buttons (red light, green light ones), I need to set the two stages to open and close the door. Im not sure how to set the different stages of the button to certain scripting lines. Also, is there a way to make the 'open chamber' button on the terminal show up only when its closed.and the 'close chamber' button to only appear when open? because its weird that both are available while terminal is open? Another thing, does anyone also know how to make a script close a terminal? what i mean, is another thing i made was a crafting station where the terminal had options to use different crafting stations (kitchen, reloading and workbench). Unfortunately, when the crafting menu appears, it keeps the terminal open in the background and the user has to click the red button on the terminal before using the crafting menu. (luckily, you can JUST click the red button, but most inconvenient. for the above problem, i may just make a 'message' appear rather than using a terminal. Link to comment Share on other sites More sharing options...
jazzisparis Posted June 23, 2013 Share Posted June 23, 2013 Im not sure how to set the different stages of the button to certain scripting lines. Use this code (replace uberluxOverseersDeskREF with the reference ID of the overseer's desk): begin OnActivate player if uberluxOverseersDeskREF.GetOpenState == 3 uberluxOverseersDeskREF.SetOpenState 1 SetOpenState 1 elseif uberluxOverseersDeskREF.GetOpenState == 1 uberluxOverseersDeskREF.SetOpenState 0 SetOpenState 0 endif end Also, is there a way to make the 'open chamber' button on the terminal show up only when its closed.Add a condition to the 'Item Conditions' box for each button:For the open button: GetOpenState == 3For the close button: GetOpenState == 1(Both conditions should have the overseer's desk ref ID in the 'Run On' box) Another thing, does anyone also know how to make a script close a terminal?You can use ForceTerminalBack to get a terminal to close itself. Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted June 23, 2013 Share Posted June 23, 2013 A note, ForceTerminalBack goes back to the previous level, so if you're in more than one level deep, and want to fully exit, you'll need to call it for each level. Link to comment Share on other sites More sharing options...
uberlux Posted August 28, 2013 Author Share Posted August 28, 2013 Thanks for the replies, although i completed that project (with work-arounds), the information you've given has definitely helped. Link to comment Share on other sites More sharing options...
Recommended Posts