Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Is there an attribute for wearable?

A topic by Garry Francis created Sep 13, 2019 Views: 77 Replies: 2
Viewing posts 1 to 3
Submitted

I just realised that I've got an object that should be wearable, even though it's not necessary to wear it to win the game. I can wear it using:

: wear;

The description of this says, "Wears the object that corresponds to the adjective and noun in the current parse sentence (only if object is available, and wearable)." How do you know whether an object is wearable? Is there an attribute for this?

I'm guessing that this is probably visible using Ctrl+Space, but I'm away from the home computer at the moment, so I can't try it. An example of clothing should be described in the user guide anyway.

Are there inbuilt verbs for wear and remove? If so, does wearing and removing an object come for free or do I still have to provide the :match "wear object"; statement and appropriate tests and responses?

There are in-built matches and object handling for wearable objects.

Just add... wearable="true" to your object definition.

boot : object wearable="true"  "A boot";
Submitted

Beautiful. Thank you.