The “fire helmet”, as you call it, is good. It shows the effect of Warcry, which is one of Arryn’s skills. Given that, why would you want to prevent it from happening?
Interesting. I didn’t know it was good. As you can see from the pic my peasant put the palisade in the wrong place and I assumed that it was because of the ‘fire-helmet’. Also, Arryn goes off by himself way ahead of the pack so I thought the ‘fire-helmet’ was making everyone act crazy so that’s why I wanted to know what I could do to prevent or minimize it.
def chooseHeroStrategy():
# Return either “fight” or “advance”.
# Try to stay 5m behind the peasant when not fighting.
# Don’t get more than 15m away from the peasant.
pass
def heroFight():
# Stop the ogres from rushing past you to get to the peasant!
# Hint: try to slow them down if you can
pass
def heroAdvance():
# Stay behind the peasant
pass
def choosePeasantStrategy():
# Return “follow”, “build-above”, or “build-below”
# Hint: use isPathClear() to determine where the hallways are
def peasantAdvance():
# Keep the peasant behind Arryn and her soldiers.
if arryn:
self.command(peasant, “move”, arryn.pos.x-5,arryn.pos.y)
def peasantBuild(x,y):
# Command the peasant to build a palisade.
self.command(peasant, “BuildXY”, x,y)
# Your goal is to protect the peasant and move to the right.
# Arryn Stonewall will defend the front, and command the soldiers.
# You need to cover the rear and command t
arryn = self.findByType("raider")[0]
peasant = self.findByType("peasant")[0]
def chooseHeroStrategy():
# Return either "fight" or "advance".
# Try to stay 5m behind the peasant when not fighting.
# Don't get more than 15m away from the peasant.
pass
def heroFight():
# Stop the ogres from rushing past you to get to the peasant!
# Hint: try to slow them down if you can
pass
def heroAdvance():
# Stay behind the peasant
pass
def choosePeasantStrategy():
# Return "follow", "build-above", or "build-below"
# Hint: use isPathClear() to determine where the hallways are
def peasantAdvance():
# Keep the peasant behind Arryn and her soldiers.
if arryn:
self.command(peasant, "move", arryn.pos.x-5,arryn.pos.y)
def peasantBuild(x,y):
# Command the peasant to build a palisade.
self.command(peasant, "BuildXY", x,y)
loop:
heroStrategy = chooseHeroStrategy()
if heroStrategy == "fight":
heroFight();
elif heroStrategy == "advance":
heroAdvance();
peasantStrategy = choosePeasantStrategy()
if peasantStrategy == "build-above":
peasantBuild(peasant.pos.x, peasant.pos.y + 5)
elif peasantStrategy == "build-below":
peasantBuild(peasant.pos.x, peasant.pos.y - 5)
elif peasantStrategy == "follow":
peasantAdvance()