Small: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
mNo edit summary
No edit summary
Line 1: Line 1:
Small is a scripting language created by ITB CompuPhase, it uses C like syntax and is Eternity's main scripting language, replacing the Fragglescript language of earlier versions. To be used in Eternity, the script files must first be compiled using the sc executable. Script files usually have the extension .sma but files of any extension can be compiled. Assuming the script has no errors, the compiler should output an amx file which can be loaded into a wad for use with Eternity.  
Small is a scripting language created by ITB CompuPhase, it uses C like syntax and is Eternity's main scripting language, replacing the Fragglescript of earlier versions. To be used in Eternity, the script files must first be compiled using the sc executable. Script files usually have the extension .sma but files of any extension can be compiled. Assuming the script has no errors, the compiler should output an amx file which can be loaded into a wad for use with Eternity.  


There are two types of script, gamescript and levelscript. Gamescripts work over a whole gaming session, while levelscripts only work on maps which have specified that script in their level info.  To use a script file as a gamescript, the compiled script file should be loaded into a wad and given the lump name <code>GAMESCR</code>. These gamescript files will work over every level.  
There are two types of script, gamescript and levelscript. Gamescripts work over a whole gaming session, while levelscripts only work on maps which have specified that script in their level info.  To use a script file as a gamescript, the compiled script file should be loaded into a wad and given the lump name <code>GAMESCR</code>. These gamescript files will work over every level.  


Levelscripts are loaded by a different method. To specify a script for use in a single map, <code>levelscript=MYSCRIPT</code> should be added to the map's [[MapInfo]]. Here, MYSCRIPT should be replaced with your script's lump name, which can be anything.
Levelscripts are loaded by a different method. To specify a script for use in a single map, <code>levelscript=MYSCRIPT</code> should be added to the map's [[MapInfo]]. Here, <code>MYSCRIPT</code> should be replaced with your script's lump name, which can be anything.

Revision as of 20:47, 2 January 2006

Small is a scripting language created by ITB CompuPhase, it uses C like syntax and is Eternity's main scripting language, replacing the Fragglescript of earlier versions. To be used in Eternity, the script files must first be compiled using the sc executable. Script files usually have the extension .sma but files of any extension can be compiled. Assuming the script has no errors, the compiler should output an amx file which can be loaded into a wad for use with Eternity.

There are two types of script, gamescript and levelscript. Gamescripts work over a whole gaming session, while levelscripts only work on maps which have specified that script in their level info. To use a script file as a gamescript, the compiled script file should be loaded into a wad and given the lump name GAMESCR. These gamescript files will work over every level.

Levelscripts are loaded by a different method. To specify a script for use in a single map, levelscript=MYSCRIPT should be added to the map's MapInfo. Here, MYSCRIPT should be replaced with your script's lump name, which can be anything.