Hi, i’m a bit puzzled on having to start a new thread just for this matter, since it should be rather elementary, yet i haven’t actually found what i’m looking for.
I’m creating an animal which the player can name (through a js prompt thanks to vorple) and that is working fine. The animal is also intended to have a “truename”, thus i’ve declared it as having the truename and nickname properties as per the Fido example in the docs.
Now my question is, how do i check whether the text in these two variables is the same?
Instead of examining the cat: say "cat nick [nickname of the cat]. cat truen [truename of the cat] "; if "[nickname of the cat]" exactly matches the text "[truename of the cat]": say "How did you know? ";
Maybe a clarifying question is in order. When i declare, for example, that
`The cat has some text called the truename. Understand the truename property as describing the cat
Would the property of truename be called [truename] or does it need to be specified as [truename of the cat]? The decleration is unique for the cat instance of the animal, right?