Editing Small
From Eternity Wiki
Jump to navigationJump to search
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: | ||
Small used | 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. | ||
Β | |||
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. |