level 1
那个jump to 命令怎么用啊
我的代码
# 优先杀掉最远的敌人。
loop:
farthest = None
maxDistance = 0
enemyIndex = 0
enemies = self.findEnemies()
# 查看全部敌人,找出最远的那个。
while enemyIndex < len(enemies):
target = enemies[enemyIndex]
enemyIndex += 1
if self.isReady("cleave")and self.distanceTo(target)<5:
self.cleave(farthest)
# 是不是有敌人比我们能看到的最远的敌人还要远?
distance = self.distanceTo(target)
if distance > maxDistance:
maxDistance = distance
farthest = target
if farthest:
# 干掉最远的敌人!
# 如果敌人血量大于0就保持攻击。
pass
while farthest.health >0:
self.attack(farthest)
if self.distanceTo(farthest) < 10:
self.attack(farthest)
2016年02月14日 15点02分
3
level 1
# 优先杀掉最远的敌人。
loop:
farthest = None
maxDistance = 0
enemyIndex = 0
enemies = self.findEnemies()
# 查看全部敌人,找出最远的那个。
while enemyIndex < len(enemies):
enemies = self.findEnemies()
target = enemies[enemyIndex]
enemyIndex += 1
# 是不是有敌人比我们能看到的最远的敌人还要远?
distance = self.distanceTo(target)
if distance > maxDistance:
maxDistance = distance
farthest = target
if farthest and self.distanceTo(farthest)>10 :
self.moveXY(farthest.pos.x, farthest.pos.y)
# 干掉最远的敌人!
# 如果敌人血量大于0就保持攻击。
pass
while farthest.health > 0 and farthest.type != "decoy":
self.attack(farthest)
2016年02月14日 16点02分
5
level 1
还是不行啊跪求大神,难道一定要充钱这关才能过的去么?
2016年02月15日 13点02分
6
你的代码有问题,遇到最远的敌人直接就打,不要挪过去,还有就是用长剑,这样你就可以使用收割技能
2016年08月02日 05点08分
如果这些要是还不行的话,就说明你需要买更好的盔甲而不是武器
2016年08月02日 05点08分