I’m following the code in Jim Aikin’s Inform 7 handbook (v 2.0 May 2015) (pg 159) to define a new action which is digging up a pile of dirt. Inform is not recognizing the past tense of the verb “dig” (either as the correct “dug” or the alternative “digged” which makes me feel weird but any port in a storm, right?) anywhere where the past tense needs to be used. Do I need to use a regular tense verb like “shovel/shoveling/shoveled” instead?
I’m not crazy about it, but if it’s just a regular/irregular verb tense issue, I’ll survive. I figure I’d ask before switching just in case someone else had a thought allowing me to use dig/dug instead.
Thanx in advance. All the help I’ve gotten so far has been top drawer. I really appreciate it!
[code]The pile of dirt is scenery in the Backyard. The description of the dirt pile is “[if the pile of dirt is dug]You shovel away the dirt revealing a series of letters. Once you move enough dirt to expose the letters, you brush the remaining loose dirt away to reveal this message: ‘DIGDUGBADGUY.’[otherwise]The pile of dirt looks like it has been there for some time, though you know it wasn’t there on your last visit before Uncle Corey’s death. There are weeds, small tufts of grass, and even a few wildflowers growing from the dirt. It looks vaguely like the ground in Wall-E when they first return to Earth. On the cement, partially obscured by the dirt, you can see what looks like part of a three inch high letter done in purple paint. ‘B’ maybe or ‘D.’ ‘R’? It’s definitely a letter. You just can’t tell which one. It’s packed much too hard to dig up with your hands. Maybe if you had a shovel.” The printed name of the pile of dirt is “[if the pile of dirt is dug]dug up [end if]pile of dirt.”
Understand “dirt” and “dirt pile” as the pile of dirt.
Digging is an action applying to nothing. Understand “dig” and “dig up” as digging.
if the player carries the shovel:
say “You need to be more specific about what you want to dig up.”
Dig-upping is an action applying to one thing. Understand “dig [something]” and “dig up [something]” as dig-upping.
if the noun is the dirt pile:
if the dirt pile is dug:
say “You already dug up the dirt.”;
otherwise if the player carries the shovel:
try digging the dirt pile with the shovel instead;
say “You’ll need to find a shovel if you want to do that.”;
say “[The noun] [look] fine the way [they] [are].”
Digging it with is an action applying to two things. Understand “dig [something] with [something]” and “dig up [something] with [something]” as digging it with.
Check digging it with:
if the second noun is not the shovel:
say “The [second noun] isn’t for digging. You use shovels for that. Duh.” instead;
otherwise if the player does not carry the shovel:
say “You best locate a shovel if you want to do that.” instead;
otherwise if the noun is not the dirt pile:
say “[The noun] [look] fine the way [they] [are].” instead;
otherwise if the dirt pile is dug:
say “You did that already. Remember?” instead.
Carry out digging it with:
now the dirt pile is dug.
Report digging it with:
say “You dug that dirt like a Dig Dug pro.”[/code]