LuaAPI.wiki
changeset 347 edc8d322d02d
parent 346 5f322c85c0e0
child 359 418173e7af7a
--- a/LuaAPI.wiki	Thu Nov 21 19:10:37 2013 +0000
+++ b/LuaAPI.wiki	Tue Nov 26 00:18:31 2013 +0000
@@ -735,33 +735,33 @@
 
 <code lang="lua">
 -- will automatically change the health icon to a star
-SendStat('siGraphTitle','Custom Graph Title')
-SendStat('siGameResult','Winner is Team A!')
-SendStat('siCustomAchievement','This is a custom mesasge posted in the Details section!')
+SendStat(siGraphTitle,'Custom Graph Title')
+SendStat(siGameResult,'Winner is Team A!')
+SendStat(siCustomAchievement,'This is a custom mesasge posted in the Details section!')
 -- Changes the word kill to Point, call it just before sending kills/score for each hog
 -- in case you want to change the word i.e. print Point or Points
-SendStat('siPointType','Point')
+SendStat(siPointType,'Point')
 -- if above function call was not used it will print 3 kills for teamName in Ranking section.
 -- if it was used it will print 3 Point for teamName in Ranking section.
-SendStat('siPlayerKills','3',teamName)
+SendStat(siPlayerKills,'3',teamName)
 -- call siClanHealth to send the "value" of a clan that will be used for the graph creation
 -- a good idea is to call it always for every hog by using the runOnGears(function)
 -- in normal mode "value" represents clan health
-SendStat('siClanHealth', "100",teamName)
+SendStat(siClanHealth, "100",teamName)
 -- most hedgehogs killed in a round (hedgeHogName is who killed them)
-SendStat('siMaxStepKills', "1 hedgeHogName (teamName)")
+SendStat(siMaxStepKills, "1 hedgeHogName (teamName)")
 -- hog with most damage inflicted to his own team
-SendStat('siMaxTeamDamage', "100 hedgeHogName")
+SendStat(siMaxTeamDamage, "100 hedgeHogName")
 -- total number of killed hedgehogs
-SendStat('siKilledHHs', "1")
+SendStat(siKilledHHs, "1")
 -- increases the wins of local teams in case the given number is greater than 0
-SendStat('siTeamStats', "teamName:0:")
+SendStat(siTeamStats, "teamName:0:")
 -- best shot award
-SendStat('siMaxStepDamage', "30 hedgeHogName (teamName)")
+SendStat(siMaxStepDamage, "30 hedgeHogName (teamName)")
 -- team with most kills of own hedgehogs
-SendStat('siMaxStepDamage', "2 teamName")
+SendStat(siMaxStepDamage, "2 teamName")
 -- team with most skips
-SendStat('siMaxTurnSkips', "3 teamName")
+SendStat(siMaxTurnSkips, "3 teamName")
 </code>
 
 <b>Important:</b>