This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Wildcard for activation of scripts
#4
Hi,

In the meantime you could create a table of the script names and then parse the table with loop to enable\disable them.



Code:
local myscripts = {"script a","script b","Event for 12/0/1"}

function enablescripts()
  for i in pairs(myscripts) do
    script.enable(myscripts[i])
  end
end

function disablescripts()
  for i in pairs(myscripts) do
    script.disable(myscripts[i])
  end
end

-- to disable
disablescripts()

-- to enable
enablescripts()


Thanks,

Roger
Reply


Messages In This Thread
Wildcard for activation of scripts - by RSV4 - 06.07.2015, 12:23
RE: Wildcard for activation of scripts - by rocfusion - 06.07.2015, 12:56

Forum Jump: