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/09/17 00:35]
telliamed test 2 update
lgscript:index [2013/01/23 08:32] (current)
Line 2: Line 2:
 {{ lgslogo2.jpg?​nolink |So easy a Dromeder can do it}} {{ 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 24: Line 24:
  
 ===== Recent News ===== ===== 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. //​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.
Line 29: Line 31:
 ===== Download ===== ===== Download =====
  
-  * {{lgscript-test2.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 62: Line 66:
  
   * [[http://​www.lua.org/​]]   * [[http://​www.lua.org/​]]
-  * [[http://batbytes.com/luafaq|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.1253147746.txt.gz · Last modified: 2009/09/17 00:35 by telliamed