Hallo,
ich möchte in Zeile 10 zurück zu 'zufall_1' in Zeile 2 returnen und den Zufall neustarten. Was muss ich in Zeile 10 angeben?
Lua
function start_zufall()
local zufall_1 = math.random(1, 2)
if zufall_1 == 1 then
lucky1 = guiCreateStaticImage(58,35,180,147,"images/lucky1.png",false,luckybox_Window)
elseif zufall_1 == 2 then
local zufall_2 = math.random(1, 2)
if zufall_2 == 1 then
lucky2 = guiCreateStaticImage(58,35,180,147,"images/lucky2.png",false,luckybox_Window)
elseif zufall_5000 == 2 then
-- return zu 'zufall_1' (Zufall neustarten)
end
end
end
Alles anzeigen
VG