Time Length On Quests

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.
Post Reply
User avatar
Epiales
Posts: 1119
Joined: Thu Aug 15, 2013 1:38 am

Time Length On Quests

Post 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.
Nothing fancy, but a work in progress!

http://gameplaytoday.net
User avatar
MikuzA
Posts: 395
Joined: Thu Aug 08, 2013 8:57 am

Re: Time Length On Quests

Post 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..
Why so serious?

Business Intelligence, Data Engineering, Data Mining
PHP, HTML, JavaScript, Bash/KornShell, Python, C#, PL/SQL
MySQL, DB2, Oracle, Snowflake
Pentaho, DataStage, Matillion, Unity3D, Blender
Post Reply

Return to “Beginner Help and Support”