Jump to content

Requesting Script/GECK Help, Please


TrueSaiko

Recommended Posts

I would like to make it so that an item changes another item, which then changes another item.... to be very specific for this exact scenario i am at a loss for:

 

A building is very dim... it is running on emergency/backup lights... there is a generator (activator) .... clicking the generator brings up a menu and such where i can make it be repairable... and when it is, it turns on the lights. (this part i can get by editing scripts, i am pretty sure) ..... i also want it to turn "on" another activator... a "server" computer.... i want the server to be there, and visible, just not clickable, until you repair the generator.... and when you do what the messages say for the server.... then a terminal will be clickable so you can read messages.

 

i also want the activators to be unclickable after you finish the scripts.

 

TL/DR and cleaner example: generator activator, server you cannot click (like static, not activator), and terminal you cannot click to read messages.... script in generator to make the server clickable.... script in server to make terminal clickable.

 

is this possible?

Link to comment
Share on other sites

Yes you can do it. You need to read the geck tutorials on bethsofts page so you have at least a base knowledge.

 

I'll shoot you a quick overview but won't go into detail or walk you through it (at that point it's like programming via carrier pigeon, slow and painful).

 

To make lights turn on and off you use a script attached to the generator to disable or enable those lights assets (beams, etc), it can also disable the old model and enable a new model of teh generator to make it appear to start working. Make a condition in the script (generatorFixed == 0) so you can't fix it twice, and at the end of the script use the set command to change the variable generatorFixed to 1.

 

 

To make the server clickable you make a condition under the onActivate block of the script attached to teh server, use getScriptVariable from the generator (say if generatorFixed == 1) then have whatever code you want the server to do. If the variable isn't 1 (the generator wasn't fixed) it won't do anything. If it's just a terminal menu then do the same thing as a condition in the appropriate area (you can see them under item conditions)

Link to comment
Share on other sites

alright, that should be enough information for me to fiddle with.... thanks a ton! my main issue was if scripts could get variables from scripts in other items.... didn't want to spend a bunch of time learning, writing, and all that.... and have it not work.... i was even thinking i might have to do a quest thing, and script the quest to reference the three items.... was hoping to get a response telling me the easiest way.... and it seems like my initial idea is possible... thanks a ton!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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