share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <Wuzzy2@mail.ru>
Mon, 14 Jan 2019 21:19:57 +0100
changeset 14595 c5f18710a184
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Remove "loser" messages in challenges The point of challenges is not to "win", but to reach a highscore, so we need not to rub failure into the player's face.

-- Library for parameters handling

params = {}

function parseParams()
    if ScriptParam ~= nil then
        for k, v in string.gmatch(ScriptParam, "(%w+)=([^,]+)") do
            params[k] = v
        end
    end
end