Fake objects, unlike regular objects, only exist within the parameters of the room they're in. "look" and other commands will respond to them as if they actually exist, when they don't. When their names are displayed, the name will end in "[Fake]" to indicate this.

Creating fake objects

look #add here will open a menu that allows you to create fake objects in the location you're at. here may be replaced with another location.

Putting fake objects in containers

Have fake objects cluttering up your inventory that you want to store somewhere in your house?

@create drawers

Create the container. Skip if you already made it.

drop drawers

Put the container on the ground.

@set drawers=X

Allow @force to be used on the drawers.

@flock drawers=me

Allow yourself to use @force on the drawers.

@set here=fake_drop?:yes

Allow dropping fake objects into your room.

fdrop button

Drop the fake object into the room.

@force drawers=fget button

Make the container pick the object up

You cannot directly put a fake object into a container using the normal commands, so this workaround makes the container pick the fake objects up, after setting flags to allow that to happen.

The Details

Fake objects live inside the /_fake/ propdir. For example, if you picked up Some Cheese On A Skewer, you may see these values via ex me=/_fake/Some Cheese On A Skewer/:

- str /_fake/Some Cheese on A Skewer/bites:3
- str /_fake/Some Cheese on A Skewer/desc:A small skewer topped with three pieces of cheese.
- str /_fake/Some Cheese on A Skewer/drink?:n
- str /_fake/Some Cheese on A Skewer/finishmsg:You bite into a bit of toasted gouda, finishing the cheese skewer.
- str /_fake/Some Cheese on A Skewer/foodvalue:5
- str /_fake/Some Cheese on A Skewer/format:You bite into a bit of fried mozzarella.
- str /_fake/Some Cheese on A Skewer/isfood?:yes
- str /_fake/Some Cheese on A Skewer/ofinishmsg:eats the last of their cheese skewer.
- str /_fake/Some Cheese on A Skewer/oformat:eats a piece of cheese.
- str /_fake/Some Cheese on A Skewer/scent:The scent of cheese fills your nose.
- str /_fake/Some Cheese on A Skewer/show:yes
- str /_fake/Some Cheese on A Skewer/useddesc:A small skewer topped with a bit of cheese.
- str /_fake/Some Cheese on A Skewer/usename:cheese skewer

Most of these attributes have to do with its properties as food, the bare minimum for a fake object to work is the /desc attribute.

For instance, @set me=/_fake/what/desc:You don't know what this is. will give you a fake object called what. To destroy it, @set me=/_fake/what:


CategorySpinDizzy

Fake objects (last edited 2023-10-01 14:42:32 by Voksa)