Sometimes I’m not sure if I’m missing something or the code is missing something. Admittedly, so far it’s always me; but why doesn’t this work?
[code]The Square is a room. Greta is a woman in The Square. John is a man in The Square. Asako is a woman in The Square. SeungHo is a man in The Square.
Instead of examining:
if noun is:
– a man: say “He’s handsome.”;
– a woman: say “She’s beautiful.”[/code]
It gives me the error message:
Problem. The case '-- a man' is required to be a constant value, rather than something which has different values at different times: specifically, it has to be the name of an object.
Problem. The case '-- a woman' is required to be a constant value, rather than something which has different values at different times: specifically, it has to be the name of an object.
But this does work:
Instead of examining a person in The Square:
if noun is a man, say "He's handsome.";
if noun is a woman, say "She's beautiful."
And while I’m here: I want my game to start at a random time. I tried
The time of day is a random time.
but that gives an error message
Problem. The sentence 'The time of day is a random time' tells me that 'time of day', which is a time that varies, should have value 'random time', but this is the name of an object and not a time.
So I tried
When play begins: change the time of day to a random time.
but then suddenly it starts complaining about other things in the code which had until now been working fine, all on the pattern of
Problem. You wrote 'change the hair-colour of the folk to a random hair-colour' , but 'hair-colour of the folk' is supposed to be a property whose kind of value is a hair-colour, so it cannot be set equal to a random hair-colour, whose kind is a hair-colour.
Buh? And moreover, what?
Zeborah