What do I means by choiceless? What I meant is certain option in the menu is only available if certain condition are satisfied. And depend on how the player played, sometimes it turns out that the menu have only 1 choice available, or maybe even 0 choice. When such situation can happen, I wanted to be able to handle it slightly differently:
-If only 1 choice is available, the menu will never be shown to the player (this is to make it harder for the player to figure out that there is a choice here ). That only choice will be automatically chosen instead of showing the menu.
-If no choices are available at all, the menu will never be shown to the player, and a special path will be played. That special path is never going to be available as a choice, so the only way to access it is to ensure that none of the menu choices are available.
For example, this is a menu:
Code: Select all
"Suddenly, a hand grab me from behind. Another hand cover my eyes."
"Looks like a guy is trying to attack me."
menu:
"What should I do?"
"Fight back!" if defense_class>=4:
call fight
"Stab him with the ornate hairpin" if ornate_hairpin:
call stab
"\"Vincent, is that you?\"" if met_Vincent_Sat_event:
call figure
"Panic!!!":
call panic
I tried doing this:
Code: Select all
if defense_class>=4 and not ornate_hairpin and not met_Vincent_Sat_event:
call fight
return
if not defense_class>=4 and ornate_hairpin and not met_Vincent_Sat_event:
call stab
return
if not defense_class>=4 and not ornate_hairpin and met_Vincent_Sat_event:
call figure
return
if not defense_class>=4 and not ornate_hairpin and not met_Vincent_Sat_event:
call panic
return
menu:
"What should I do?"
"Fight back!" if defense_class>=4:
call fight
"Stab him with the ornate hairpin" if ornate_hairpin:
call stab
"\"Vincent, is that you?\"" if met_Vincent_Sat_event:
call figure
return
So I would like to know, is there a less painful way to handle this? Thanks for your help.