When play begins:
If the player is a woman, say “You are a woman.”;
otherwise if the player is a man, say “You are a man.”[/code]
This seems to be a product of the if/otherwise syntax. Switching to Python syntax makes the error go away. The if-conditions don’t seem to be important at all.
The problem that the compiler is trying to report is that you can’t use “otherwise if” with the one-liner form of “if”. You can use the Python form, or this:
When play begins:
If the player is a woman begin;
say "You are a woman.";
otherwise if the player is a man;
say "You are a man.";
end if.