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 169: | Line 29: | ||
<small>For a Quest or Object script, use a [[GameMode]] block. For an Effect script, use a [[ScriptEffectUpdate]] block.<br />In order to use the EditorRefID of your reference in a script like this, it must be a persistent reference.</small> | <small>For a Quest or Object script, use a [[GameMode]] block. For an Effect script, use a [[ScriptEffectUpdate]] block.<br />In order to use the EditorRefID of your reference in a script like this, it must be a persistent reference.</small> | ||
<pre>float | <pre>float fAngleZ | ||
float fRelativePos | float fRelativePos | ||
Line 177: | Line 37: | ||
myREF.setPos z fRelativePos | myREF.setPos z fRelativePos | ||
set | set fAngleZ to player.GetAngle Z + <ANGLE OFFSET> | ||
myREF.SetAngle Z | myREF.SetAngle Z fAngleZ | ||
set fRelativePos to player.GetPos Y + <PLAYER OFFSET> * cos | set fRelativePos to player.GetPos Y + <PLAYER OFFSET> * cos fAngleZ | ||
myREF.SetPos Y fRelativePos | myREF.SetPos Y fRelativePos | ||
set fRelativePos to player.GetPos X + <PLAYER OFFSET> * sin | set fRelativePos to player.GetPos X + <PLAYER OFFSET> * sin fAngleZ | ||
myREF.SetPos X fRelativePos | myREF.SetPos X fRelativePos | ||
Line 190: | Line 50: | ||
<ul> | <ul> | ||
<li><Z OFFSET> determines the reference's z offset from the player's feet. The higher this is, the further above the player's feet the reference will appear. | <li><Z OFFSET> determines the reference's z offset from the player's feet. The higher this is, the further above the player's feet the reference will appear. | ||
</li> | </li> | ||
<li><ANGLE OFFSET> determines the reference's position relative to the players. As <ANGLE OFFSET> increases, the reference's position will move around the player in an anti-clockwise direction. When <ANGLE OFFSET> is 0, the reference will appear directly in front of the player.</li> | <li><ANGLE OFFSET> determines the reference's position relative to the players. As <ANGLE OFFSET> increases, the reference's position will move around the player in an anti-clockwise direction. When <ANGLE OFFSET> is 0, the reference will appear directly in front of the player.</li> | ||
Line 321: | Line 179: | ||
end | end | ||
</pre> | </pre> | ||
Line 421: | Line 194: | ||
Short toggle | Short toggle | ||
Float minitimer | Float minitimer | ||
Begin OnActivate | Begin OnActivate | ||
Activate ;For people without FOSE, still works. | Activate ;For people without FOSE, still works. | ||
con_setgamesetting sComputersHeader1 "GREAT ACADEMY OF VALHALLA" | con_setgamesetting sComputersHeader1 "GREAT ACADEMY OF VALHALLA" | ||
Line 432: | Line 203: | ||
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 | |||
;On shutting down the terminal. Makes sure it doesn't show up on others. | |||
con_setgamesetting sComputersHeader1 "ROBCO INDUSTRIES UNIFIED OPERATING SYSTEM" | |||
con_setgamesetting sComputersHeader2 "COPYRIGHT 2075-2077 ROBCO INDUSTRIES " | |||
con_setgamesetting sHackingHeader "ROBCO INDUSTRIES (TM) TERMLINK PROTOCOL" | |||
con_setgamesetting shackingintro01 "WELCOME TO ROBCO INDUSTRIES (TM) TERMLINK" | |||
con_setgamesetting shackingintro06 "Initializing Robco Industries(TM) MF Boot Agent v2.3.0" | |||
con_setgamesetting shackingintro09 "Copyright 2201-2203 Robco Ind." | |||
end | |||
</pre> | </pre> |