If Statments on Choice Menu?
Posted: Thu May 13, 2021 9:12 am
Hello. I'm designing a game where a character must find clues and items to overcome obstacles, for instance they come across a locked door with a keypad and have to search a room to find the entry code. However, I want to list every item and clue the character has currently found for every obstacle, and for the player to have to figure out which is the correct one to use.
Problem is, I don't want to list every possible answer ever and every possible clue ever for every challenge. Is there a way to have a choice menu pop up, but for the choices within it to be varied depending on actions the player has already taken.
For example:
Player walks into a room with a pair of scissors, an empty bottle and a bucket.
There is a locked door which they click on.
They are given the choice to use the scissors, bottle and bucket on the door but none work.
They use the scissors to open a deck and retrieve a code, but break the scissors in the process.
They click on the door again and this time the bottle and bucket are listed again, the scissors are not but the code now is
Basically the old point and click forumla
Any idea how to code this? I tried IF statments in the Choice Menu but couldn't get it to work at all.
Thank you
Problem is, I don't want to list every possible answer ever and every possible clue ever for every challenge. Is there a way to have a choice menu pop up, but for the choices within it to be varied depending on actions the player has already taken.
For example:
Player walks into a room with a pair of scissors, an empty bottle and a bucket.
There is a locked door which they click on.
They are given the choice to use the scissors, bottle and bucket on the door but none work.
They use the scissors to open a deck and retrieve a code, but break the scissors in the process.
They click on the door again and this time the bottle and bucket are listed again, the scissors are not but the code now is
Basically the old point and click forumla
Any idea how to code this? I tried IF statments in the Choice Menu but couldn't get it to work at all.
Thank you