ID:141676
 
Code:
proc
Find_Path(turf/start,turf/end)
var/list/large = list(start)
var/list/short = list(start)
var/list/final = list()

var/found = 1
for(var/turf/t in orange(1,start))
large["[found]"] = t
t.parent = start
world << "Found: [found]"
found ++

for(var/num = 0, num < found, num++)
var/turf/y = large["[num]"]
world << large["[num]"]
world << y // Even though this line works,
y.icon_state = "r" // this line gives me an error, 'cannot edit null.icon_state'

mob/verb/test()
Find_Path(loc,get_step(src,NORTH))


Problem description:

Look at the comments.
How can I edit variables of an object located within a list?
You're filling the list from "1" to "[found-1]", but you're then going through it from "0" to "[found-1]". The second loop is producing a null value.

Of course, you don't need associative lists for this anyway.

Lummox JR
In response to Lummox JR
Hey, thanks!

If I run into more trouble, I'll just reply to the topic/post.

Let's see how far I can go with my pathfinding... :P