Working With...Clothing
The chief distinction of the
Clothing class is its
is.worn property. Assets that are worn occupy a special place
in inventory. They're listed separately from other inventory assets, and
they're excluded from drop all.
MyGame.createAsset({
class: "Clothing",
name: "jacket",
place: { on: "Explorer" },
is: { worn: true },
});
> inventory
You're carrying a white paper. You're wearing a jacket. > drop all
You drop the white paper. > take shirt
(from the coatrack)
You take the shirt from the coatrack. > wear shirt
You wear the shirt. > inventory
Your hands are empty. You're wearing a jacket and a shirt.
You're carrying a white paper. You're wearing a jacket. > drop all
You drop the white paper. > take shirt
(from the coatrack)
You take the shirt from the coatrack. > wear shirt
You wear the shirt. > inventory
Your hands are empty. You're wearing a jacket and a shirt.
Further Reference
- Wear verb in Reference Manual
- Remove verb in Reference Manual
- Clothing class in Reference Manual