Jump to content
  • 0

Make loop when click out menu area


KomPo

Question

5 answers to this question

Recommended Posts

14 minutes ago, KomPo said:

 

I want to make loop here to not end script.

I dont know how to do it.

 

local t = gg.multiChoice({'馃敟锔廏odMode','馃敟Killaura'}, nil,"hello")

if t == nil then

else

function starting()
local t = gg.multiChoice({'A', 'B', 'C', 'D'})
if t == nil then
starting()

end 

end

starting()

Link to comment
Share on other sites

1 hour ago, KomPo said:

How can i make it like it doesnt automaticly go back to menu.

I want it like when when press gg icon its back in the menu

Oh .

For it you need different type script .

By manage value of word for set visibility of GG icon (Example By = -1 and 2 )

Link to comment
Share on other sites

33 minutes ago, KomPo said:

Can you send me a link what kind of script it needs to be

TopGEO=1
function starting()
local t = gg.multiChoice({'A', 'B'})
if t == nil then

else
    if t[1] then
        A()
    end
    if t[2] then
        B()
    end
    end
TopGEO=-1
end
function A()
gg.alert('do A') 
end
function B()
gg.alert('do B')
end


while(true)
do
  if gg.isVisible(true) then
    TopGEO=1
    gg.setVisible(false) 
  end 
  gg.clearResults()
  if TopGEO==1 then   starting() end
end

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.