About Store Forum Documentation Contact



Post Reply 
Quests management?
Author Message
ghreef Offline
Member

Post: #1
Quests management?
Can anyone point me in direction of where quest management takes place? I've looked in the RPG2 code, the GUI files and other places, but can't seem to come up with where the guy gives the quest for the horse skill.

Thanks,
03-23-2011 08:10 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Quests management?
Check quest.cpp

Bool QuestCompleted;
STRUCT(QuestMessageClass , GuiObjs)
("gui/quest.gobj");
03-24-2011 02:07 PM
Find all posts by this user Quote this message in a reply
ghreef Offline
Member

Post: #3
RE: Quests management?
But ... I don't understand then. I found the actual management in
chr.cpp

void Chr::toggleChr
Everything for the quest is in here, not in quest. Can you elaborate so I can understand? I get that the questcompleted variable is in quest.cpp and that handles communication into the gui/quest.gobj, but the real work is being done in the chr.cpp right? Point being, in a larger game with lots of quests, that chr.cpp is going to be huge.

Thanks.
03-24-2011 05:50 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Quests management?
you don't need to put your quest codes in chr.cpp
I did that because ERPG2 is only simple demo, so quest codes were only few lines.
03-25-2011 12:45 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #5
RE: Quests management?
You can always create a new class to handle this. Some kind of Quest Manager that handles all the quests for the player and update the manager from the Chr class.

There is always evil somewhere, you just have to look for it properly.
03-25-2011 05:28 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply