I need help with medical attention


#1

Can you help me with it?


#2

Well, what is your problem? We can’t help you without knowing what to help you with.


Reaping Fire coding errror?
#3

well it has been a while and i have already beat the level and now i am stuck on sarven sentry and it says that flagblack is not defined here is my code.
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.pickUpFlag(flagblack)
    self.buildXY("fire-trap", x, y)
self.findFlag("green")
if flagGreen:
    pos = flagGreen.pos
    x = pos.x
    y = pos.y
    self.pickUpFlag(flagGreen)
    flagGreen = self.buildXY("fence", x, y)
self.findFlag("violet")
if flagViolet:
    pos = flagViolet.pos
    x = pos.x
    y = pos.y
    self.moveXY(x, y)
    self.pickUpFlag("violet")

any thoughts
nvm i fixed it on my own and beat it


#4

Please i open a new post for help with a different level


#5

Welcome @Damian_Short on the CodeCombat forum. We’re glad to have you here. However, improving the quality of your topics would be appreciated. Have a look to the FAQ for standard debugging procedure and standard formating when posting. Have a good day.