Is there anyway to modify the amount of minerals in a mineral patch to subtract 1? I need it for a mining system I'm doing.
well yeah i think so. are you putting it at time intervals?
No, when a unit arrives at a location.
Then you would have to make a location on each mineral patch or the unit to bring to the minerals. However, you cannot make it just subtract 1 mineral it will need to be set to a different amount. There is no trigger that modifies resource amount on the mineral field to subtract 1.
Ah well, I guess I'll need a new mining system. My old system was based on the concept that you could bring a unit to a mineral patch, and it would subtract a mineral from teh patch while adding one mineral to your minerals.
any new ideas?
just dont subtract a mineral. when the player get to a certin amount then destroy the minerals
i've been wondering if this would work. since the worker mines something it has a mineral chunk in its hand or something. think you can detect those mineral chunks after they mine it?i think that could be a way to detect it since only one worker can mine each mineral patch at a time it might be easy in my opinion...
QUOTE(Toothfariy @ May 4 2006, 05:51 PM)
just dont subtract a mineral. when the player get to a certin amount then destroy the minerals
[right][snapback]479485[/snapback][/right]
There will be multiple areas to mine from, so if you just have all minerals from highest mineral patch, that will destroy ever other wood pile in the map.
it is possilbe to use ur first idea but you'd have to set each level of mineral
I know, but in the end you will have hundreds of minerals, not just twenty.
That is why I am asking for a new system.
Creat multiple SCV's at the spot then when they leave it gives a chunk to one SCV when it gose to the CC it drops it off and a trig adds mins. Like so:
| Trigger |
| Players: |
| ¤ The player |
| Conditions: |
| ¤ Bring Player * brings exactly 1 SCV to mineral chunk 1 |
| Actions: |
¤ Creat 2 SCV's
|
¤ Wait till they stop mining
|
¤ Kill 3 SCV's at Chunk 1
|
| ¤ Creat 1 Guy with min at Chunk 1 |
| Trigger |
| Players: |
| ¤ The player |
| Conditions: |
| ¤ Bring Player * brings exactly 1 Guy with min to CC |
| Actions: |
¤ Creat 1 SCV at CC
|
¤ Kill 1 Guy with min
|
| ¤ Add # of mins |
Unfortunately, the mineral chunks that miners carry after mining a patch are not detectable.
Unfortunately, I still have no solution.
Fotunately, I can use teh post to bump my minerals back up.
QUOTE(Voyager7456(MM) @ May 5 2006, 12:49 PM)
Unfortunately, the mineral chunks that miners carry after mining a patch are not detectable.
[right][snapback]480108[/snapback][/right]
yea sorry my bad... just i haven't tested it. but the minerals a worker carries looks like the same one from the extra units, so i pretty much assumed they were the same, but isn't. they explode pretty much the same without a death wav, but i did some testing and the minerals from the mineral patch and the mineral chunks from the extra units are different.
That helps me in no way at all. I think I have a new system that works, but not as good as the old one would have. Do you guys think the below would work well?
Mineral patchs have only 1 or 2 minerals in them. When you bring a person to the location, you collect the amount of minerals in that patch. What do you think?