我想在我的 Inform7 游戏中创建一个功能:
当玩家决定向北穿过人行横道时,解说员会在第一时间向玩家提示玩家有可能会死亡,如果玩家再次向北输入,则该事件将发生并且以 2 分之一的随机概率成功,玩家将能够前往花园。像这样:
Instead of going north in the road for the second time when a random chance of 1 in 2 succeeds:
say "Yay! You made it!";
now the player is in the Garden.
otherwise:
say "The car crashed you instantly - without any hope, you lost your whole strength in your body…";
end the game in death.
是的,这段代码不起作用..有人能帮我弄清楚如何使它工作吗?