I'm making a simple text-based battle between the player and a dragon. I use Menus to have the player select from a set of options. The Menu then obviously goes to the Lbl assigned to the selected option. Within the while loop for the game I can end the Lbls by using the End command to go back to the start of the loop, but when the player chooses the difficulty, there is no loop. How do I prevent all the subsequent Lbls from being executed in this code:
:Menu("DIFFICULTY?", "EASY", 00, "MEDIUM", 01, "HARD", 02) :Lbl 00 :75->D ://some end statement :Lbl 01 :150->D ://some end statement :Lbl 02 :300->D ://some end statement
Because currently, all Labels are executed resulting in the dragon having 300 health no matter the option chosen. (I don't want a work around with scalars or some other trick, I want to know how I can emulate what I described in a general situation so I can use the technique in future programs).