ID:176268
![]() Jan 31 2003, 4:29 pm
|
|
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)
|
Dude its that easy
When the harvester gets created, make it look for a havesting patch and send it there. |
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.
|
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 :).
|
and a walk_to proc in your harvesters proc.