I understand the algorithm and the theory but it is the use of a tielmap that gets me, I'm not sure how I'd apply a cost to each tile and how to access the tiles in a script