-7

「無効な構文」の通知を受け取り続けていますroom105

*room15 = room("Check out the lab")

room15.setDescription("You look around the lab. You find nothing of importance, really."

room105 = room("Continue to look around")

room105.setDescription("You still don't find anything.")

room16 = room("Go back up trapdoor and into the sweet room")

room16.setDescription("You go up the ladder and into the room, only to find... The leader! He becomes startled, and begins to come at you!")


room106 = room("Talk to him")

room106.setDescription("you attempt to speak with the leader, but he comes at you too fast, and kills you.                                                                              GAME OVER.")

room106.setFunction(lambda: lockroom (room16))*

テキストアドベンチャーを作ろうとしています。以前にテストしたときは完全に機能していましたが、room105ビットを挿入するとすぐにエラーが発生します。

4

2 に答える 2

6
*room15 = room("Check out the lab")

room15.setDescription("You look around the lab. You find nothing of importance, really."

room105 = room("Continue to look around")

2 行目に閉じ括弧がありません。

于 2013-05-08T00:33:06.493 に答える