slow reacting scripts.. one for red and the scripters

ColJack

Where'd That 6th Toe Come From?
i've started to figure this scripting thing out, and have made a script for repairing a generator and gettin the lights back on, as well as the map script for the test map..

everything works, it just works slowly sometimes..

what i mean is, i enter the map from another map ( just to make sure it's set up... ) and it is indeed dark..
then o go and repair the generator ( with the help of the hint book to boost my stats for testing.. ) it say's i've repaired it, but the lights sometimes come on right away, other times they can take up to 20 seconds to come on..

( by "lights come on" i mean changing the light level.. )

i know there is a time jump command in there somewhere ( like when reading books, fades to black, then fades back in, advancing the game timer.. ).. would that help.

i think it's something to do with the map_update proceedure.. it only runs every 30 seconds or so..


is there a way to set up a loop in a script that checks a variable once every second??
 
I don't know, but you could try to find the script for the computerlights in the militairy base/vault 15.
Then replace a piece of your script with a pice of the script you just found.
Then check if it works.
If not, replace another piece of the script.
And so on, untill the time for the lights to turn on is always 1 second.

I don't know, I'm speaking of theory here...
 
i was getting the same with the original scripts..
the map-update doesn't update fast enough in the editor..

i got round it by putting a fade out, advance the timer 1 hour, and fade back in..

all the lights came on, and the alarm lights did too..

and it's more realistic.. taking an hour to fix a generator rather than "insta-fix"..
 
Back
Top