intfiction.org

The Interactive Fiction Community Forum
It is currently Thu Nov 23, 2017 10:45 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sat Sep 09, 2017 7:08 am 
Offline
User avatar

Joined: Sat Sep 24, 2011 11:02 am
Posts: 97
I am trying to implement a 'call' verb, to call people using a mobile phone:

Calling is an action applying to one thing. Understand "call [any thing]" as calling.

------
I'm using "any thing" because that should allow the object of the verb to be a person who is not in the same room.

I've implemented the people I'm trying to call, but not given them any location:

Mum is a person.
Mr Smith is a person.
...

but when I try:

>call Mr Smith
He's not available.

Why? because "off-stage"?

So, I changed to

Mr Smith is a person. Mr Smith is in limbo.
Mum is a person. Mum is in limbo.

Limbo is a room.


and the response:

>call Mum
You can't reach into limbo.

etc.

So, how to define a command that needs to refer to things not present? I thought I'm doing like the manual instructs.

Thanks,
Anssi


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Sep 09, 2017 7:31 am 
Offline

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 5117
Location: Burlington, VT
You need to define the action as applying to one "visible" thing:

Code:
Calling is an action applying to one visible thing.


"Visible thing" encompasses more than "thing" in this context--"thing" is effectively "touchable thing," which means that as you have it, the action invokes the reaching inside rules.

This is an absolutely perennial issue that people have, because Inform's terminology is confusing here--it seems like visible thing is more restrictive than "thing," but it's really less restrictive. My attempt at a comprehensive explanation is here (you might also want to scroll up and down that thread).

BTW, it's helpful to put your code in code tags--hit the "code" button and paste your code in between the tags that look like

Code:
[code]Your code here.[/code]


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Sep 09, 2017 8:38 am 
Offline
User avatar

Joined: Sat Sep 24, 2011 11:02 am
Posts: 97
OK thanks Matt for the help!


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Sep 09, 2017 10:48 am 
Offline

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 5117
Location: Burlington, VT
You're welcome!

BTW once you've got that in place you don't need the Limbo room. I think the difference between off-stage things and things in another room is just that you get a different message when the reachability rules fail.


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

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot], litrouke, Yahoo [Bot] and 3 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