Small: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
 
(small gone)
 
(26 intermediate revisions by 14 users not shown)
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 used to be a scripting engine available for Eternity. It had to be removed because of lack of compatibility with 64-bit systems. Currently you can use [[ACS]] scripting instead.
 
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, the line "levelscript=MYSCRIPT" should be added to the map's mapinfo. MYSCRIPT should be replaced with your script's lump name, which can be anything.

Latest revision as of 17:03, 7 August 2013

Small used to be a scripting engine available for Eternity. It had to be removed because of lack of compatibility with 64-bit systems. Currently you can use ACS scripting instead.