Difference between revisions of "Useful Scripts"
Jump to navigation
Jump to search
→Terminals: Changed script so that it also works for terminals that play a short animation when activated
imported>Cipscis (→Terminals: Added a switch variable so as not to unnecessarily reset GameSettings every frame) |
imported>Cipscis (→Terminals: Changed script so that it also works for terminals that play a short animation when activated) |
||
Line 198: | Line 198: | ||
Short activated | Short activated | ||
Begin OnActivate | Begin OnActivate player | ||
set activated to 1 | set activated to 1 | ||
Activate ;For people without FOSE, still works. | Activate ;For people without FOSE, still works. | ||
Line 207: | Line 207: | ||
con_setgamesetting shackingintro06 "Initializing Valhalla Republic MF Boot Agent v2.1.9" | con_setgamesetting shackingintro06 "Initializing Valhalla Republic MF Boot Agent v2.1.9" | ||
con_setgamesetting shackingintro09 "Copyright 2156-2234 Academy of Valhalla" | con_setgamesetting shackingintro09 "Copyright 2156-2234 Academy of Valhalla" | ||
End | |||
Begin MenuMode | |||
if activated | if activated == 1 | ||
set activated to 2 | |||
endif | |||
End | |||
Begin GameMode | |||
if activated == 2 | |||
set activated to 0 | set activated to 0 | ||
;On shutting down the terminal. Makes sure it doesn't show up on others. | ;On shutting down the terminal. Makes sure it doesn't show up on others. | ||
Line 220: | Line 226: | ||
con_setgamesetting shackingintro09 "Copyright 2201-2203 Robco Ind." | con_setgamesetting shackingintro09 "Copyright 2201-2203 Robco Ind." | ||
endif | endif | ||
End | |||
</pre> | </pre> |