Developing a quest system

0 favourites
  • 4 posts
From the Asset Store
It's a very interesting and hard quest. It so hard that there is not way to win!
  • Anyone here added quest / missions to their games? I'm doing this for the first time and would like to get some input on how to go about it. I have a few things in mind but they just sound...rough. My main idea is to just use dictionaries with a custom quest editor to create all the keys and default it'd be something like this:

    Quest_GetTheKeys_Description : String

    Quest_GetTheKeys_Active? : Bool

    Quest_GetTheKeys_Complete? : Bool

    Quest_GetTheKeys_Key1 : Bool

    Quest_GetTheKeys_Key2 : Bool

    Quest_GetTheKeys_Key3 : Bool

    Then when a key object is collected I'd run a loop to see if all 3 have been collected. If so, Quest_GetTheKeys_Complete is set to 1 and the player is able to turn it in.


  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I am fairly new to Construct 2 but I can't see why your idea shouldn't work? I guess that you are making top down RPG game?

    I would change the code like something below to easier reuse the code if you are going to have another quest later on, like GetTheKeysAgain. Then you just have to change how many keys you are going to collect (IntComplete) and then change the Quest string.

    Quest_GetTheKeys_Description: String

    Quest_GetTheKeys_Count: 0

    Quest_GetTheKeys_IntComplete: 3

    Quest_GetTheKeys_Complete: false

    When picking up a key:


    if Quest_GetTheKeys_Count = Quest_GetTheKeys_IntComplete


    Quest_GetTheKeys_Complete: True

    Quest_GetTheKeys_Count = 0 (Reset)

    When you hand it in:

    Quest_GetTheKeys_Complete: false;

    Add 1000000 coins + 500000000 xp

  • My system is probably not as technical as a lot of people would make theirs out to be, but it works great for me. I just have a list of every quest in my game (I keep a spreadsheet). Each one has a number assigned to it. This corresponds to an in-game column in my data array that I store everything in. I just change the value of each cell to correspond to the status of the quest. Typically, 0=Open, 1=In Progress, 2=Complete unless the quest needs more to keep track of. I do the same thing for puzzles, chests, and objects throughout the game--the game just checks an instance variable on an object vs that cell in the array to see what to do (or not do!).

    Is it the best way to do it? I'm sure it isn't. Does it work flawlessly and do everything I need (and is easy)? Absolutely.

  • C-7 Yeah that doesn't sound too bad, actually. I just prefer dictionaries because of the named keys.

    Off topic but for "item persistence" you mentioned at the end there, I prefer using dictionaries for that too. You can add a key with the object's IID and layout, then refer to that to see if it's collected or not. No need for manual checks or spreadsheet/array reference! I can see how that would be better in some cases, though.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)