ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Introduction to NPC

This forum is the place to learn about and discuss ADRIFT 5. Feel free to mention any bugs you find here, but please also add these to the Bugs & Enhancements list.

Please also refer to the ADRIFT 5 Wiki for more information.

Introduction to NPC

Postby Po. Prune » Fri Aug 03, 2012 7:13 am

Hmmmm
I am using an explicit introduction: [{say} hello/hi {there}] to greet Megan
Restriction: Character Player must be at the same location as character Megan.

>Say hello there
Gives to following result:

>Say hello there
(to Megan)
She ignores you


If I type: >Say hello to Megan
I get the reply I have created.

Any ideas?
D-Day V.5 in progress 79Kb so far (slowly getting there)
The Inheritance (Annual Adrift Comp. entry) in progress
User avatar
Po. Prune
Moderator
 
Posts: 3428
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark

Re: Introduction to NPC

Postby Campbell » Fri Aug 03, 2012 7:40 am

From your command definition, the following are possible:

say hello
hello
hi
hi there

I think you want "{say} [hello/hi] {there}"

Although, if you are using a conversation topic, {say} should not be necessary as the conversation tasks add that.
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 3852
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

Re: Introduction to NPC

Postby Po. Prune » Fri Aug 03, 2012 8:15 am

Campbell wrote:From your command definition, the following are possible:

say hello
hello
hi
hi there

I think you want "{say} [hello/hi] {there}"

Although, if you are using a conversation topic, {say} should not be necessary as the conversation tasks add that.


I changed it to: "{say} [hello/hi] {there}"
Now when I type >hi or hello or hi there
I get I'm sorry I don't udnerstand that command.

>Say hello, however, work as it's supposed to
D-Day V.5 in progress 79Kb so far (slowly getting there)
The Inheritance (Annual Adrift Comp. entry) in progress
User avatar
Po. Prune
Moderator
 
Posts: 3428
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark

Re: Introduction to NPC

Postby Campbell » Fri Aug 03, 2012 8:21 am

If you're doing this in the conversation command rather than a task, I wouldn't expect "hi" or "hello" to match, because you have to type "say" to activate the conversation task.
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 3852
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

Re: Introduction to NPC

Postby Po. Prune » Fri Aug 03, 2012 8:55 am

Campbell wrote:If you're doing this in the conversation command rather than a task, I wouldn't expect "hi" or "hello" to match, because you have to type "say" to activate the conversation task.

Ohh, I see. That explains it.
Thanks
D-Day V.5 in progress 79Kb so far (slowly getting there)
The Inheritance (Annual Adrift Comp. entry) in progress
User avatar
Po. Prune
Moderator
 
Posts: 3428
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark

Re: Introduction to NPC

Postby Campbell » Fri Aug 03, 2012 9:12 am

If you don't want the "say" part, I guess you could always remove it from the "say something" conversation task, but that would then try to match all input against conversations, and I'm not sure if it would cause any undesirable effects. It might work tho, especially if you have a restriction that you are in conversation with a character.
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 3852
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

Re: Introduction to NPC

Postby ElliotM » Fri Aug 03, 2012 2:04 pm

You could make a specific task for [hi/hello] that triggers say %text% or something.
ElliotM
 
Posts: 507
Joined: Tue Apr 17, 2007 8:04 pm
Location: The Midwest in the USA


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 2 guests

cron