I cannot do the level sarven sum with arithmetic for the traps.
code
‘’’
whiteX = {‘x’:27, ‘y’:42}
redX = {‘x’:151 , ‘y’: 118}
minHazard = None
min = 9999
maxHazard = None
max = 0
index = 0
hazards = hero.findHazards()
while len(hazards) > index:
if hazards[index].value < min:
minHazard = hazards[index]
min = hazards[index].value
if hazards[index].value > max:
maxHazard = hazards[index]
max = hazards[index].value
index += 1
nn = min + max
hero.moveXY(27, 42)
hero.say(nn)
while True:
flag = hero.findFlag(“green”)
if flag:
hero.pickUpFlag(flag)
if hero.isReady(“summon-undead”):
hero.cast(“summon-undead”)
‘’’
whiteX = {'x':27, 'y':42}
redX = {'x':151 , 'y': 118}
minHazard = None
min = 9999
maxHazard = None
max = 0
index = 0
hazards = hero.findHazards()
while len(hazards) > index:
if hazards[index].value < min:
minHazard = hazards[index]
min = hazards[index].value
if hazards[index].value > max:
maxHazard = hazards[index]
max = hazards[index].value
index += 1
nn = min + max
hero.moveXY(27, 42)
hero.say(nn)
while True:
flag = hero.findFlag("green")
if flag:
hero.pickUpFlag(flag)
if hero.isReady("summon-undead"):
hero.cast("summon-undead")
# To disable the fire-traps add the lowest trap.value to the highest value.
# Move to the white X and say the answer to Kitty the cougar.
# Defeat all the ogres if you dare.
# Once all ogres are defeated move to the red X.
# Look out for potions to boost your health.
# To disable the fire-traps add the lowest trap.value to the highest value.
# Move to the white X and say the answer to Kitty the cougar.
# Defeat all the ogres if you dare.
# Once all ogres are defeated move to the red X.
# Look out for potions to boost your health.
whiteX = {'x':27, 'y':42}
redX = {'x':151 , 'y': 118}
minHazard = None
min = 9999
maxHazard = None
max = 0
index = 0
hazards = hero.findHazards()
while len(hazards) > index:
if hazards[index].value < min:
minHazard = hazards[index]
min = hazards[index].value
if hazards[index].value > max:
maxHazard = hazards[index]
max = hazards[index].value
index += 1
nn = min + max
hero.moveXY(27, 42)
hero.say(nn)
while True:
flag = hero.findFlag("green")
if flag:
hero.pickUpFlag(flag)
if hero.isReady("summon-undead"):
hero.cast("summon-undead")
Thanks for posting and trying to help, but please don’t post on very old topics. These people aren’t active anymore and have very likely finished this level.
Thanks
Danny
Ok je serai pour la prochaine fois.
J ai vu que ça faisait longtemps mais c’est surtout pour les autres personne qui verai ce topic. Au moins on peut le mettre en “résolu”.