intfiction.org

The Interactive Fiction Community Forum
It is currently Thu May 23, 2013 4:37 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Apr 25, 2012 11:13 am 
Offline

Joined: Mon Oct 17, 2011 7:40 am
Posts: 10
Location: Warren, Mi. USA
I attempting to create a new action 'Dragging' which uses a thing and a direction.

I can create it with just a thing which works fine.
Code:
Dragging is an action applying to one visible  thing

When I try with a thing and a direction I keep getting an error.

Code:
Dragging is an action applying to one visible thing and one direction.
         
Understand "drag [something]" as dragging.


The error is:'Dragging is an action applying to one visible thing and one direction' : but an action can only apply to things or to kinds of value'

What am I missing?

_________________
Jacques Leclerc


Top
 Profile Send private message  
 
PostPosted: Wed Apr 25, 2012 11:27 am 
Offline

Joined: Thu May 13, 2010 5:24 pm
Posts: 135
See section 12.7 in the manual (http://inform7.com/learn/man/doc193.html). In particular:
Quote:
(Also, note that if you invent an action which needs to apply to directions like "north" or "south", you need to make this apply to visible things, because the object used inside Inform to represent the idea of "north" can be seen but not touched. So for understanding purposes, "visible thing" is understood as meaning any visible thing or direction: it's more general than "thing", not more specific.)

So this should work (briefly tested):
Code:
Dragging is an action applying to two visible things.
Understand "drag [something] [direction]" as dragging.


-Kevin


Top
 Profile Send private message  
 
PostPosted: Wed Apr 25, 2012 1:31 pm 
Offline

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 2128
Location: Burlington, VT
You can also write "Dragging is an action applying to one thing and one visible thing," as in the pushing it to action.


Top
 Profile Send private message  
 
PostPosted: Wed Apr 25, 2012 1:42 pm 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 2085
In fact you could just make use of the pushing-it-to action, and have "drag" be a synonym for that.


Top
 Profile Send private message  
 
PostPosted: Wed Apr 25, 2012 2:08 pm 
Offline

Joined: Mon Oct 17, 2011 7:40 am
Posts: 10
Location: Warren, Mi. USA
Thanks. That worked.

I was using the format provide in Aarin Reed's book Creating Interactive Fiction with Inform7.

For some reason that format did not want to work.

Thanks again.

_________________
Jacques Leclerc


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

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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