LuaAPI.wiki
changeset 1538 1fa7f4048719
parent 1537 9e6138eb93da
child 1539 7c038e79eddf
equal deleted inserted replaced
1537:9e6138eb93da 1538:1fa7f4048719
  1493 || *`TStatInfoType`* || *Meaning of `statMessage`* || *Team parameter used?* ||
  1493 || *`TStatInfoType`* || *Meaning of `statMessage`* || *Team parameter used?* ||
  1494 || `siGraphTitle` || Title of the graph. If you use this, the health icon changes into a star. || No ||
  1494 || `siGraphTitle` || Title of the graph. If you use this, the health icon changes into a star. || No ||
  1495 || `siGameResult` || Title of the stats screen, used to show the result of the game, i.e. who won the game || No ||
  1495 || `siGameResult` || Title of the stats screen, used to show the result of the game, i.e. who won the game || No ||
  1496 || `siCustomAchievement` || A freeform text for a single “bullet point” in the “bullet point” list in the details section. For each time you call `SendStat` with this `TStatInfoType`, a new “bullet point” gets added to the list. || No ||
  1496 || `siCustomAchievement` || A freeform text for a single “bullet point” in the “bullet point” list in the details section. For each time you call `SendStat` with this `TStatInfoType`, a new “bullet point” gets added to the list. || No ||
  1497 || `siPointType` || Replaces the word “kills” in the ranking list. You have to call this each time before you report the score or kills of a team with `siPlayerKills`. Sadly, grammatical number is currently not respected at all here. || No ||
  1497 || `siPointType` || Replaces the word “kills” in the ranking list. You have to call this each time before you report the score or kills of a team with `siPlayerKills`. Sadly, grammatical number is currently not respected at all here. || No ||
  1498 || `siPlayerKills` || The number of kills for the specified team (converted to a string), as shown in the ranking list. Unless the word “kills” has been replaced by `siPointType`, then that word is used instead. Only integers (converted to string) are possible. || Yes ||
  1498 || `siPlayerKills` || Adds a team into the ranking with the given number of kills. The order in which this is called for each team matters. Unless the word “kills” has been replaced by `siPointType`, then that word is used instead. Only integers (converted to string) are possible. || Yes ||
  1499 || `siClanHealth` || Value of a data point. This sets a single data point on the graph for the specified team. All teams will be converted to clans prior to drawing, there can only be one chart per clan. Subsequent calls will draw the next point along the horizontal axis; the frontend will then simply connect the dots in the final chart. Only whole numbers are supported. There must be at least 2 data points for any given clan, otherwise there won't be much to look at. ;-) You also should have called `SendHealthStatsOff` if to prevent the default health graphs to be drawn. || Yes ||
  1499 || `siClanHealth` || Value of a data point. This sets a single data point on the graph for the specified team. All teams will be converted to clans prior to drawing, there can only be one chart per clan. Subsequent calls will draw the next point along the horizontal axis; the frontend will then simply connect the dots in the final chart. Only whole numbers are supported. There must be at least 2 data points for any given clan, otherwise there won't be much to look at. ;-) You also should have called `SendHealthStatsOff` if to prevent the default health graphs to be drawn. || Yes ||
  1500 || `siMaxStepKills` || Most hedgehogs killed in a round. `statMessage` must be in format “`<kills> <name of killer hedgehog> (<team name of killer>)`”. || No ||
  1500 || `siMaxStepKills` || Most hedgehogs killed in a round. `statMessage` must be in format “`<kills> <name of killer hedgehog> (<team name of killer>)`”. || No ||
  1501 || `siMaxTeamDamage` || Team with most damage inflicted to self. `statMessage` must be in the format “`<damage> <team name>`”. || No ||
  1501 || `siMaxTeamDamage` || Team with most damage inflicted to self. `statMessage` must be in the format “`<damage> <team name>`”. || No ||
  1502 || `siKilledHHs` || Total number of killed hedgehogs (converted to string). || No ||
  1502 || `siKilledHHs` || Total number of killed hedgehogs (converted to string). || No ||
  1503 || `siTeamStats` || This does not have an effect. || No ||
  1503 || `siTeamStats` || This does not have an effect. || No ||
  1513 
  1513 
  1514 SendStat(siGameResult,'Winner is Team A!')
  1514 SendStat(siGameResult,'Winner is Team A!')
  1515 
  1515 
  1516 SendStat(siCustomAchievement,'This is a custom message posted in the Details section!')
  1516 SendStat(siCustomAchievement,'This is a custom message posted in the Details section!')
  1517 
  1517 
  1518 -- Changes the word kill to Point, call it just before sending kills/score for each hog
  1518 -- Adds 3 teams into the ranking: First, Team A (with 3 kills), then Team B (1 kill) and then Team C (5 kills).
  1519 -- in case you want to change the word i.e. print Point or Points
  1519 SendStat(siPlayerKills, "3", 'Team A')
  1520 SendStat(siPointType,'Point')
  1520 SendStat(siPlayerKills, "1", 'Team B')
  1521 
  1521 SendStat(siPlayerKills, "5", 'Team C')
  1522 -- if above function call was not used it will print 3 kills for teamName in Ranking section.
  1522 
  1523 -- if it was used it will print 3 Point for teamName in Ranking section.
  1523 -- In the next ranking, this changes the word “kills” to “points”,
  1524 SendStat(siPlayerKills,'3',teamName)
  1524 -- call it just before sending kills/score for each team
       
  1525 -- in case you want to change the word i.e. print “point” or “points”
       
  1526 SendStat(siPointType, "points")
       
  1527 
       
  1528 -- this will add Team D to the ranking and show “3 points“ in brackets (because of the siPointType above)
       
  1529 SendStat(siPlayerKills, "3", "Team D")
  1525 
  1530 
  1526 -- call siClanHealth to send the "value" of a clan that will be used for the graph creation
  1531 -- call siClanHealth to send the "value" of a clan that will be used for the graph creation
  1527 -- a good idea is to call it always for every hog by using the runOnGears(function)
  1532 -- a good idea is to call it always for every hog by using the runOnGears(function)
  1528 -- in normal mode "value" represents clan health
  1533 -- in normal mode "value" represents clan health
  1529 SendStat(siClanHealth, "100",teamName)
  1534 SendStat(siClanHealth, "100", "teamName")
  1530 
  1535 
  1531 -- most hedgehogs killed in a round (hedgehogName is who killed them)
  1536 -- most hedgehogs killed in a round (hedgehogName is who killed them)
  1532 SendStat(siMaxStepKills, "1 hedgehogName (teamName)")
  1537 SendStat(siMaxStepKills, "1 hedgehogName (teamName)")
  1533 
  1538 
  1534 -- team with most damage inflicted to self
  1539 -- team with most damage inflicted to self