通り過ぎる

平和なオ-ガの村を発見. 侮辱をしない事!

目標

平和なオ-ガを馬鹿にするんじゃない
宝石を取る
キノコを取るな
外へ行こう。

You found a village of peaceful ogres.
If you insult them, they will join the hostile ogres!
They will be insulted if you take their food, or if you don't take the gems they offer you.
The sample code shows you how to compare things with !=.
あなたは平和な怪物の村を見つけた。
もしあなたがそれらを侮辱するならば、それらは敵対的な怪物に参加する!
もしあなたがそれらの食物を食べるか、または、あなたが、それらがあなたに提供する宝石を取らないならば、それらは侮辱される。
サンプルコードは、どのように物をそれと比較するかをあなたに示す。

if item.type != "gem":
  # The item is not a "gem".

ヒント

この平和なオ-ガ族を馬鹿にするんじゃない

解答

a
while True:
  item = hero.findNearestItem()
  if item:
    if item.type != "gem":
      hero.moveXY(pet.pos.x, pet.pos.y)
    else:
      hero.moveXY(item.pos.x,item.pos.y)
a

  • 最終更新:2017-04-30 13:36:24

このWIKIを編集するにはパスワード入力が必要です

認証パスワード