ID:176268
 
How could i make a harvester like in CnCd. If you havent played i need to make a mob that searches for a certain mob then goes to it and when it goes over the turf the turf changes to grass then the harvested the harvester is carrying goes up 1 then if the harvested is like 10 it goes back to the base and adds the harvested to the players minerals, then its harvested gets set to 0 again and it starts over...(Note: I dont want it to teleport to the base or the turf i want it to like move there)
You need to have a for(var/turf/harvestturf/T in world)
and a walk_to proc in your harvesters proc.
In response to Mrhat99au
?
In response to Koolguy900095
Dude its that easy
When the harvester gets created, make it look for a havesting patch and send it there.
In response to Mrhat99au
i dunno how to do that which is why i need help
In response to Koolguy900095
so how do i do this? what should i look up?
In response to Koolguy900095
i tried

for(var/turf/harvestturf/T in world)
walk_to()

but that dont work....please help
I really need help! Im willing to pay!!!
In response to Koolguy900095
Koolguy900095 wrote:
I really need help! Im willing to pay!!!

I seems like you should learn more of the language before attempting to create something difficult like that. Check out some tutorials, some demos and create some small programs yourself, just to learn how it works. Use the help system as well! In your case, walk_to() is a good way to go.


/Gazoot
I explained it to you before. Assuming a player gives this mob orders, when it reaches it's destination, search oview(10) for /obj/crystal. If it finds one, move to it, delete it, then add 1 to the harvesting value. Repeat until it's full, then search through every refinery in the world for the closest one using get_dist, and move to it, set harvested to 0, and repeat.
In response to Koolguy900095
Well, it seems like an interesting thing to do....if you give me 2 days I'll try to make something like this. I love a challenge :).
In response to Mli0
Ok thanks! is there anyway to contact you besides pager?