Hmm…
I remember making a post on the Intfiction.org forums about a previous problem with Inform 7, and you all were quite helpful.
I come with another problem - using the unused actions.
Now, before I post the code that’s giving me the problem, let’s just explain what’s happening here. You’re sneaking - well, rather, running - from an anarchic group called the Horde. The “light at the end of the tunnel”, or the exit out of the forest where this group may still be (and you happened to end up!) seems closer and closer and then suddenly as you walk into a new area in the forest, you see one of the generals of the Horde! Paralyzed with fear, you reach for your dagger - you may not be able to wound him through his darkened and bloodied battle armor, though the diamond-like substance of which the dagger is made might be able to thrust far enough through his armor to stun him, leaving you able to escape in the opposite direction.
Okay, so none of that story matters much.
Anyway, the problem:
[code]Check attacking Vuslief the Slayer:
if Spotted by the Slayer is happening
begin;
ignore the block attacking rule;
end if.
Report attacking Vuslief the Slayer:
if the crystalline dagger is carried
begin;
if Vuslief the Slayer is not stunned
begin;
say “You thrust [the dagger] at Vuslief the Slayer! He reels backwards suddenly - it must have broken through his armor and wounded him suddenly, catching him off-guard! Now is the time to escape!”;
now Vuslief is stunned;
end if;
else if the crystalline dagger is not carried by the noun;
say “You can’t attack without a weapon! What happened to your dagger?”;
else if Vuslief the Slayer is stunned;
say “He’s already stunned and reeling from your blow. Escape back into the forest!”;
end if.
[/code]
Vuslief the Slayer is the name of the general, while “Spotted by the Slayer” is the scene that starts once he sees you. Three moves is all he needs to dig his blade up out of the ground, raise it and slash you in two - thus the scene.
Now, here’s the problem. When I compile it, no errors.
But when I play:
[code]Tunnel of Oak
The branches of the oak trees hang over you from far above, intertwining with each other to form a shady path. Browned leaves from the autumn of yesteryear crunch under your feet as you walk through the path, and the trees on either side get denser and denser, sometimes growing their roots into each other. To the north, you can see a “light at the end of the tunnel” - the way out of the forest and onto the main road. The path continues to the south.
An armored knight of the Horde, commonly known as the heartless killer Vuslief the Slayer, stands here with both hands on his massive blade.
attack vuslief
[/code]
Nothing. It doesn’t do what it should under the circumstances - doesn’t say what it’s supposed to, or apparently stun him. Testing shows that the action did succeed, however.
What am I doing wrong here?