share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <almikes@aol.com>
Tue, 12 Apr 2016 23:04:05 +0200
changeset 11708 d5d798172875
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Fix crate costs in Construction Mode being all the same (fixes #15)

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