Difference between revisions of "Useful Scripts"

83 bytes added ,  21:05, 14 May 2009
→‎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
End


begin gamemode
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
End


</pre>
</pre>
Anonymous user