Jump to content
  • 0

change choice text


LynxzGaming

Question

Posted

How to make when the choice is pressed

::begin::

menu = gg.choice({'On'})

if menu == 1 and menu(1)text is On then

--menu(1) will change text to 'Off' 

goto begin

end

if menu == 1 and menu(1)text is off then

--menu(1) will change text to 'On' 

goto begin

end

5 answers to this question

Recommended Posts

Posted
menuText = 'On'

::begin::

menu = gg.choice({menuText})

if menu == 1 and menuText == 'On' then
  menuText = 'Off'
  goto begin
elseif menu == 1 and menuText == 'Off' then
  menuText = 'On'
  goto begin
end

 

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.