Editing Small

From Eternity Wiki
Jump to navigationJump 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:
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.
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.
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see Eternity Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)