share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <almikes@aol.com>
Tue, 25 Apr 2017 02:13:18 +0200
changeset 12320 a85212a8d0e0
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Backed out changeset 82951b9b3c2f Reason: People think giving hogs the weapons again in consecutive turns is OP

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