ghreef
Member
|
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 |
|
Esenthel
Administrator
|
RE: Quests management?
Check quest.cpp
Bool QuestCompleted;
STRUCT(QuestMessageClass , GuiObjs)
("gui/quest.gobj");
|
|
03-24-2011 02:07 PM |
|
ghreef
Member
|
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 |
|
Esenthel
Administrator
|
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 |
|
Dynad
Member
|
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 |
|