Quest System in Developer Help
|
|
Alright I have a little quest system, it works like so; you start the game with a variable called talk, which is at 0. everytime you talk to an NPC, talk rises. if talk ==1 then you can do a quest, but once it rises you cannot do it again, which is good. but everytime you kill an enemy you get +1 to your quest, a variable. my first quest, if you get 10 quest(the variable), your quest is subtracted by 10 then the quest is completed. what worries me is that you get +1 quest EVERY NPC you kill, which doesn't work with the quest. any better systems?
|
I can't think of any other way to have it other than to define different quest variables for your different quests.
So instead of just 'quest +1', you would have to define: quest1, quest2, quest3, etc.
For example: (This is very similar to what I use)
This is assuming you need 10 *particular* NPC (not just any NPC) kills for that quest.
Edit: For some reason, the word "on" in the variables in the code are being changed to "disabled".
Not exactly sure why, but the variables that say "disabledquestX" should say "onquestX".