Trying to figure out how to detect an area web in the room and then dispel it before moving on. Here is what I got so far. I know the checkroom sticky web part isnt right, thats the part I am trying to figure out.
[Some Area, Some Room - 12345]
You notice a giant sticky web.
Obvious paths: north, east
Code:
direction = ["go portal", "ne", "ne", "ne", "n", "n", "n", "n", "e", "e", "n", "nw", "go steps", "n", "go spear", "w", "w", "w", "w", "n", "n", "climb steps", "go arch", "d", "climb steps"]
loop{
move direction[number]
if checkroom == "a sticky web"
if Spell[209].known?
Spell[209].cast('web') if Spell[209].affordable?
elsif Spell[417].known?
Spell[417].cast('web') if Spell[417].affordable?
elsif Spell[119].known?
Spell[119].cast('web') if Spell[119].affordable?
end
end
number += 1
number = 0 if number >= direction.count
}