Help creating a game mechanic

Im looking to create a game play mechanic where the player must make narrative decisions or dialogue choices in real-time, within a certain time limit, with their choice (or lack thereof) affecting if the player completes the level.
Can any one help and point me in the right direction for tutorials or online video please.As im struggling to find anything myself.