Hey, good morning everyone!
In my game I run a tight conversation system where players interact with NPCs and they are given multiple conversation options: they can listen, respond, or initiate conversation. As they communicate with NPCS, they lose or gain points.
With that said, How do I create a cooldown system. So after each specific interaction, the player must wait 5 minutes to do that interaction again (so players don't spam specific interactions)
For example.
Npc: "Nice weather we're having aye?"
Player:
Option 1: No it's terrible
Option 2: It's great
Player chooses option 2 "it's great".
5 minute cooldown on option is acitivated
Now option 2 is either grayed out or gives the player a message to wait.
Thank you anyone and everyone for your assistance. Much love!
In my game I run a tight conversation system where players interact with NPCs and they are given multiple conversation options: they can listen, respond, or initiate conversation. As they communicate with NPCS, they lose or gain points.
With that said, How do I create a cooldown system. So after each specific interaction, the player must wait 5 minutes to do that interaction again (so players don't spam specific interactions)
For example.
Npc: "Nice weather we're having aye?"
Player:
Option 1: No it's terrible
Option 2: It's great
Player chooses option 2 "it's great".
5 minute cooldown on option is acitivated
Now option 2 is either grayed out or gives the player a message to wait.
Thank you anyone and everyone for your assistance. Much love!