我想知道你是否能让Inform7在你进入那个房间时只显示一次类似say "Welcome to the room!".的东西。您输入的所有前面命令都不会重新触发此消息,但如果您离开并重新进入房间,它将再次显示。
我的想法是,我有一个人在房间里,我想要一些问候短信。还有,如果可能的话,我能把他们的文字打印出来吗?
发布于 2020-06-15 16:05:10
您可以使用新的或新的财产 (本例中的“新到达”)记录演员是否刚刚到达房间--将其设置在后规则中,用于"going“操作,并在一般的每一个转弯规则中清除它。问候语可以在另一个循环规则中显示-- 一个更具体的方法,以确保它在清除该属性的一般操作之前运行。 --限制在这样的情况下:说问候语的人(本例中的“Greeter”)既在正确的房间(本例中的“问候室”),又能够看到一个新来的人:
A person can be a new arrival.
A person is usually not a new arrival.
After going:
now the actor is a new arrival;
continue the action.
Every turn when the Greeter is in the Greeting Room and the Greeter can see a new arrival person:
if the player can see the Greeter:
say "Welcome to the Greeting Room![line break]".
Every turn:
repeat with newcomer running through new arrival people:
now the newcomer is not a new arrival.https://stackoverflow.com/questions/62355487
复制相似问题