author | Wuzzy <Wuzzy2@mail.ru> |
Mon, 19 Nov 2018 00:54:36 +0100 | |
changeset 14236 | 74bf2d906097 |
parent 13501 | cbda0f842364 |
permissions | -rw-r--r-- |
HedgewarsScriptLoad("/Scripts/Locale.lua") function awardAchievement(name, statMessage, capgrp) local achievementString = string.format(loc("Achievement gotten: %s"), name) if capgrp == nil then capgrp = capgrpMessage2 end if capgrp ~= false then AddCaption(achievementString, 0xFFBA00FF, capgrp) end if not statMessage then statMessage = achievementString end SendStat(siCustomAchievement, statMessage) end