[SOLVED] Lost Viking! Please Help

My Code:

SLIDE = 10
SWITCH = 7
SKIP = 11

How many sideSteps north of the Red X you’ve taken.

sideSteps = 1

How many steps east of the Red X you’ve taken.

steps = 1

Multiply this with steps to determine your X coordinate. DON’T CHANGE THIS!

X_PACE_LENGTH = 4

Multiply this with sideSteps to determine your Y coordinate. DON’T CHANGE THIS!

Y_PACE_LENGTH = 6

The maze is 35 steps along the X axis.

while steps <= 35:

# Take the next step:
hero.moveXY(steps * X_PACE_LENGTH, sideSteps * Y_PACE_LENGTH)
if steps % SWITCH:
    hero.moveXY(sideSteps * X_PACE_LENGTH, steps * Y_PACE_LENGTH)
if sideSteps % SWITCH:
    hero.moveXY(steps * X_PACE_LENGTH, sideSteps * Y_PACE_LENGTH)

Welcome to the forum @Cedar ! :partying_face: This is a friendly place where you can ask help on levels, report bugs, or just chat with other coders! Don’t forget to read the guidelines if you haven’t yet. Have a great time!

Would you please format your code using this button:

1 Like
SLIDE = 10
SWITCH = 7
SKIP = 11

# How many sideSteps north of the Red X you’ve taken.

sideSteps = 1

# How many steps east of the Red X you’ve taken.

steps = 1

# Multiply this with steps to determine your X coordinate. DON’T CHANGE THIS!

X_PACE_LENGTH = 4

# Multiply this with sideSteps to determine your Y coordinate. DON’T CHANGE THIS!

Y_PACE_LENGTH = 6

# The maze is 35 steps along the X axis.

while steps <= 35:

Take the next step:

hero.moveXY(steps * X_PACE_LENGTH, sideSteps * Y_PACE_LENGTH)
if steps % SWITCH:
hero.moveXY(sideSteps * X_PACE_LENGTH, steps * Y_PACE_LENGTH)
if sideSteps % SWITCH:
hero.moveXY(steps * X_PACE_LENGTH, sideSteps * Y_PACE_LENGTH)
````Preformatted text`

SLIDE = 10
SWITCH = 7
SKIP = 11

How many sideSteps north of the Red X you’ve taken.
sideSteps = 1

How many steps east of the Red X you’ve taken.
steps = 1

Multiply this with steps to determine your X coordinate. DON’T CHANGE THIS!
X_PACE_LENGTH = 4

Multiply this with sideSteps to determine your Y coordinate. DON’T CHANGE THIS!
Y_PACE_LENGTH = 6

The maze is 35 steps along the X axis.
while steps <= 35:

# Take the next step:
hero.moveXY(steps * X_PACE_LENGTH, sideSteps * Y_PACE_LENGTH)
if steps % SWITCH:
    hero.moveXY(sideSteps * X_PACE_LENGTH, steps * Y_PACE_LENGTH)
if sideSteps % SWITCH:
    hero.moveXY(steps * X_PACE_LENGTH, sideSteps * Y_PACE_LENGTH)
1 Like

You need to add a s = 1 at the front.

Fix you code like this :

if steps % SWITCH == 0:
        s = -s
    if steps % SKIP == 0:
        sideSteps += s
    sideSteps += s
    if sideSteps < 1:
        sideSteps = SLIDE - 1
    if sideSteps > SLIDE:
        sideSteps = 1
    steps += 1

maybe it will help you.

it doesn’t help.(20 characters)

tip just use move out of the blat area of the fire traps and then shoot a burl the burl will attack you and set off the fire traps and then you can move to you victory

1 Like

Unless you don’t use money and/or don’t get a ranger. Like most reasonable people -_- (well, until now when you have to pay for coco .-.)

tbh the emp golves work ig (so does summoning a griff rider but idk if summons are banned)

what is blast area? radius 5? 10?

i have no idea just move 0,0 and then

hero.moveXY(16, 25)
hero.moveXY(25, 25)
hero.moveXY(33, 5)
hero.moveXY(35, 48)
hero.moveXY(46, 43)
hero.moveXY(47, 5)
hero.moveXY(58, 25)
hero.moveXY(68, 17)
hero.moveXY(87, 17)
hero.moveXY(96, 32)
hero.moveXY(103, 32)
hero.moveXY(111, 19)
hero.moveXY(127, 14)
hero.moveXY(138, 25)
hero.moveXY(143, 47)

it’s just somthing i found that works

Please stop posting solutions for levels. It is against the Rules.

it’s not a soluition

Then what is this? I thought the code above is one of the ways to solve the level.

1 Like

no not unless you use the other code i did not supply that is just for geting to the helmet but unless take out the fire traps it does’nt work

Well, I also wouldn’t recommend sharing such ideas. The purpose of the level is to complete the level using some advanced coding, not deleting all the fire traps and then moving.
Please remove the code. It’s not a big deal to fire all the fire traps.

1 Like

it’s not deleting them it’s using a ranger to atack the burl and then it blows up the fire traps

Well yes, I meant that.
Your post was marked as a solution, that means the creator of the topic took the code and burnt the fire traps, instead of solving the level with the code they started.

the code i made did not burn the fire traps he hade to wright the code himself