intfiction.org

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

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Aug 02, 2018 11:17 am 
Offline

Joined: Wed Jul 25, 2018 8:55 am
Posts: 18
I'm putting this out as a new topic rather than update the previous one because it isn't clear to me how best to do this in this forum. Please advise if a different approach is preferable.

I was able to get the behavior I was looking for (limiting Wear All to just articles of clothing) by modifying the Thing and Fixture classes:

Code:
modify Thing
    hideFromAll(action){
        return (action.ofKind(WearAction) && !ofKind(Wearable)) || inherited(action);
    }
;

modify Fixture
    hideFromAll(action){
        return action.ofKind(WearAction) || inherited(action);
    }
;


Thanks to responses in the previous thread which helped achieve this objective.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Aug 02, 2018 4:51 pm 
Offline
User avatar

Joined: Tue Apr 20, 2010 2:48 pm
Posts: 1033
Location: Greece
Why did you start a new thread? Just reply to the existing one.

_________________
@realnc


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Aug 02, 2018 5:08 pm 
Offline

Joined: Sat Jul 16, 2011 3:48 pm
Posts: 309
Well better to not to split thread imho.


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