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
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
detecting friends saying stuff would be a sweet ability to have
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).
Very cool! I would love to see callbacks and listeners implemented!
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.
@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.)
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.
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.
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
instead of
self.pickUpFlag("black")
try
self.pickUpFlag(flagBlack)
and so on, for each color
Thanks sotonin it worked
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)
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)
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)
Not
flagGreen = self.buildXY("fence", x, y)
but
self.buildXY("fence", x, y)
I’m no moderator, but I think you need a loop?
Wait you have one, sorry.
那你这关过去了嘛?我也卡在 这关了,我感觉我的代码没有问题,就是敌同有提示,来不急放旗帜!!!
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)