LuaAPI.wiki
changeset 1057 19142f4d6fb4
parent 1055 754e0a7bdd44
child 1071 f1ba87542f87
equal deleted inserted replaced
1056:f9449f7beddc 1057:19142f4d6fb4
  1364 There are many available commands, but only a few of them are useful for scripting. These are commands used in official scripts in 0.9.22:
  1364 There are many available commands, but only a few of them are useful for scripting. These are commands used in official scripts in 0.9.22:
  1365 
  1365 
  1366 * `"skip"`: Current hedgehog skips its turn
  1366 * `"skip"`: Current hedgehog skips its turn
  1367 * `"draw <map>"`: Draws a hand-drawn map. `MapGen` must be `mgDrawn` for this to work. `<map>` is a string which must follow the format specified in [DrawnMapFormat]
  1367 * `"draw <map>"`: Draws a hand-drawn map. `MapGen` must be `mgDrawn` for this to work. `<map>` is a string which must follow the format specified in [DrawnMapFormat]
  1368 
  1368 
  1369 Moreover, the control action names as listed [ConfigurationFiles#[Binds] here] can be used. Note we will eventually try to remove all `ParseCommand`s in the official scripts.
  1369 Moreover, the control action names as listed in [ConfigurationFiles] (under “Binds”) can be used. Note we will eventually try to remove all `ParseCommand`s in the official scripts.
  1370 
  1370 
  1371 === <tt>!EndLuaTest(success)</tt> ===
  1371 === <tt>!EndLuaTest(success)</tt> ===
  1372 This function is used by the Hedgewars developers in testing scripts in order to test the game engine. The testing scripts can be found in the Hedgewars source code under `tests/lua`. This function is useless for anything else.
  1372 This function is used by the Hedgewars developers in testing scripts in order to test the game engine. The testing scripts can be found in the Hedgewars source code under `tests/lua`. This function is useless for anything else.
  1373 
  1373 
  1374 Calling this function ends an engine test and reports a test result.
  1374 Calling this function ends an engine test and reports a test result.