[topic merged and title updated by mod]
Under which circumstances can we test whether “a text ‘is’ a text?”
I see that this does not produce the desired results:
Wizard's Dream is a room.
The Pharaoh is a man in the Wizard's Dream.
After asking the Pharaoh about something:
if the topic understood is "boo", say "Yes!";
else say "No!!!"
while this works fine:
Wizard's Dream is a room.
The orb is in the Wizard's Dream.
The aura is a text that varies. The aura is "mystifying".
After examining something:
if the aura is "mystifying", say "Yes!";
else say "No!!!"
I haven’t read Chapter 20 of Writing With Inform yet, but §20.5 starts with:
I try to remember where “texts being equal” was analysed in the previous chapters, but it evades me. What should I read on the subject?
Thanks.
Edit/Addition:
Actually, “matches” is really interesting.
From what I’ve understood, “matches” is different to “matches the text.”
The following, Code 1, says “Yes!” only if the player asks about “boo,” while Code 2 says “Yes!” even if the player asks about “the big boo” or anything that includes “boo.”
[rant=Code 1][code]
Wizard’s Dream is a room.
The Pharaoh is a man in the Wizard’s Dream.
After asking the Pharaoh about something:
if the topic understood matches “boo”, say “Yes!”;
else say “No!!!”
[/code][/rant]
[rant=Code 2][code]
Wizard’s Dream is a room.
The Pharaoh is a man in the Wizard’s Dream.
After asking the Pharaoh about something:
if the topic understood matches the text “boo”, say “Yes!”;
else say “No!!!”
[/code][/rant]
Is “matches” the very same with “exactly matches the text,” then? What is the difference with “is?”