share/hedgewars/Data/Scripts/Params.lua
author Wuzzy <Wuzzy2@mail.ru>
Fri, 05 Jun 2020 00:37:33 +0200
changeset 15591 130b5052335c
parent 9985 42cd42e44c9a
permissions -rw-r--r--
Add missing /sad command help

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