share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <Wuzzy2@mail.ru>
Mon, 28 Oct 2019 20:40:46 +0100
changeset 15496 3dc01bbcd0d8
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Refactor Rope Knock Chellenge to use RopeKnocking library 100% compatible with old version. Players won't notice any difference.

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