intfiction.org

The Interactive Fiction Community Forum
It is currently Fri Feb 22, 2019 12:20 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Jan 17, 2019 9:22 am 
Offline

Joined: Fri Oct 06, 2017 8:19 am
Posts: 35
I want my player to be able to 'tell Bob a joke'. But the default for telling uses 'about' e.g. tell Bob about a joke, which is awkward. Is there a way around this?

Thanks.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Jan 17, 2019 7:45 pm 
Offline
User avatar

Joined: Tue Nov 08, 2011 8:11 am
Posts: 2899
Location: US - Central
If you look up "telling it about" in the index of your game, you find this:

Quote:
Typed commands leading to this action

"tell [someone] about [text]"


You can add new "understand...as" grammar to the action in the form you want.
Code:
Understand "tell [someone] [text]" as telling it about.

Bob is a man in blast zone.

After telling Bob about "the/-- dynamite": say "'Goodness, that looks dangerous,' murmurs Bob."

After telling Bob about "a/-- joke": say "'That's a good one!' chortles Bob."

The only thing is that you'll be able to similarly tell Bob about things without using the word "about" but that may not be a problem.
Quote:
Blast Zone
You can see Bob, some dynamite and a barrel (in which are some fish) here.

>tell bob about the dynamite
"Goodness, that looks dangerous," murmurs Bob.

>tell bob a joke
"That's a good one!" chortles Bob.

>tell bob dynamite
"Goodness, that looks dangerous," murmurs Bob.

>tell bob about joke
"That's a good one!" chortles Bob

_________________
http://hanonondricek.wixsite.com/pyramidif
https://pyramidif.itch.io/


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Jan 19, 2019 5:09 pm 
Offline

Joined: Sat Feb 13, 2016 6:26 pm
Posts: 168
If you absolutely want to avoid what HanonO says (mixing the sentences that require "about" with ones that don't), you can create a new action that does not use "about."

Code:
Narrating it to is an action applying to one topic and one visible thing.

Understand "tell [some text] to [a thing]" as narrating it to. Understand "tell [a thing] [some text]" as narrating it to (with nouns reversed).

[The check stage makes sure you only narrate to people.]

Check narrating it to:
    if the second noun is not a person, say "The [second noun] [do not] listen." instead.

[The carry out stage covers the block reply: the listener doesn't react specifically.]

Carry out narrating it to:
    say "[regarding the second noun][They] [do not] reply."


Thus, you can distinguish the two actions. If needed. Otherwise, HanonO's reply has you covered.


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group