I have a block conditional that was working. I added two new items and now getting ‘otherwise’ errors. I have looked until I’m cross-eyed. Anyone want an easy Solution point? What’s wrong with this code?
This is the stripping rule:
if the number of entries in L is 0:
say "Nothing left to strip";
stop the action;
otherwise:
let target be entry 1 in L;
[These targets are most likely player will have in his possession.]
if target is:
-- amulet: say "The magical amulet is caught in the zombie's claws and ripped from your neck. It flies across the room.";
-- bell: say "You hear the magic bell clank as it bounces onto the floor.";
-- book: say "You hear your book fall to the floor with a 'Clop.' ";
-- right lt_bar: say "The zombie knocks off your [target] and it flutters to the floor.";
-- left lt_bar: say "The zombie knocks off your [target] and it flutters to the floor.";
-- otherwise: say "In the battle, your [target] goes skittering across the floor.";
remove target from L;
now target is in Columbarium;
The error I get is:
Problem. You wrote ‘-- otherwise’ : but this seems to be misplaced since it is not a case within an ‘if X is…’, as it must be. Each case must be placed one tab stop in from the ‘if X is…’ to which it belongs, and the instructions for what to do in that case should be one tab stop further in still.