Design and documentation journal for my interactive fiction (text games); also reviews and other miscellaneous stuff.

Friday, November 19, 2010

63% of Bugs are Stupid Mistakes

It turns out that this:

When During Starvation begins:
    discover During Starvation;
    if the player is awake:
        say "You are ravenous."

and this:
When During Starvation begins:
    if the player is awake:
        discover During Starvation;
        say "You are ravenous."
are radically different things.  In this case, it produced a bug where the PC could wake up after a refreshing nap and have *no idea* she was starving to death.  Oops.

I accidentally copied from the sleeping status scene, because the only reason exhaustion would start during sleep is if it'll get cancelled out moments later.

When During Exhaustion begins:
    if the player is awake:
        discover During Exhaustion;
        say "You are very, very tired."
 Man, that is a winning bit of prose there for the exhaustion scene.  I bet I thought it was funny at the time.

No comments:

Post a Comment