From 1a5586c020f9b841e22236c9a6d078b47cc3dd29 Mon Sep 17 00:00:00 2001 From: EIA485 <17285570+EIA485@users.noreply.github.com> Date: Mon, 25 Jul 2022 01:54:11 -0700 Subject: [PATCH] no semicolons necessary in lua --- random-selection-fixtures/script.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/random-selection-fixtures/script.lua b/random-selection-fixtures/script.lua index 9733a7e..aa4a710 100644 --- a/random-selection-fixtures/script.lua +++ b/random-selection-fixtures/script.lua @@ -2,31 +2,31 @@ -- Created by Corentin Azelart, 03-Jun-2015, v3.1.0.8 -- Extract some vars -local internal_name = select(1,...); -local visible_name = select(2,...); +local internal_name = select(1,...) +local visible_name = select(2,...) -- Declare a logger -local E = gma.feedback; +local E = gma.feedback -- Declare a gma command -local C = gma.cmd; +local C = gma.cmd -- Init... E("Plugin " .. internal_name .. " successfully loaded.") E("Plugin will appear as " .. visible_name .. " in plugin pool.") local function NewRandomFixturesSelection() - local selectedFixtures = gma.show.getvar("SELECTEDFIXTURESCOUNT"); + local selectedFixtures = gma.show.getvar("SELECTEDFIXTURESCOUNT") if(tonumber(selectedFixtures) > 0) then for count = 0, selectedFixtures, 1 do - C("Next"); + C("Next") if(math.random(0, 1) == 0) then - C("At 100"); + C("At 100") end end else - gma.gui.confirm("Unable to find fixture selected", "Please select more groups and/or fixtures"); + gma.gui.confirm("Unable to find fixture selected", "Please select more groups and/or fixtures") end end -return NewRandomFixturesSelection; \ No newline at end of file +return NewRandomFixturesSelection