Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Sutayh

Member Since 01 Apr 2008
Offline Last Active Apr 28 2014 10:55 AM

#5131732 Designing a "quest" system for top down 2d rpg

Posted by Sutayh on 16 February 2014 - 10:35 AM

In your unit class, I would probably have it send a message to your quest engine every time something dies that includes the type of the deceased unit.  The quest engine could then iterate through the QuestKillUnits until it found a match for the type of unit and increment the count by one.  Your QuestKillUnits class needs a variable to hold how many units have been killed.  When that variable is updated, it can send a message to your screen showing something like, "killed 5/6 werewolves".




PARTNERS