intfiction.org

The Interactive Fiction Community Forum
It is currently Mon Nov 19, 2018 3:51 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Jul 03, 2018 2:00 am 
Offline

Joined: Mon Apr 04, 2011 8:33 pm
Posts: 17
I'm not technically a newbie to TADS. But it's been about a thousand years since I did anything with I.F. so I'm relearning EVERYTHING. It's all 'very familiar.' So, that said, my apologies for asking the basic stuff here.

There is a default object in the "outdoor room" locations. (2 technically.) The one I'm wanting to alter is the sky. "The sky looks normal" is not what I'm wanting the player to read. Sky in my Chtuloidian realm is not normal but I'd like to have one override for all outdoor room locations instead of trying to have a special method for each individual location. Truth be told I'm having problems doing even that. So, I'm asking for a little hand holding... again... sorry.

I have looked. The 'defaultsky' object and the sky object in the outdoorroom is mentioned but never adequately discussed as to how to change it's description. So far as I can find. Thus I send a please and a thank you for any clues you can give me.

Much appreciated.

- Selva


Last edited by Selva on Tue Jul 03, 2018 11:35 pm, edited 1 time in total.

Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue Jul 03, 2018 7:10 am 
Offline

Joined: Sat Jul 16, 2011 3:48 pm
Posts: 309
Oh, that's easy, defaultSky (which is a roomPart of OutdoorRoom) is an ordinary object like any other thus you can modify it:

Code:
modify defaultSky
    desc = "Replaced sky. "
;


For general discussion see chapter Replacing and modifying objects at http://www.tads.org/t3doc/doc/sysman/objdef.htm

When you intend to replace for one or two rooms, then you can do something like:

Code:
mySky: Distant, RoomPart
    "Replaced sky. "
;

OutdoorRoom 'my room'
    "There is a special sky in this room. "

    roomParts = static inherited - defaultSky + mySky
    // or alternatively
    // roomParts = [defaultGround, mySky]
;


Or even make a new room class with similar modification and use it for bunch of rooms.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue Jul 03, 2018 2:57 pm 
Offline

Joined: Mon Apr 04, 2011 8:33 pm
Posts: 17
Thank you very much. I realize that's an easy one. But I've been pulling my hair out trying to find the details on how exactly TO do it. Both I and my stylist truly appreciate the help!!!


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