I’m doing Siege of Stonehold right now. What I’m trying to do is make Tharin walk to a flag and sit on a flag even if he sees enemies along the way until enemies are near then cleave them. Once that’s done he will attack the rest and then run to the Violet flag until cleave is ready again. This is hard though, because he sees a bunch of dead ogres nearby and cleaves them. I’m not sure how to go about this.
He is also moving to the violet flag when I’m telling him not to and he won’t pick the flag up once he cleaves it says to pass an object… Guys please =(
# You'll need great equipment and strategy to win.
loop:
enemy = self.findNearestEnemy()
flag = self.findFlag()
item = self.findNearestItem()
cleave = self.isReady("cleave")
if enemy:
distance = self.distanceTo(self.findNearestEnemy())
if flag != "Violet":
if cleave == 1:
self.say("Cleave Ready!")
flagP = flag.pos
x = flagP.x
y = flagP.y
self.moveXY(x, y)
if distance < 6:
self.moveXY(x, y)
self.cleave(enemy)
if enemy:
self.attack(enemy)
if flag:
self.pickUpFlag("Green" or "Black")
elif cleave == 0:
self.findFlag("Violet")
vPos = flag.pos
x = flag.pos
y = flag.pos
self.moveXY(x, y)
else:
self.say("all clear!")