ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Examine Objects Anomaly

This forum is the place to learn about and discuss ADRIFT 5. Feel free to mention any bugs you find here, but please also add these to the Bugs & Enhancements list.

Please also refer to the ADRIFT 5 Wiki for more information.

Examine Objects Anomaly

Postby Lazzah » Fri Nov 16, 2018 3:54 pm

Hi all, been bit quiet around here, hasn't it?! (do I hear a chorus of "Nothing new there then!!") :haha:

OK, maybe someone can help me with this problem I have just encountered. When examining objects I don't like the way ADRIFT lists objects IN and ON other objects, so I have deleted the "Objects On/In" tab from the EXAMINE OBJECTS general task.

The problem occurs when I X ME. The X CHARACTERS general task executes but then I am told what is in and on two of the objects I am holding. As I haven't got an "Objects On/In" tab in my EXAMINE CHARACTERS task or my EXAMINE OBJECTS task, I am at a loss as to what is causing ADRIFT to display these two messages. In my PC description I do have tabs for whatever the PC is wearing and/or carrying.

Any help much appreciated! :Thanks:
W.I.P.: Magnetic Moon, Starship Quest & Revenge of the Space Pirates.
Also available: The Axe of Kolt - The Spectre of Castle Coris - The Fortress of Fear - Die Feuerfaust - The Lost Children - Run, Bronwynn, Run!"
User avatar
Lazzah
Moderator
 
Posts: 2198
Joined: Thu Mar 31, 2011 4:54 am
Location: London, England
Points: 17

Re: Examine Objects Anomaly

Postby saabie » Sat Nov 17, 2018 4:00 am

The general function:
%ListHeld[%character%]%
which is in two of the alternate descriptions of "Examine characters" will always list objects in and on the held objects.
To prevent this you need to replace it with the item function:
%character%.Held(False)
where the (False) bit means to NOT list objects in and on the held items.
If you also want to do this for worn objects then replace:
%ListWorn[%character%]%
with
%character%.Worn(False)
saabie
 
Posts: 961
Joined: Fri Aug 12, 2011 2:07 am
Location: Adelaide, South Australia
Points: 25

Re: Examine Objects Anomaly

Postby Lazzah » Sat Nov 17, 2018 4:54 pm

saabie wrote:The general function:
%ListHeld[%character%]%
which is in two of the alternate descriptions of "Examine characters" will always list objects in and on the held objects.
To prevent this you need to replace it with the item function:
%character%.Held(False)
where the (False) bit means to NOT list objects in and on the held items.
If you also want to do this for worn objects then replace:
%ListWorn[%character%]%
with
%character%.Worn(False)

Thanks saabie, a perfect explanation as usual. :Thanks: :bravo: However....

I did exactly what you said, replacing the old functions with the new ones... and when I X ME this time the items worn and held are displayed thus:

"You are wearing Clothes|Amulet|Baldric and carrying Bag|Coins1.(False)."

I had a look at the ADRIFT 5 help section on functions and found that %character%.Worn(False) should be %character%.Worn.List(False), etc, and changed the functions to include "List". However, one of the items is a canvas bag in which are some gold coins and these are now listed as being carried as if they were a separate item, i.e. "You are carrying the canvas bag and the gold coins."

How do I fix this and can I get ADRIFT to display the items using their defined Article, i.e. "a" instead of "the"?

Thanks! :Thanks:
W.I.P.: Magnetic Moon, Starship Quest & Revenge of the Space Pirates.
Also available: The Axe of Kolt - The Spectre of Castle Coris - The Fortress of Fear - Die Feuerfaust - The Lost Children - Run, Bronwynn, Run!"
User avatar
Lazzah
Moderator
 
Posts: 2198
Joined: Thu Mar 31, 2011 4:54 am
Location: London, England
Points: 17

Re: Examine Objects Anomaly

Postby saabie » Sun Nov 18, 2018 1:05 am

Oops, sorry, I was in a rush when I typed that.
The functions should be:
%character%.Held(False).List(False)
%character%.Worn(False).List(False)

How do I fix this and can I get ADRIFT to display the items using their defined Article, i.e. "a" instead of "the"?

Use the "Indefinite" option of the List function:
%character%.Held(False).List(False,Indefinite)
%character%.Worn(False).List(False,Indefinite)
saabie
 
Posts: 961
Joined: Fri Aug 12, 2011 2:07 am
Location: Adelaide, South Australia
Points: 25

Re: Examine Objects Anomaly

Postby Lazzah » Sun Nov 18, 2018 12:13 pm

saabie wrote:Oops, sorry, I was in a rush when I typed that.
The functions should be:
%character%.Held(False).List(False)
%character%.Worn(False).List(False)

How do I fix this and can I get ADRIFT to display the items using their defined Article, i.e. "a" instead of "the"?

Use the "Indefinite" option of the List function:
%character%.Held(False).List(False,Indefinite)
%character%.Worn(False).List(False,Indefinite)

Thanks saabie, the latter worked a treat! :Thanks: :claps: :bravo: :D
W.I.P.: Magnetic Moon, Starship Quest & Revenge of the Space Pirates.
Also available: The Axe of Kolt - The Spectre of Castle Coris - The Fortress of Fear - Die Feuerfaust - The Lost Children - Run, Bronwynn, Run!"
User avatar
Lazzah
Moderator
 
Posts: 2198
Joined: Thu Mar 31, 2011 4:54 am
Location: London, England
Points: 17


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 2 guests

cron