I’m writing a sort of cave crawl adventure that is heavily dependant on speech and player interaction. Although I am fairly well into it, I have reached a fallback, so any help is appreciated.
What I am trying to do is to have a scene which is mainly player dialogue with somebody else. The trouble is, I’m not quite sure how to end a scene when a person in the game says a specific phrase.
There’s probably a ton of ways to do this. What I’m about to tell you is what I do regularly, and it is not tested. I stick all sorts of tags at everything, PC included. Like so:
[code]A person can be solved or unsolved. A person is usually unsolved.
Final dialog is a scene. Final dialog begins when (whatever).
Final dialog ends when Doe is solved.
Instead of asking Doe about final subject:
say “‘This is the last time I’m telling you to shave your beard. Do it or I’ll get a divorce.’”;
now Doe is solved.[/code]
If you want the ending trigger to be present in multiple subjects:
[code]Instead of asking Doe about an ending subject:
say “‘And take a shower every now and then! Chirst!’[solve doe]”
Instead of asking Doe about another ending subject:
say “‘And those teeth, dear lord, those molars!!!’[solve doe]”
Aha! This is really helpful, thanks. One last thing on the general subject.
I’ve played a game called an act of murder, which has a ‘notepad’ of clues you can get from talking to people (well and physical evidence). I think i know how to get inform to mentally know what the player has learned through conversation, but would it be possible for the program to take what the player already knows and therefore spit out a different ending phrase?
In other words, could I make many different conversations variables and depending on the conversations the player has had, the ending of the phrase would be different.
You can make variables, and you can make properties of objects. In my WIP I do it this way:
A thing can be discussed.
And in the code for giving an NPC’s response to ‘the second noun’:
Now the second noun is discussed.
Again, how you manage this will depend on your conversation system.
If you want to record things in a notebook, you might do it like this:
[code]A thing can be noted. A thing has a text called the note.
To say note [item - a thing]:
unless the note of item is empty: [this skips items that have no note text]
say “You write a note about [the item]: ‘[note of item]’”;
now item is noted.
To say notebook contents:
Repeat with item running through noted things:
say “[The item]: [note of item][paragraph break]”[/code]
And now you can test whether items are noted:
Instead of asking Bob about "play":
say "'It was a resounding success[if the script is noted], even though there was no script[end if]!"
Actually, I’ve switched over to the Eric eve mainframe thingy, but right of the bat, the program has a problem with [any known thing]
it says “I was unable to understand what you meant by the grammar token ‘any known thing’ in the sentence ‘Understand “tell [someone] about [any known thing]” as informing it about’”
I’ve used [any known thing] before, so why won’t it work?
[code]Requesting it for is an action applying to two visible things.
Imploring it for is an action applying to one visible thing and one topic.
Understand the command “ask” as something new.
Understand “ask [someone] about [text]” as asking it about.
Understand “ask [someone] for [any known thing]” as requesting it for.
Understand “ask [someone] for [text]” as imploring it for.
Quizzing it about is an action applying to two visible things.
Understand “ask [someone] about [any known thing]” as quizzing it about.
Informing it about is an action applying to two visible things.
Understand “tell [someone] about [any known thing]” as informing it about.[/code]
No, “it” is used in action names that involve two nouns to tell you where the first noun goes, whether or not the first noun is a person or a thing. So if your action is informing [noun] about [second noun], its name is “informing it about.”
This is pretty well buried in the documentation; it seems to be introduced in section 12.7, which says, in an aside about the action name “scraping it with”:
Just checking: You are including the extension correctly to your project with the line “Include Conversation Framework by Eric Eve” and not copy-pasting the extension’s code? Have you made any manual changes to the extension?