Kill Quests

by Danny Roe
A method of handling those generic "Kill 'x' Enemies and Gain 'y' Cash" quests. [More]
To download this demo for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://DannyRoe.KillQuests##version=1

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://DannyRoe.KillQuests##version=1

291 downloads
Version 1
Date added: Mar 4 2013
Last updated: Mar 6 2013
5 fans
This demo shows you how you can handle a Quest System in which the object is to Kill x amount of the same mob in return for a Cash reward.

Comments

Danny Roe: (Mar 7 2013, 5:54 am)
I actually posted it as a demo, because technically you need to change the Cash variable to match your own currency. I do agree about the comments now that I've looked it over, I'll ammend that when I update it.
Magnum2k: (Mar 7 2013, 5:31 am)
Honestly, I feel as though this should be posted in the Tutorials & Snippets forum, rather than being incorporated into a library. It's far too short to be a library(to me, anyway) and seems more suitable as a code snippet. You also have a lot of trivial comments in the code; if you want to describe functions in-depth then write a documentation for the library, or even a simple readme file, as that is solely the purpose for it.