Page 1 of 1

Time Length On Quests

PostPosted: Wed Oct 08, 2014 8:07 pm
by Epiales
I've watched the quest system from the older videos and have one setup now. I was wondering if there was a way, when someone finishes a quest, that you can put a time limt on when they can begin another quest? I might could figure this out with just a regular php variable, but the quests are in a while loop to echo them out in the game and I have no idea how I would implement such a thing when it's calling the quests from the database.

Re: Time Length On Quests

PostPosted: Thu Oct 09, 2014 12:49 am
by MikuzA
Hello, why not just store a 'last_quest_finished' timestamp and during the loop,
add an if to the quest echos by checking the timestamp if its enough old to allow the player to start another quest..