2017-10-15 56 views
2

在這個遊戲房間是私人或公共,玩家有兩種狀態,A或B的T​​h玩家只能進入公共房間,而在狀態A,但不狀態B.這是所期望的效果是什麼,但鍵入此之後:檢查房型和球員的狀態在進入房間之前通知7

A person can be A or B. A person is usually A. 

A room can be private or public. A room is usually public. 

Check entering public room: 
    if player is B: 
      say "You can't do that." instead. 

通知,如文本的最後一塊根本不存在的行爲。我究竟做錯了什麼?

回答

2

進入操作僅適用於輸入容器或支持者。在地圖上移動是正在進行的操作。

Check going to public room when the player is B: 
    say "You can't do that." instead.