game system for question for dialog system.? (newbie here)

Lloyd;

Sir/Man, I’m having a trouble of how can i make a gameplay which the game mechanics is:.
-collect 10 same items
-pop-out question with a default random three question on it.
-question should be pop out upon collecting the 10 items.
-upon answering the question if answer is incorrect should be restart from the scene/level

  • game must have three trials on each scene/levels if the the player fails at three trials, game must restart from the beginning of the game.

Hope you guys! help me! :thx.

It’s not clear to me which part you need help with.

Are you asking if is possible to do something like that or is asking for developers?

Im asking if it possible to create a game play which game mechanics is to provide a dialog Q/A box?

Yes.

(1) Run your gameplay until some event.
(2) Pause/end gameplay.
(3) Show popup.
(4) On result either restart level/game (incorrect) or do something else (correct).

but i don’t know how to create this kind of game play, can you give me some tutorials? examples on how will i make this game?