share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <almikes@aol.com>
Mon, 17 Apr 2017 18:47:56 +0200
changeset 12281 12f28d866c76
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Backed out changeset 8e9603088f99 Because unC0Rr, sheepluva and nemo like to know when their turn starts. This re-introduces the odd vows for revenge on every enemy turn start.

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