若是你卡在這里了,那么看看這個攻略吧
選擇英雄和編程說話
選擇裝備
寫代碼
while True:
enemy = hero.findNearestEnemy()
if enemy:
hero.attack(enemy)
運行
選擇英雄和編程說話
選擇裝備
寫代碼
# 殺失落所有進攻的食人魔
# 利用旗子遠離那些危險的食人魔
def xx():
while True:
enemy = hero.findNearestEnemy()
if enemy:
while True:
hero.attack(enemy)
if enemy.health<0:
break
else:
break
while True:
enemy = hero.findNearestEnemy()
if enemy:
#if enemy.type!="munchkin" and enemy.type!="ogre" and enemy.type!="scout" and enemy.type!="shaman":
#hero.say(enemy.type)
if hero.time>30 and (enemy.type=="shaman" or enemy.type=="thrower"):
hero.say("我得跑曩昔打長途了")
xx()
elif hero.pos.x<48:
hero.moveXY(48,26)
hero.shield()
運行
0 篇文章
如果覺得我的文章對您有用,請隨意打賞。你的支持將鼓勵我繼續創作!