Attribute Problem
Posted: Fri Dec 30, 2011 10:21 am
I decided to branch off and do a 'quickie' game.
I am trying to declare characters and it doesn't work right. I finally had to declare a female character as an object instead of a female_character.
Well, anyway, one of the objects has the 'female' attribute, but when I look at it, it changes and sometimes it has it and sometimes it doesn't. Also the character 'you' has the female attribute set which it shouldn't.
Here's a short piece:
So in Init I have
I get the following
There is something that is changing things, it is like attribute bits are being reversed, I had to code-force the player to 'player is not female' to keep it from including me in code that should only work for females, e.g.
So that a command like "Kiss lisa" would work but "Kiss me" would not.
I am trying to declare characters and it doesn't work right. I finally had to declare a female character as an object instead of a female_character.
Well, anyway, one of the objects has the 'female' attribute, but when I look at it, it changes and sometimes it has it and sometimes it doesn't. Also the character 'you' has the female attribute set which it shouldn't.
Here's a short piece:
Code: Select all
object Lisa "Lisa"
{
is enterable
is platform
is female
is living
[other new attributes]
[other new properties]
adjective "lisa", "she", "girl"
nouns "lisa","she", "girl"
in room_a
}
Code: Select all
print BANNER
player = you ! player initialization
if (lisa is female)
print " Lisa is female "
if (lisa is not female)
print " Lisa is not female "
Code: Select all
Hugo v3.1 / Library 31031
Lisa is not female
Code: Select all
verb "kiss"
* DoKiss
* female DoKiss