- Home /
How can I make a quest for my mmorpg game
I have been working on a mmorpg game, and it is coming along great to. Though there are some problems and some of them are that I need to make a quest system. I am trying to accomplish this by doing this for example "kill 3 Minions of Dalon" that is what I am trying to accomplish. Are there any tutorials you can suggest? You can even write me a code if you want to. I want to do this by using my character then accepting it from an ai this would be very helpful to.
Answer by Statement · Jan 09, 2013 at 05:25 PM
Well, you could give the player a quest script that hooks up with events that fire when a monster is killed. If it is a Dalon, increase the number of tracked kills by one. If the criteria for the quest has been met, reward the player or give them a new objective.
You could get the quest by interacting with the AI however way you see fit for your game. For example, OnMouseDown could be used to determine if clicking the collider of your NPC. It could open a GUI menu, like "give me another quest". Then a quest could be picked from a predefined selection of available quests that the NPC hands out. How you design the game to do all this is up to you, but try solving one problem at a time.
Here are some stuff that you probably need to solve (without thinking too much about the MMO part):
How can the user interact with the NPC to get to a point where a quest should be given?
The quest objectives need to be aware of changes in the world. For example, counting kills of a certain type, so you probably want to set up an event system to give your quests all relevant information.
The quest should likely also tell the user where to go finish the quest. This can for example be done by holding a reference to the quest giver, so the player has to return to that NPC.
The NPC could check if the player has any outstanding quests and if they are completed, award the player.
Your answer
Follow this Question
Related Questions
How do i make a quest in c# for my game? 1 Answer
Adapt a behavior tree graph structure to quest system 0 Answers
Oculus Quest - empty scene - only 25 FPS on build 1 Answer
Trigger action on one controller makes other controller disappear 1 Answer
NullReferenceException: Object reference not set to an instance of an object 1 Answer