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.
Post Reply
User avatar
P/o Prune
Site Admin
Posts: 4707
Joined: Mon Jun 24, 2002 9:18 am
Points: 93
Location: Denmark

Keeping my clothes on :-)

Post by P/o Prune »

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)
October 31st: 42Kb (possible entry for IFComp 2021 :wink: )
The0didactus
Posts: 293
Joined: Sun Mar 30, 2014 9:20 pm
Points: 150

Re: Keeping my clothes on :-)

Post by The0didactus »

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
User avatar
Denk
Posts: 650
Joined: Mon Feb 22, 2016 6:21 pm
Points: 251
Location: Hjørring, Denmark

Re: Keeping my clothes on :-)

Post by Denk »

A very simple solution is to remove the task "Remove before put" in the standard library folder "Give, Take and Drop".
----------------------------------------------------------------------
The Bash Saga:
1. The Dragon Diamond 2. The Way Home 3. Stone of Wisdom
----------------------------------------------------------------------
User avatar
P/o Prune
Site Admin
Posts: 4707
Joined: Mon Jun 24, 2002 9:18 am
Points: 93
Location: Denmark

Re: Keeping my clothes on :-)

Post by P/o Prune »

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)
October 31st: 42Kb (possible entry for IFComp 2021 :wink: )
User avatar
Lumin
Posts: 2199
Joined: Fri Aug 06, 2004 6:48 pm
Points: 49

Re: Keeping my clothes on :-)

Post by Lumin »

Years of never changing or washing his one set of clothes have left them fused to his body as a second layer of skin.
saabie
Posts: 1024
Joined: Fri Aug 12, 2011 3:07 am
Points: 50
Location: Adelaide, South Australia

Re: Keeping my clothes on :-)

Post by saabie »

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

Re: Keeping my clothes on :-)

Post by Duncan_B »

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.
Post Reply