Changing the main menu is easy! First assign a persistent. For instance:
“Choose a different menu“
$ persistent.end = “Menu 1“
$ persistent.end = “Menu 2“
Now that the dialogue scripting is out of the way, we move to the more technical part of the script. Change the default “screen main_menu:” to conditional ‘if … else’ statement to connect with the choice made.
Copy the assigned flags to the statement such as below:
if persistent.end == “Menu 1“:
elif persistent.end == “Menu 2“:
The “==” is a relational operator to tell if the two operands to return true or false value. It is required whenever we use any conditional statement.
View original post 130 more words