# HG changeset patch # User Wuzzy # Date 1506435406 -3600 # Node ID 291ce8641578ca81ee38418aca998d1ff36a0854 # Parent e312e2616b75c1ca09e70670820473eb81666171 LuaAPI: GetTeamStats diff -r e312e2616b75 -r 291ce8641578 LuaAPI.wiki --- a/LuaAPI.wiki Tue Sep 26 14:14:08 2017 +0100 +++ b/LuaAPI.wiki Tue Sep 26 15:16:46 2017 +0100 @@ -1319,6 +1319,16 @@ === <tt>!SendGameResultOff()</tt> (0.9.23) === Prevents the engine of setting the game result text at the top of the stats screen, e.g. “Team 1 wins!” when the game ends normally. This function needs to be called inside `onGameStart()`. +=== <tt>!GetTeamStats(teamname)</tt> (0.9.23) === +Returns a table of internal stats of a team. This table has the following fields: + +* `Kills`: Number of kills +* `Suicides`: Number of suicides (kamikaze, piano strikes) +* `AIKills`: Number of AI kills +* `TeamKills`: Number of defeated teams +* `TurnSkips`: Number of skipped turns +* `TeamDamage` + == Math Functions == === <tt>div(dividend, divisor)</tt> ===