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
lgscript:index [2009/08/27 21:13]
telliamed
lgscript:index [2013/01/23 08:32] (current)
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 extensionsAnd 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 the [[http://​www.lua.org/​|Lua]] ​language.
  
 ===== Example ===== ===== Example =====
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 =====
 +
 +//​2011-05-15//​ Is this still here? Guess it would help if I released it at some point. Oh, but I've ripped out most of my Lua modifications. No more case-insensitivity.
 +
 +//​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}}+Download the latest build: ​{{:lgscript:lgscript-test2.zip}}
 + 
 +The __LgScript__ source code is hosted on [[https://​github.com/​whoopdedo/​lgscript|GitHub]].
  
-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. 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 other files in the archive are ''​lgs.osm''​ which is the script module that you copy to the game directory. In the ''​scripts''​ folder ​is an example ​of a complete script. In your fan-missions,​ you will include the OSM and any necessary scripts.+The other files in the archive are ''​lgs.osm''​ which is the script module that you copy to the game directory. In the ''​scripts''​ folder ​are examples ​of scripts. ''​LuaDoor.lua''​ is a complete ​example implementing the ''​StdDoor'' ​script. In your fan-missions,​ you will include the OSM and any necessary scripts. The ''​dh2.osl''​ module is also provided if you want to use the DarkHook service.
  
 ===== How to Use ===== ===== How to Use =====
Line 34: Line 43:
 > 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 66:
  
   * [[http://​www.lua.org/​]]   * [[http://​www.lua.org/​]]
-  * [[http://penlight.luaforge.net/FAQ/​|Unofficial Lua FAQ]]+  * [[http://www.luafaq.org/​|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.1251407626.txt.gz · Last modified: 2009/08/27 21:13 by telliamed