给某些人某些事物(人与事物之间的关系)

时间:2016-07-15 15:53:27

标签: inform7

我希望玩家能够向某些人提供某些类型的东西,其中默认情况是人们不接受这些项目,但应该可以覆盖它。

我试图用关系来做这件事。

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.

然后设置关系的种类/实例,Billy应该接受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

如何让Billy接受所有food件物品?

2 个答案:

答案 0 :(得分: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. 

答案 1 :(得分:1)

陈述all创造了一种名为“食物”的东西。比利喜欢的。让比利像所有食物一样使用单词All food is liked by Billy. ,如下所示:

When play begins, now Billy likes all food.

<a asp-action=""
   asp-controller=""
   asp-area=""
   asp-protocol="https"
   asp-host="www.youtube.com/mysite"
   target="_blank">

这使得比利分别喜欢每种食物。