share/hedgewars/Data/Scripts/Params.lua
author nemo
Fri, 16 Jan 2015 17:51:29 -0500
changeset 10789 acbf69e2e5cf
parent 9985 42cd42e44c9a
permissions -rw-r--r--
experiment with air mines. thought they could make shoppa... interesting. ToDo: Allow mines to give up, tweak distances, real graphics, toggle for whether they can acquire a new target while they haven't given up.

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