I now what I am asking is possible because I already saw it in two games but for everything I search before asking here I know is not always so easy, in the worst case I already have a location value setted to each place/room the user can be and I could do a gigantic if location == placeone: jump placeonelabel, but I already have more than 20 places and I'm not done yet adding places so I really don't want to do that gigantic if that I will have to update every single time I add a room.
Not sure what part of the code I should add to make it easier, so here is the basic cellphone, I can always add something else if needed
PS: the f_cellshow is unused at the moment, I had an idea but it didn't worked as planned
Code: Select all
label cellphone():
if f_cellshow == False:
if celltab == 1 and f_cellshow == True:
$ f_cellshow = True
jump cell_chars
elif celltab == 2 and f_cellshow == True:
$ f_cellshow = True
jump cell_stats
elif celltab == 3 and f_cellshow == True:
$ f_cellshow = True
jump cell_galle
elif celltab == 4 and f_cellshow == True:
$ f_cellshow = True
jump cell_achie
elif celltab == 5 and f_cellshow == True:
$ f_cellshow = True
jump cell_links
elif celltab == 6 and f_cellshow == True:
$ f_cellshow = True
jump cell_devel
label cell_chars():
$ celltab = 1
call screen cell_chars
label cell_stats():
$ celltab = 2
call screen cell_stats
label cell_galle():
$ celltab = 3
call screen cell_galle
label cell_achie():
$ celltab = 4
call screen cell_achie
label cell_links():
$ celltab = 5
call screen cell_links
label cell_devel():
$ celltab = 6
call screen cell_devel
label cell_quit():
$ f_cellshow = False