Jump to content

Recommended Posts

hello mates,

a quick question, i remember that you used to be able to do it like this:

quest NAME begin
	state start begin
		when. ...
		
		mainmenu()
		
		function mainmenu()
			locale headmenu == select("Page 1","Page 2","Page 3", "Next Page")
			if headmenu == 1 then
				page1()
			elseif headmenu == 2 then
				page2()
			elseif headmenu == 3 then
				page3()
			elseif headmenu == 4 then
				nextmenu()
			end
		end
		
		function page1()
			locale page1 == select ("Test","Back", "Cancel")
			if page1 == 1 then
				ansdfasdfnoapsdfpoasfd
			elseif page1 == 2 then
				mainmenu()
			elseif page1 == 3 then
				return
			end
		end
		
		function page2()
			locale page2 == select ("Test","Back", "Cancel")
			if page2 == 1 then
				ansdfasdfnoapsdfpoasfd
			elseif page2 == 2 then
				mainmenu() ....

Like to make some functions for each pages, to have a "Back"-Button, but it doesnt work anymore?

Link to comment
https://metin2.dev/topic/32799-quest-function-problem-not-able-to-do-that/
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.