ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Keeping my clothes on :-)

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.

Keeping my clothes on :-)

Postby P/o Prune » Mon Mar 04, 2019 2:20 pm

My character has a backpack.
How do I avoid that he strips naked when he >pul all in backpack?
D-Day in progress 86Kb (Slowly drifting)
Just a Fairy Tale: 54Kb
User avatar
P/o Prune
Site Admin
 
Posts: 4361
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 58

Re: Keeping my clothes on :-)

Postby The0didactus » Mon Mar 04, 2019 3:35 pm

P/o Prune wrote:My character has a backpack.
How do I avoid that he strips naked when he >pul all in backpack?


My solutions are usually terrible kludges, it's gonna depend a lot on how often a player is likely to actually put their shirt, say, in their backpack.

* Create a contingency where whenever clothes items are in the backpack they go back to being worn
* override "put all in backpack" with a special command that puts everything in the backpack, then puts all clothes back on the player
* have the player learn that nudity is the natural state of mankind, and revel in their nakedness
The0didactus
 
Posts: 180
Joined: Sun Mar 30, 2014 8:20 pm
Points: 30

Re: Keeping my clothes on :-)

Postby Denk » Mon Mar 04, 2019 4:58 pm

A very simple solution is to remove the task "Remove before put" in the standard library folder "Give, Take and Drop".
-----------------------------------------------------------------------------------------
Out now: The Royal Puzzle, The Way Home & The Dragon Diamond
-----------------------------------------------------------------------------------------
Denk
 
Posts: 207
Joined: Mon Feb 22, 2016 6:21 pm
Location: Hjørring, Denmark
Points: 31

Re: Keeping my clothes on :-)

Postby P/o Prune » Mon Mar 04, 2019 6:04 pm

Denk wrote:A very simple solution is to remove the task "Remove before put" in the standard library folder "Give, Take and Drop".

Interesting… Thank you.. I'll give it a go.
D-Day in progress 86Kb (Slowly drifting)
Just a Fairy Tale: 54Kb
User avatar
P/o Prune
Site Admin
 
Posts: 4361
Joined: Mon Jun 24, 2002 8:18 am
Location: Denmark
Points: 58

Re: Keeping my clothes on :-)

Postby Lumin » Mon Mar 04, 2019 8:05 pm

Years of never changing or washing his one set of clothes have left them fused to his body as a second layer of skin.
User avatar
Lumin
 
Posts: 1951
Joined: Fri Aug 06, 2004 5:48 pm
Points: 34

Re: Keeping my clothes on :-)

Postby saabie » Tue Mar 05, 2019 12:59 am

It is not supposed to do that, the "remove before put" task contains a restriction that should stop it from removing clothing when putting "ALL".
This seems to have been broken when the priority of AND/OR was changed in restriction lists back in 2015.
I will work out how best to fix this and add a bug report.
saabie
 
Posts: 959
Joined: Fri Aug 12, 2011 2:07 am
Location: Adelaide, South Australia
Points: 25

Re: Keeping my clothes on :-)

Postby Duncan_B » Tue Mar 05, 2019 2:38 am

I can't say as to v5, but in v4 I used to create an event that took 0 turns to execute and runs every turn. On completion, it runs a task with restriction "if (clothing item) is NOT worn by Player" and if it triggers, moves that clothing item to worn by the player with a message like, "You're not an ecdysiast." This does require a separate task for each article of clothing, though they can all be set off by the same parent task. The library solution might be simpler in v5. Just throwing this out there.
User avatar
Duncan_B
 
Posts: 1219
Joined: Fri Apr 01, 2005 8:26 pm
Location: Chicago, Illinois
Points: 11


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 6 guests