Possesions

If somebody has possession of an item, how do you make it so that you can take it from him. I have it so you need to tie up a person before you can examine something, how would you make something similar?

Patrick carries the security-badge. The description of the security-badge is “This might be helpful somewhere else in the airport.”.

Write an instead of taking rule that under certain conditions move the badge to the player.

Instead of taking the security-badge when Patrick carries the security-badge and Patrick is asleep: now the player carries the security-badge; say "You manage to pick the badge from the sleeping guard. That should teach him a lesson."

If you wanted something more general so that you could take anything from any sleeping person, you’d probably want to replace the can’t take people’s possessions rule.

This is the original:

Check an actor taking (this is the can't take people's possessions rule): let the local ceiling be the common ancestor of the actor with the noun; let H be the not-counting-parts holder of the noun; while H is not nothing and H is not the local ceiling: if H is a person, stop the action with library message taking action number 6 for H; let H be the not-counting-parts holder of H;

and you’d probably change the “if H is a person” line to something like “if H is an awake person.”

Of course you’d have to do something like this too:

A person can be awake or asleep.

The simplest way to replace the can’t take people’s possessions rule is like this.

[code]A person can be awake or asleep.

Check an actor taking (this is the new can’t take people’s possessions rule): unless the holder of the noun is an asleep person, anonymously abide by the can’t take people’s possessions rule.

The new can’t take people’s possessions rule is listed instead of the can’t take people’s possessions rule in the check taking rulebook.[/code]

Now the player should be able to take things from sleeping people.

Hope this helps.