share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <Wuzzy2@mail.ru>
Thu, 20 Dec 2018 19:03:34 +0100
changeset 14484 764ba6182389
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Change AddTeam/AddMissionTeam to return real team name and index (in that order)

-- 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