1

プレーヤーが特定の人に特定の種類のものを与えることができるようにしたいと思います。デフォルトでは、人々はアイテムを受け入れませんが、これをオーバーライドできる必要があります。

私は関係を使ってこれをやろうとしています。

The block giving rule is not listed in the check giving it to rules.

Interest relates one person to various things. The verb to like means the interest relation.

Check giving (this is the polite refusal of unwanted objects rule): 
    unless the second noun likes the noun: 
        say "[The second noun] disdainfully refuses [the noun]." instead.

次に、ビリーが受け入れる必要があるリレーションの種類/インスタンスを設定しますfood

Food is a kind of thing. A baguette is food. A baguette is here. 

Billy is a man. Billy is in Example Location. Billy likes food.

ただし、バゲットを取ってビリーに渡すと、次のようになります。

Billy disdainfully refuses the baguette

しかし、私が言うなら

Billy likes the baguette.

次に、与えることは成功します:

You give the baguette to Billy

foodビリーにすべてのアイテムを受け入れさせるにはどうすればよいですか?

4

2 に答える 2

2

リレーションではなく、どちらか/またはプロパティを使用する方法を見つけました。

A person can be interested-in-food.

贈与小切手で:

Check giving (this is the polite refusal of unwanted objects rule): 
    Unless noun is food and the second noun is interested-in-food: 
        say "[The second noun] disdainfully refuses [the noun]." instead.

そして、人に設定プロパティを与えます:

Billy is interested-in-food. 
于 2016-07-15T16:37:26.900 に答える