intfiction.org

The Interactive Fiction Community Forum
It is currently Sat Aug 18, 2018 3:38 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: After Rules
PostPosted: Wed Oct 26, 2016 2:51 pm 
Offline

Joined: Thu Oct 20, 2016 7:29 pm
Posts: 10
Hi, I am trying to change the default description when you unlock a door.

While I can change the description of opening a locked door, it won't let me change the description for after unlocking the door.

For example:

It will allow this...

Before opening locked outbuilding door:
instead say "The door is locked. The lock is rusted shut but it looks like you can break it if you found something heavy enough."

But it will not allow...

After unlocking outbuilding door:
instead say "You take the heavy stone and break the lock. You can now open the door."

I've even tried...

After unlocking locked outbuilding door:
instead say "You take the heavy stone and you break the lock. You can now open the door."

The following is the error I receive for both: "Problem. You wrote 'After unlocking outbuilding door' , which seems to introduce a rule taking effect only if the action is 'unlocking outbuilding door'. But that did not make sense as a description of an action. I am unable to place this rule into any rulebook.
See the manual: 7.1 > 7.1. Actions"

I'm really confused as to why it will allow me the Before rule but not the After rule. What am I doing wrong?

Thanks
DH


Top
 Profile Send private message  
Reply with quote  
 Post subject: Re: After Rules
PostPosted: Wed Oct 26, 2016 2:53 pm 
Offline

Joined: Thu Oct 20, 2016 7:29 pm
Posts: 10
Never mind. Disregard. I figured it out:

After unlocking outbuilding door with stone:
instead say "You take the stone and break the lock. You can now open the door."


Top
 Profile Send private message  
Reply with quote  
 Post subject: Re: After Rules
PostPosted: Wed Oct 26, 2016 3:18 pm 
Offline

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 5320
Location: Burlington, VT
You don't even need to say "instead," because After rules have default outcome success, which means that an After rule that runs will stop processing of the action unless it explicitly says "continue the action."


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: Google [Bot] and 6 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