Editing Useful Scripts
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
= GECK = | = GECK = | ||
==Light switch== | ==Light switch== | ||
Line 123: | Line 24: | ||
End | End | ||
</pre> | </pre> | ||
==Forced Relative Orientation== | ==Forced Relative Orientation== | ||
Line 321: | Line 181: | ||
end | end | ||
</pre> | </pre> | ||
Line 423: | Line 198: | ||
Short activated | Short activated | ||
Begin OnActivate | Begin OnActivate | ||
set activated to 1 | set activated to 1 | ||
Activate ;For people without FOSE, still works. | Activate ;For people without FOSE, still works. | ||
Line 432: | 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 gamemode | |||
if activated | if activated | ||
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 451: | Line 220: | ||
con_setgamesetting shackingintro09 "Copyright 2201-2203 Robco Ind." | con_setgamesetting shackingintro09 "Copyright 2201-2203 Robco Ind." | ||
endif | endif | ||
end | |||
</pre> | </pre> | ||
Line 460: | Line 229: | ||
<small>To be placed on a [[ | <small>To be placed on a [[Quest_Data_Tab|quest]], it will run some code when a key is released. See [http://fose.silverlock.org/fose_command_doc.html#DirectX_Scancodes FOSEs Command Docs] for additional DirectX Scancodes</small> | ||
<pre> | <pre> | ||
ScriptName HotkeyReleased | ScriptName HotkeyReleased | ||
Line 468: | Line 237: | ||
Begin GameMode | Begin GameMode | ||
if IsKeyPressed 25 != sToggle | if IsKeyPressed 25 != sToggle | ||
set sToggle to | set sToggle to sToggle == 0 | ||
if sToggle ;Button pressed | if sToggle ;Button pressed | ||
;Do things when button 'p' is pressed, in this case, decrease karma | ;Do things when button 'p' is pressed, in this case, decrease karma | ||
Line 477: | Line 246: | ||
endif | endif | ||
endif | endif | ||
End | End | ||
</pre> | </pre> |