User Tools

Site Tools


lgscript:index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
lgscript:index [2009/08/27 21:13]
telliamed
lgscript:index [2009/09/17 00:35]
telliamed test 2 update
Line 1: Line 1:
 ====== LgScript ====== ====== LgScript ======
 +{{ lgslogo2.jpg?​nolink |So easy a Dromeder can do it}}
  
 __LgScript__ is a custom script module for __Thief__, __Thief 2__, and __System Shock 2__. With it you can create your own scripts using a Lua-like((Mostly the same as regular __Lua__, but with a few extensions. And the ''​io''​ and ''​os''​ libraries are disabled.)) language. __LgScript__ is a custom script module for __Thief__, __Thief 2__, and __System Shock 2__. With it you can create your own scripts using a Lua-like((Mostly the same as regular __Lua__, but with a few extensions. And the ''​io''​ and ''​os''​ libraries are disabled.)) language.
Line 21: Line 22:
   - Get the destination of a ``ControlDevice`` link.   - Get the destination of a ``ControlDevice`` link.
   - Damage the linked object with half the strength of the stimulus.   - Damage the linked object with half the strength of the stimulus.
 +
 +===== Recent News =====
 +
 +//​2009-09-16//​ The second test release has been uploaded. Use of the ``linkset`` iterator (from ''​LinkSrv.GetAll''​) has been simplified. It is no longer necessary to call ''​pairs'',​ just use the value directly with the for-in loop. You also shouldn'​t have to worry about calling ''​Release'',​ and the ''​Data''​ method can return a table.
  
 ===== Download ===== ===== Download =====
  
-  * {{lgscript-test1.zip}}+  * {{lgscript-test2.zip}}
  
 The first thing you want to do when you unpack the archive is to run the ''​QuickTour.bat''​ file. This will introduce you to the __Lua__ language and some of the extensions provided by __LgScript__. The interactive interpreter ''​lgscript.exe''​ can be used to test your scripts. However, the services available when using scripts in-game aren't in the interactive interpreter. NOTEME Eventually there will be an emulated environment for simulating a script running in the game. The first thing you want to do when you unpack the archive is to run the ''​QuickTour.bat''​ file. This will introduce you to the __Lua__ language and some of the extensions provided by __LgScript__. The interactive interpreter ''​lgscript.exe''​ can be used to test your scripts. However, the services available when using scripts in-game aren't in the interactive interpreter. NOTEME Eventually there will be an emulated environment for simulating a script running in the game.
Line 34: Line 39:
 > FIXME Please read and critique all of these tutorials. > FIXME Please read and critique all of these tutorials.
  
-The [[lua_reference|language reference]] describes __Lua__ as implemented by __LgScript__. Read it if you have never used a programming language before, or are unfamiliar with __Lua__.+The [[lua|language reference]] describes __Lua__ as implemented by __LgScript__. Read it if you have never used a programming language before, or are unfamiliar with __Lua__.
  
 To begin writing scripts for games, read [[Getting Started]], then the script examples: To begin writing scripts for games, read [[Getting Started]], then the script examples:
Line 57: Line 62:
  
   * [[http://​www.lua.org/​]]   * [[http://​www.lua.org/​]]
-  * [[http://penlight.luaforge.net/​FAQ/​|Unofficial Lua FAQ]]+  * [[http://batbytes.com/luafaq|Unofficial Lua FAQ]]
   * [[http://​luaforge.net/​frs/?​group_id=377|Lua for Windows]]   * [[http://​luaforge.net/​frs/?​group_id=377|Lua for Windows]]
   * [[http://​www.scintilla.org/​SciTE.html|Scintilla Text Editor]]   * [[http://​www.scintilla.org/​SciTE.html|Scintilla Text Editor]]
  
lgscript/index.txt · Last modified: 2013/01/23 08:32 (external edit)