<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.sierrahelp.com/index.php?action=history&amp;feed=atom&amp;title=Script_Classes_for_Adventure_Games%2FGlobal_Variables</id>
	<title>Script Classes for Adventure Games/Global Variables - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.sierrahelp.com/index.php?action=history&amp;feed=atom&amp;title=Script_Classes_for_Adventure_Games%2FGlobal_Variables"/>
	<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=Script_Classes_for_Adventure_Games/Global_Variables&amp;action=history"/>
	<updated>2026-11-12T16:30:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=Script_Classes_for_Adventure_Games/Global_Variables&amp;diff=71797&amp;oldid=prev</id>
		<title>Andrew Branscom: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=Script_Classes_for_Adventure_Games/Global_Variables&amp;diff=71797&amp;oldid=prev"/>
		<updated>2025-02-16T21:05:24Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:05, 16 February 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=Script_Classes_for_Adventure_Games/Global_Variables&amp;diff=71796&amp;oldid=prev</id>
		<title>Andrew Branscom: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=Script_Classes_for_Adventure_Games/Global_Variables&amp;diff=71796&amp;oldid=prev"/>
		<updated>2024-06-03T05:14:27Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:14, 3 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
	<entry>
		<id>http://wiki.sierrahelp.com/index.php?title=Script_Classes_for_Adventure_Games/Global_Variables&amp;diff=71795&amp;oldid=prev</id>
		<title>Andrew Branscom at 00:15, 12 April 2018</title>
		<link rel="alternate" type="text/html" href="http://wiki.sierrahelp.com/index.php?title=Script_Classes_for_Adventure_Games/Global_Variables&amp;diff=71795&amp;oldid=prev"/>
		<updated>2018-04-12T00:15:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Official SCI Documentation]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Script Classes for Adventure Games | Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
Chapter: &lt;br /&gt;
[[Script Classes for Adventure Games/Introduction|1]] | &lt;br /&gt;
[[Script Classes for Adventure Games/RootObj Class|2]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Object Class|3]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Collection Class|4]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Script Class|5]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Timer Class|6]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Feature Class|7]] | &lt;br /&gt;
[[Script Classes for Adventure Games/View Class|8]] | &lt;br /&gt;
[[Script Classes for Adventure Games/PicView Class|9]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Cycling Classes|10]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Motion Classes|11]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Avoider Class|12]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Event Class|13]] | &lt;br /&gt;
[[Script Classes for Adventure Games/User Class|14]]&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Script Classes for Adventure Games/Game Class|15]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Locale Class|16]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Region Class|17]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Room Class|18]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Timer2 Class|19]] | &lt;br /&gt;
[[Script Classes for Adventure Games/InvItem Class|20]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Block Class|21]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Cage Class|22]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Sound Class|23]] | &lt;br /&gt;
[[Script Classes for Adventure Games/StatusLine Class|24]] | &lt;br /&gt;
[[Script Classes for Adventure Games/File Class|25]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Code Class|26]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Global Variables|27]] | &lt;br /&gt;
[[Script Classes for Adventure Games/Index|Index]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-size: 22pt&amp;quot;&amp;gt;Global Variables&amp;lt;/span&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;Author: [[Jeff Stephenson]]&amp;#039;&amp;#039;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;Date: 5 April 1988&amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;br /&amp;gt; Global Variables ==&lt;br /&gt;
&lt;br /&gt;
Global variables 0 through 49 are reserved for use by the system classes. Game-specific global variables start at 50. The following global variables are defined by the system. For up to date global list see s:system.sh.&lt;br /&gt;
&lt;br /&gt;
=== ego ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The ID of a static instance of class Ego defined in game.sc. This is the protagonist of the game.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== curRoom ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The ID of the current Room.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== userFont ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The number of the font to be used in Print statements, etc. Default is 1. Set it to the font you wish to use in the init: method of your Game, or change it at will in the game.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== cast ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The ID of a Set of Actors and Egos which constitutes the characters on the screen.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== quit ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The main loop of the game is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;div class=&amp;quot;CodeBlockHeader&amp;quot;&amp;gt;Code:&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sci&amp;quot;&amp;gt;&lt;br /&gt;
(while (not quit)&lt;br /&gt;
     (theGame doit:)&lt;br /&gt;
     (Wait speed)&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
so setting quit to TRUE breaks out of the main loop and terminates the game.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== addToPics ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;A Set of PicViews which have been added to the current picture.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== debugOn ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;A generic debugging flag. I usually have a Debug menu item to set it, and trigger any debug display that I want off of it, rather than creating a special trigger whenever I want to debug something.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== sounds ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The Set of Sounds currently playing.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== inventory ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The ID of the Inventory class or instance which is the Set of all InvItems (inventory items) in the Game. Inventory related issues are not well defined yet...&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== theGame ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The ID of the Game instance.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== regions ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The Set of Regions currently in effect.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== curRoomNum ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The number of the current Room.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== prevRoomNum ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The number of the previous Room. (So you know how you got where you are.)&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== newRoomNum ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Used by a Room to signal to the Game that it should change to a new Room.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== showStyle ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The global style for the transition from one picture to another. This may be overridden by the style property of a given room. See the DrawPic kernel function for the possible styles.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== aniInterval ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The number of ticks it took to do the last animation cycle. This is used to test animation speed on a particular machine.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== speed ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The number of ticks between animations. This is set, usually as a menu option, to determine the speed of animation. The default is 6.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== timers ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The List of timers in the game.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== score ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The player&amp;#039;s current score.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== possibleScore ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The games highest possible score.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== theCursor ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The number of the current cursor.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== normalCursor ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Number of normal cursor form.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== waitCursor ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Cursor number of &amp;quot;wait&amp;quot; cursor.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== smallFont ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Small font for save/restore, etc.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== lastEvent ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The last event (used by save/restore game).&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== modelessDialog ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The modeless Dialog known to User and Intrface.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== bigFont ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The number for a large font.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== volume ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Sound volume on supported machine.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== version ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The SCI version string.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== locales ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Set of current locales.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== curSaveDir ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Address of current save drive/directory string.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== aniThreshold ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== perspective ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The Player&amp;#039;s viewing angle. This is set according to the Rooms picAngle property. Degrees away from vertical along y axis.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== features ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Locations that may respond to events.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== sortedFeatures ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The features and cast sorted by &amp;quot;visibility&amp;quot; to ego.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== useSortedFeatures ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;If TRUE enable cast &amp;amp; feature sorting.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== egoBlindSpot ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Used by sortCopy for sortedFeatures to exclude actors behind ego within angle from straight behind. Default zero is no blind spot.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== overlays ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;The overlay List.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== doMotionCue ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;A motion cue has occured - process it. The Games doit method gives the motionCue: message to each element of the cast if this is set to TRUE.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== systemWindow ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;ID of standard system window. If you wish to supply your own window for system messages set this to the ID of your window.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== lastSysGlobal ===&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Defines the end of Global variable space.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;br /&amp;gt; References ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;br /&amp;gt; See Also: ==&lt;br /&gt;
&lt;br /&gt;
* [[SCI Specifications]]&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
[[Script Classes for Adventure Games | Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;float: left&amp;quot;&amp;gt;[[Script Classes for Adventure Games/Code Class|&amp;amp;lt; Previous: The Code Class]]&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;float: right&amp;quot;&amp;gt;[[Script Classes for Adventure Games/Index|Next: Index &amp;amp;gt;]]&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
[[Category:References]]&lt;br /&gt;
[[Category:SCI References]]&lt;br /&gt;
[[Category:Documentation]]&lt;br /&gt;
[[Category:SCI Documentation]]&lt;br /&gt;
[[Category:Scripting]]&lt;br /&gt;
[[Category:SCI Scripting]]&lt;br /&gt;
[[Category:Classes]]&lt;br /&gt;
[[Category:SCI Classes]]&lt;/div&gt;</summary>
		<author><name>Andrew Branscom</name></author>
	</entry>
</feed>