If the player clicks a hidden object the doc appears with the correct speech and the continue button The score will also increase by one.
If the player clicks continue, the doc, speech and continue button disappear.
If the score reaches one the player advances to the next level.
This is code, right?
So yea...that's my pseudocode. Hope you enjoyed it!