1
我想在我的Inform7游戏中做一个功能:Inform7:如何在inform7的特定情况下创建随机机会事件?
当玩家决定通过北行去穿过人行横道时,第一次叙述者会向玩家表明玩家有机会将会死亡,如果玩家再次向北输入,那么该事件将会发生,并且在1比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.
是的,这个代码不工作..任何人都可以帮助我弄清楚如何使这项工作?