I7: Question about Quip-Based Conversation by Michael Martin

Hi,

I’m trying to create the following scenario in my game, which uses Michael Martin’s Quip-Based Conversation for its dialogue:

After entering the casino, you need to talk to the waitress. However, she ignores you until after you talk to the bartender.

It’s a pretty straightforward scenario, but I can’t get the code to work. Here’s what I’ve got so far:

"test" by Emanuel Nordrum
 
Include Version 5 of Quip-Based Conversation by Michael Martin.
 
Casino is a room.

Bartender is a person in Casino. The greeting of Bartender is bartender-g. The litany of Bartender is Table of Bartender Conversation.

Waitress is a person in Casino. The greeting of Waitress is waitress-g. The litany of Waitress is Table of Waitress Conversation.

Table of Quip Texts (continued)
quip	quiptext
bartender-g	"The bartender speaks to you."
bartender-1	"Let me tell you about the waitress."
waitress-g	"The waitress notices you."
waitress-1	"Oh hi."

Table of Bartender Conversation
prompt	response	enabled
"Waitress?"	bartender-1	0

Table of Waitress Conversation
prompt	response	enabled
"Hello."	waitress-1	1

After quipping when the current quip is bartender-1:
	enable the bartender-1 quip;
	terminate the conversation.

Waitress Ignores You is a scene. Waitress Ignores You begins when the player is in Casino.

Before talking to Waitress during Waitress Ignores You:
	say "She ignores you." instead;
	enable the bartender-1 quip. 
	
After examining Waitress during Waitress Ignores You:
	say "She ignores you.";
	enable the bartender-1 quip.
	
Waitress Ignores You ends after quipping when the current quip is bartender-1.

The trouble spot is the “enable the bartender-1 quip” line; I know it fires - or rather, I know the “She ignores you.” line right above it fires - but when I talk to the bartender again the option isn’t there.

The syntax I use is the same as Quip-Based Conversation uses (as seen slightly further up), so the only thing I can think is that Quip-Based Conversation requires the “after quipping when the current quip is” line in order to enable or disable quips. Which would be kind of a downer if true.

If anyone could show me the correct way to go about things, I’d be most grateful.

The “enable the bartender-1 quip” line actually does not fire. The reason is you end the line before it with “instead”, which stops the action short, before the last line of the rule is ever executed.
Either move the “instead” to the last line of the rule:

Before talking to Waitress during Waitress Ignores You: say "She ignores you."; enable the bartender-1 quip instead.
or put it all in an instead rule instead:

Instead of talking to Waitress during Waitress Ignores You: say "She ignores you."; enable the bartender-1 quip.

Thank you for correcting my mistake, but unfortunately the bartender-1 quip still doesn’t become enabled.

Something I forgot to mention above; I don’t want to just talk to the bartender and learn about the waitress, you have to look or attempt to talk to the waitress first in order to “activate” the dialogue option. So the required order of action should be:

Look at waitress/talk to waitress > talk to bartender > ask about waitress > talk to waitress.

Any ideas?

Ah, I found the solution:

Instead of talking to Waitress during Waitress Ignores You:
	enable the bartender-1 quip for Bartender;
	say "She ignores you."

I didn’t realise I had to specify that the bartender-1 quip belongs to the Bartender; I thought each quip was unique.