16
Technical forum / Quest log
« on: May 03, 2009, 04:10:23 AM »
I have a Quest log in our game--it's there in very lengthy, code-demanding format -- there has to be a simpler way--does anyone have any ideas on how to implement this in the simplest way?
Our game is very heavy on quests. You meet someone--they give you a task. The quest shows up as something to be done.
You finish the task. The quest shows up as finished.
My way of doing this takes up a lot of code as mentioned. I use a global when the quest is given, if global is true a box is checked. When it's finished, another box is checked. As the game is already very large, I'd like to cut this down to its simplest format.
Or should an adventure game not have an in-game quest log? Is pen and pencil better?
This is an example of the code for a quest showing up. Qu3 is just a description of the quest. Q3T is whether the box that you get the quest is checked. Q3F is the box that shows whether you have finished the quest:
And lastly but most importantly, I'd like the quest log to be filled up as the player encounters a quest, so that whether it's quest 1 or quest 15, the encountered quest shows up in the log as the first one. So far I've not been able to figure out how to do this. I'm sure it means an array of some kind but I am not that savvy re arrays. I need a little push in the right direction.
Our game is very heavy on quests. You meet someone--they give you a task. The quest shows up as something to be done.
You finish the task. The quest shows up as finished.
My way of doing this takes up a lot of code as mentioned. I use a global when the quest is given, if global is true a box is checked. When it's finished, another box is checked. As the game is already very large, I'd like to cut this down to its simplest format.
Or should an adventure game not have an in-game quest log? Is pen and pencil better?
This is an example of the code for a quest showing up. Qu3 is just a description of the quest. Q3T is whether the box that you get the quest is checked. Q3F is the box that shows whether you have finished the quest:
Code: WME Script
And lastly but most importantly, I'd like the quest log to be filled up as the player encounters a quest, so that whether it's quest 1 or quest 15, the encountered quest shows up in the log as the first one. So far I've not been able to figure out how to do this. I'm sure it means an array of some kind but I am not that savvy re arrays. I need a little push in the right direction.