Matt W has given some good advice for displaying a garment as ripped. As for the ropes, here’s a simple implementation that allows you to tie things together, and should work for your needs with a little tweaking:
[spoiler][code]“All Tied Up” by Chin Kee Yong
Chapter 1 - Tyable Things and the Improvised Rope
A thing can be tyable. A thing is usually not tyable.
The improvised rope is a tyable thing. The description is “The improvised rope comprises [a list of things that are part of the improvised rope].”
Rule for printing inventory details of the improvised rope (this is the show rope components in the inventory rule):
say " (comprising [a list of things that are part of the improvised rope])[run paragraph on]".
Rule for printing room description details of the improvised rope (this is the show rope components in the room description rule):
say " (comprising [a list of things that are part of the improvised rope])[run paragraph on]".
Chapter 2 - Tying It To
The block tying rule is not listed in the check tying it to rulebook.
Check tying it to (this is the can’t tie something that’s worn rule):
if the noun is worn by the player:
say “You seem to be wearing [the noun].”;
rule fails;
if the second noun is worn by the player:
say “You seem to be wearing [the second noun].”;
rule fails.
Check tying it to (this is the can’t tie something that isn’t carried rule):
if the noun is not carried by the player, carry out the implicitly taking activity with the noun;
if the noun is not carried by the player, rule fails;
if the second noun is not carried by the player, carry out the implicitly taking activity with the second noun;
if the second noun is not carried by the player, rule fails.
Check tying it to (this is the can’t tie non-tyable things rule):
if the noun is not a tyable thing or the second noun is not a tyable thing:
say “You can’t tie those.”;
rule fails.
Check tying it to (this is the can’t tie something to itself rule):
if the noun is the second noun:
say “That would only succeed in knotting [the noun].”;
rule fails.
Check tying it to (this is the can’t have more than one rope rule):
if the improvised rope is on-stage:
if the noun is not the improvised rope and the second noun is not the improvised rope:
say “You would rather add to the improvised rope you’ve already created.”;
rule fails.
Carry out tying it to (this is the standard tying it to rule):
if the improvised rope is off-stage:
now the noun is part of the improvised rope;
now the second noun is part of the improvised rope;
now the player carries the improvised rope;
otherwise:
let the other rope be a thing;
if the improvised rope is the noun, now the other rope is the second noun;
if the improvised rope is the second noun, now the other rope is the noun;
now the other rope is part of the improvised rope.
Report tying it to (this is the report tying it to rule):
if the improvised rope was off-stage:
say “You tie [the noun] to [the second noun], creating an improvised rope.”;
otherwise:
let the other rope be a thing;
if the improvised rope is the noun, now the other rope is the second noun;
if the improvised rope is the second noun, now the other rope is the noun;
say “You tie [the other rope] to the end of the improvised rope, extending its length.”;
Chapter 3 - Untying
Untying is an action applying to one thing.
Understand “untie [something]” as untying.
Check untying (this is the can’t untie a rope that isn’t carried rule):
if the improvised rope is not carried by the player, carry out the implicitly taking activity with the improvised rope;
if the improvised rope is not carried by the player, rule fails.
Check untying (this is the can’t untie things that aren’t tied rule):
if the noun is not the improvised rope and the noun is not part of the improvised rope:
say “[The noun] [aren’t] something you can untie.”;
rule fails.
Carry out untying (this is the standard untying rule):
if the noun is the improvised rope:
now all things that are part of the rope are carried by the player;
now the improvised rope is nowhere;
otherwise:
now the noun is carried by the player;
if the number of things that are part of the improvised rope is 1:
let the remaining rope be a random thing that is part of the improvised rope;
now the remaining rope is carried by the player;
now the improvised rope is nowhere.
Report untying (this is the report untying rule):
if the noun is the improvised rope:
say “You untie the improvised rope, dissolving it completely.”;
otherwise if the improvised rope is on-stage:
say “You untie [the noun] from the improvised rope.”;
otherwise:
say “You untie [the noun], dissolving the improvised rope completely.”
Chapter 4 - The Rope Shop
The Rope Shop is a room. A checkered handkerchief, a bath towel, and a flag of the People’s Republic of China are tyable things in the Rope Shop. A toy train is a thing in the Rope Shop. A Hawaiian shirt and a pair of jeans are wearable tyable things worn by the player.
Test me with “tie handkerchief to toy train / tie handkerchief to bath towel / i / tie rope to shirt / take off shirt / tie rope to shirt / i / untie shirt / i / untie bath towel / i”.[/code][/spoiler]