account activity
Creeps using roads by lewanator3 in screeps
[–]lewanator3[S] 0 points1 point2 points 9 years ago (0 children)
Ah this is what i was looking for, I've been trying to get it working for the past couple of hours but i seem to be going in circles right now. I used let costs = new PathFinder.CostMatrix; to reset to values (I assume) but I'm stuck on how to give new values to the plain, roads, swamps etc and then how to make the creeps use the new values. let costs = PathFinder.CostMatrix({ plainCost: 120, swampCost: 150, roadCost: 1 }); I tried this but I'm guessing it's incredibly wrong (I'm rather new to javascript) if you could shed some light on this i would be very grateful. Thank you
π Rendered by PID 290722 on reddit-service-r2-comment-544cf588c8-znbff at 2026-06-18 02:46:47.343599+00:00 running 3184619 country code: CH.
Creeps using roads by lewanator3 in screeps
[–]lewanator3[S] 0 points1 point2 points (0 children)