intfiction.org

The Interactive Fiction Community Forum
It is currently Tue Dec 11, 2018 3:08 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Nov 13, 2018 1:26 pm 
Offline

Joined: Sat Nov 08, 2014 9:19 pm
Posts: 22
I have a locked door which has a key called "small silver key". I have a character named CJ who I want to have the key on him, but only present it when asked.. so I typed:
(((( Instead of asking CJ about "key": say "'you mean this?'". CJ holds the small siliver Yale key ))))

CJ holds the key , but I can't take it from him.. am I missing something really obvious :cry:
thanks all
Jimbo


Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue Nov 13, 2018 1:48 pm 
Offline
User avatar

Joined: Tue Nov 08, 2011 8:11 am
Posts: 2797
Location: US - Central
The trick here is to type ACTIONS before trying the action while testing the IDE, and it will explain the exact name and action it is trying. If the Action fails, it should tell you what rule is blocking you.

Quote:
>actions
Actions listing on.

>take key
[taking the yale key]
That seems to belong to CJ.
[taking the yale key - failed the can't take people's possessions rule]

You can remove the blocking rule permanently:

Code:
The can't take people's possessions rule is not listed in the check taking rulebook.


Or disable it just for this specific instance (always a good idea, or else the player can take anything any NPC is holding):

Code:
The can't take people's possessions rule does nothing when the noun is the yale key.


Since this is an instead rule which bypasses parsing, your message will show up every time the player asks CJ about the key even if he doesn't have it. It's good to check first to make sure to he responds appropriately. The best place in this simple case is AFTER the action fires.

Code:
After asking CJ about the yale key:
     if CJ carries the yale key:
          say "'Oh, you mean this key?' he asks, holding it up for you to take if you want it.";
     otherwise:
          say "'You already got that from me, brah. What did you do with it?' he replies.";


All this information is explained very well in the Index>Actions tab in the IDE (grouped or alphabetical), including all the synonyms for the action, all the rules affecting it, and insertion buttons to insert code to remove the rule or just insert the name of it.

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


Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue Nov 13, 2018 2:04 pm 
Offline

Joined: Sat Nov 08, 2014 9:19 pm
Posts: 22
wow ! thanks HanonO for the quick response ! this worked perfectly.. so grateful :D


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 20 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