Level:sarven sentry ,how to pass? 我英语不好,有些听不懂

I don’t think it could be automated since ogres are coming from random places each time

wish we had

if friend said “ogre coming” , build trap at freind x+5 :smiley:

3 Likes

detecting friends saying stuff would be a sweet ability to have

3 Likes

In the older levels, you would have the hear(speaker, message) callback you could write in addition to the main plan action method, but for the hero levels we simplified things so that method switching wouldn’t be needed (it was a very confusing part of the interface, although cool).

1 Like

Very cool! I would love to see callbacks and listeners implemented!

1 Like

The archers don’t let me know which direction the ogre/yak is coming from until they are already here. Sometimes they don’t say anything.

2 Likes

@lukebrannigan57 each archer is placed near a gorge. The archer that gives the warning also indicates the direction the enemy is coming from.

If you watch the gif I posted earlier, you’ll see that the first enemy comes from the gorge that the archer standing nearest to called out. (I’m not sure if the level has gotten any updates since, it may be different now.)

1 Like

I think you question is the wrong topic, but, if you want to use you card to donate, I think you can buy the levels marked with blue star on the map by clicking on subscribe.

1 Like

I had the same problem before, but after reloading the game one time more they started to show the dialog balloons and the near entrance to the archer of the given alert is where the enemy is coming.

1 Like

Hi guys i’m stuck on this level. Every time i want him to pick up a flag, the games says pass a flag object to pick up and i’m seriously confused. This is my code:

# Use different colored flags to perform different tasks.
loop:
    

    flagGreen = self.findFlag("green")
    flagBlack = self.findFlag("black")
    flagViolet = self.findFlag("violet")

    self.findFlag("black")
    if flagBlack:
        pos = flagBlack.pos
        x = pos.x
        y = pos.y
        self.buildXY("fire-trap", x, y)
        self.pickUpFlag("black")
    self.findFlag("green")
    if flagGreen:
        pos = flagGreen.pos
        x = pos.x
        y = pos.y
        flagGreen = self.buildXY("fence", x, y)
        self.pickUpFlag("green")
    self.findFlag("violet")
    if flagViolet:
        pos = flagViolet.pos
        x = pos.x
        y = pos.y
        self.moveXY(x, y)
        self.pickUpFlag("violet")

thx

1 Like

instead of

self.pickUpFlag("black")

try

self.pickUpFlag(flagBlack)

and so on, for each color

1 Like

Thanks sotonin it worked

1 Like

捐赠是自愿的

  • 这个游戏目前的玩法目前还是你有钱,没钱都能玩
  • 捐赠了可以让你多玩一些关卡
1 Like

how does it work?this is my code

# If there's a green flag, build a fence.
# If there's a black flag, build a fire trap.
# If there's a violet flag, just move to its location.
# Remember to pick up flags after you're done with thtt
loop:
    

    flagGreen = self.findFlag(flagGreen)
    flagBlack = self.findFlag(flagBlack)
    flagViolet = self.findFlag(flagViolet)

    self.findFlag("black")
    if flagBlack:
        pos = flagBlack.pos
        x = pos.x
        y = pos.y
        self.buildXY("fire-trap", x, y)
        self.pickUpFlag(flagBlack)
    self.findFlag("green")
    if flagGreen:
        pos = flagGreen.pos
        x = pos.x
        y = pos.y
        flagGreen = self.buildXY("fence", x, y)
        self.pickUpFlag(flagGreen)
    self.findFlag(flagViolet)
    if flagViolet:
        pos = flagViolet.pos
        x = pos.x
        y = pos.y
        self.moveXY(x, y)
        self.pickUpFlag(flagViolet)
1 Like
    flagGreen = self.findFlag("green")
    flagBlack = self.findFlag("black")
    flagViolet = self.findFlag("violet")
self.findFlag("black")
if flagBlack:
    pos = flagBlack.pos
    x = pos.x
    y = pos.y
    self.buildXY("fire-trap", x, y)
    self.pickUpFlag(flagBlack)
self.findFlag("green")
if flagGreen:
    pos = flagGreen.pos
    x = pos.x
    y = pos.y
    flagGreen = self.buildXY("fence", x, y)
    self.pickUpFlag(flagGreen)
self.findFlag("violet")
if flagViolet:
    pos = flagViolet.pos
    x = pos.x
    y = pos.y
    self.moveXY(x, y)
    self.pickUpFlag(flagViolet)
1 Like

green doesnt work

    flagGreen = self.findFlag("green")
    flagBlack = self.findFlag("black")
    flagViolet = self.findFlag("violet")
self.findFlag("black")
if flagBlack:
    pos = flagBlack.pos
    x = pos.x
    y = pos.y
    self.buildXY("fire-trap", x, y)
    self.pickUpFlag(flagBlack)
self.findFlag("green")
if flagGreen:
    pos = flagGreen.pos
    x = pos.x
    y = pos.y
    flagGreen = self.buildXY("fence", x, y)
    self.pickUpFlag(flagGreen)
self.findFlag("violet")
if flagViolet:
    pos = flagViolet.pos
    x = pos.x
    y = pos.y
    self.moveXY(x, y)
    self.pickUpFlag(flagViolet)
1 Like

Not
flagGreen = self.buildXY("fence", x, y)

but

self.buildXY("fence", x, y)

1 Like

I’m no moderator, but I think you need a loop?

1 Like

Wait you have one, sorry.

1 Like

那你这关过去了嘛?我也卡在 这关了,我感觉我的代码没有问题,就是敌同有提示,来不急放旗帜!!!

1 Like

this is my code:

# Use different colored flags to perform different tasks.

loop:
    flagGreen = self.findFlag("green")
    flagBlack = self.findFlag("black")
    flagViolet = self.findFlag("violet")
    
    # If there's a green flag, build a fence.
    # If there's a black flag, build a fire-trap.
    # If there's a violet flag, just move to its location.
    # Remember to pick up flags after you're done with them!
    if flagGreen:
        pos = flagGreen.pos
        gx = pos.x
        gy = pos.y
        self.buildXY("fence", gx, gy)    
        self.pickUpFlag(flagGreen)
    if flagBlack:
        pos = flagBlack.pos
        bx = pos.x
        by = pos.y
        self.buildXY("fence", bx, by)
        self.pickUpFlag(flagBlack)
    if flagViolet:
        pos = flagViolet.pos 
        vx = pos.x
        vy = pos.y
        self.moveXY(vx, vy)
        self.pickUpFlag(flagViolet)
1 Like