intfiction.org

The Interactive Fiction Community Forum
It is currently Fri Dec 14, 2018 6:06 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Arrival in a room
PostPosted: Sat Aug 04, 2018 9:33 am 
Offline
User avatar

Joined: Thu Aug 20, 2015 4:35 pm
Posts: 113
I'm feeling pretty dumb asking this, because I'm sure I've seen it somewhere.

I want to say something every time I arrive in a certain room. Just once on arrival, not for every move in the room, and not just the very first time I come to the room, but every time I return to it. What's an efficient way of doing this?

_________________
____________________________________________________
http://www.amazonsystems.co.uk/data/textadv.htm


Top
 Profile Send private message  
Reply with quote  
 Post subject: Re: Arrival in a room
PostPosted: Sat Aug 04, 2018 9:48 am 
Offline

Joined: Sun Jun 10, 2018 10:45 am
Posts: 11
This should do the trick if you want the text to appear before the room description:

Code:
Before going to the Welcoming Room, say "The Welcoming Room welcomes you."


If you want to say something after the room description:

Code:
Last report going:
   if going to the Welcoming Room, say "You feel quite welcome here."


There may be a better way to write the last rule, but the ones I tried didn't work for me.


Top
 Profile Send private message  
Reply with quote  
 Post subject: Re: Arrival in a room
PostPosted: Sat Aug 04, 2018 1:52 pm 
Offline
User avatar

Joined: Thu Aug 20, 2015 4:35 pm
Posts: 113
Quote:
If you want to say something after the room description:

Code:
Last report going:
   if going to the Welcoming Room, say "You feel quite welcome here."


I am obliged to you. I'll try that now.

[1 minute LATER] Worked a treat! Thank you.

It was to report Skill and Treasure points.

_________________
____________________________________________________
http://www.amazonsystems.co.uk/data/textadv.htm


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], K.L.Neidecker and 9 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