SCAVENGER HUNT - A HUGO TUTORIAL
by Gilles "LoneCleric" Duchesne

SO, WHAT IS THIS?
This zipped file contains what I like to call a "Step-by-step Coding Example" for the Hugo IF language.
In short, I took the source code of the game I wrote to learn the language myself, broke it down into multiple levels of complexity, and spread the whole thing with a thick layer of comments.

WHAT'S IN EACH FILE?
Each version keeps the code of the previous one, but with numerous additions and changes.
The files go like this:

SCAVHUNT1.HTM - Core & rooms
SCAVHUNT2.HTM - Scenery objects
SCAVHUNT3.HTM - Inventory objects
SCAVHUNT4.HTM - NPCs
SCAVHUNT5.HTM - Time & score
SCAVHUNT6.HTM - Misc info, credits & hints
SCAVHUNT7.HTM - Sounds & pictures

You should be able to take the textual contents of each of those files and turn it into a compilable .HUG file. Each version can be played and experimented (although versions 1 & 2 cannot be "won").

WHAT ARE ALL THOSE COLORS?

BLACK  - Indicates code which was taken from the previous version without any change
BLUE   - Indicates newly added code (except in version 1 - I didn't feel like making everything blue)
PURPLE - Indicates modified code
RED    - Indicates removed code (commented out in the current version, then completely removed afterwards)
GREEN  - The "meta-comments" I'm using to explain my code and my decisions

HOW IS THIS SUPPOSED TO BE USEFUL?
As I see it, this could be a good companion to the Hugo Manual.
Some people (like me) like to learn by seeing actual code samples. "The Vault of Hugo" does a nice job at this already, but I believe the incremental layers and the verbose explanations of this tutorial are a big bonus.