Author Topic: Scripting overview  (Read 6477 times)

martiño

  • Behemoth
  • *******
  • Posts: 1,095
    • View Profile
Scripting overview
« on: 29 May 2008, 13:55:28 »

All scripting documentation has been ported to the wiki:


From 3.2, Glest includes scripted scenarios using Lua.

The Lua code is embedded in the scenario xml file, and each chunk is assigned to an event, that gets called when something specific happens in the game.

The best way of learning it is to take a look at the already existing scripted scenarios: storming, basic_tutorial and advanced_tutorial.
« Last Edit: 18 June 2016, 08:25:29 by filux »

modman

  • Guest
Re: Scripting overview
« Reply #1 on: 13 January 2009, 00:42:27 »
Is there a list of available features that can be used, or am I on my on for that?

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Scripting overview
« Reply #2 on: 13 January 2009, 04:38:59 »
There's a set number of features, but Lua does leave some room for doing things your own way, but no real way to get new things in.

Hey Martino, can you add a function for placing units on an X,Y grid? It'd be extremely helpful and probably easy to code.
« Last Edit: 11 February 2009, 15:44:48 by martiño »
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert