share/hedgewars/Data/Scripts/Params.lua
author nemo
Sat, 29 Mar 2014 13:57:46 -0400
changeset 10219 bbeb1e9aaa65
parent 9985 42cd42e44c9a
permissions -rw-r--r--
param for original highlander mode - right now just allows getting another copy of a weapon you already had, but had used that turn.

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