LuaAPI.wiki
changeset 1044 bc4dca5e6124
parent 1043 ad936934f97b
child 1046 1e19a1a5a450
equal deleted inserted replaced
1043:ad936934f97b 1044:bc4dca5e6124
  1351 
  1351 
  1352 === `DumpPoint(x, y)` (0.9.23) ===
  1352 === `DumpPoint(x, y)` (0.9.23) ===
  1353 Converts the whole numbers `x` and `y` to strings and writes them to `Logs/game0.log`, one line each.
  1353 Converts the whole numbers `x` and `y` to strings and writes them to `Logs/game0.log`, one line each.
  1354 
  1354 
  1355 === <tt>!ParseCommand(string)</tt> ===
  1355 === <tt>!ParseCommand(string)</tt> ===
  1356 Makes the game client parse the specified custom command.
  1356 Makes the game client parse the specified internal game engine command.
  1357 
  1357 
  1358 *Note*: Please be aware that the *engine protocol can (and will) change* between releases.
  1358 The available commands depend on the engine protocol. *Note*: Please be aware that the *engine protocol can (and will) change* between releases. It is not recommended to use this function in custom scripts.
  1359 
  1359 
  1360 If you use `ParseCommand` to overcome a shortcoming in our Lua API (e.g. a missing function), please make sure to [https://code.google.com/p/hedgewars/issues/entry report the issue].
  1360 There are many available commands, but only a few of them are useful for scripting. This is a list of useful commands in version 0.9.22:
       
  1361 
       
  1362 * `"skip"`: Current hedgehog skips its turn
       
  1363 * `"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]
       
  1364 
       
  1365 If you use `ParseCommand` to overcome a shortcoming in our Lua API (e.g. a missing function), please make sure to [https://issues.hedgewars.org/enter_bug.cgi report the issue]. We will try to remove the reliance on `ParseCommand` as good as possible.
  1361 
  1366 
  1362 With your report we can fix the shortcoming in future releases.
  1367 With your report we can fix the shortcoming in future releases.
  1363 This will allow scripts to use the previously missing feature in a way that won’t break!
  1368 This will allow scripts to use the previously missing feature in a way that won’t break!
  1364 
  1369 
  1365 
  1370