Adding Quests to my game
<p>I've finally decided to add quests to my game. I'd like the quests to be individual to each other. Maybe later one, one having another quest completed before that one is accessed. Anyway.</p>

<p>How do I go about this? I've thought about it a ton. I'm a PHP/Javascript/Mysqli guy. </p>

<p>You talk to a NPC, if you pick the right "answers" they will start the quest. You do the tasks, you might have to talk to other NPCs. It all depends. How do i store the conversations and show them?</p>

<p>Thanks.</p>

<p><em><strong>EDIT</em></strong></p>

<p>This is what I've "Done".</p>

<pre><code>var people = [];
people[1]=['name'=&gt;'Joe'];
people[1]['questions'][1] = 'Why, hello there';
people[1]['questions'][1]['send'] = 1;
people[1]['questions'][2] = 'My name is Joe, You seem to be new around here';
people[1]['questions'][2]['send'] = 2;
people[1]['questions'][3] = 'Why certainly! How about I send you on a quest to help you.  It will get you aquainted with Corgate';
people[1]['questions'][3]['send'] = makequest(1);
people[1]['answers'][1] = array('Hello, who are you?');
people[1]['answers'][1]['send'] = 2;
people[1]['answers'][2] = array("I'm not new! Good bye!",'Yes I am, Can you help me?');
people[1]['answers'][2]['send'][1] = 3;
people[1]['answers'][2]['send'][2] = endthis();
</code></pre>

<p>Very sloppy. yes. Basically, It starts with the question. Then "sends" to the answer with that Id. Then, based one the array of answers chosen, it then sends that to the corresponding question.</p>
