share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <almikes@aol.com>
Tue, 02 May 2017 21:16:07 +0200
changeset 12390 c051ac2544f2
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Add note in Diver scenario that jetpack only has 50% fuel

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