Is it possible to move a mineral patch from one location to another with triggers?
I tested it out, and no it doesn't look like it.
I tried moving minerals for both player 1 and player 12 and it did not work.
I've tried using player 1-12 and placing the patch for a specific player. Doesn't work. I was wondering if I missed anything...
QUOTE(SpaceBoy2000 @ Aug 21 2005, 01:36 AM)
I've tried using player 1-12 and placing the patch for a specific player. Doesn't work. I was wondering if I missed anything...
[right][snapback]294663[/snapback][/right]
I did a bit of research for you:
Although moving it seems not to work, removing the mineral patch and creating it somewhere else seems to work (however no matter what player you create the patch for, its always player 12)
Hmm, but it doesn't retain it's mineral amount, does it?
QUOTE(SpaceBoy2000 @ Aug 21 2005, 01:45 AM)
Hmm, but it doesn't retain it's mineral amount, does it?
[right][snapback]294665[/snapback][/right]
No, you can set it using
ModifyUnitResourceAmount();.
And I don't suppose you can shove in a pointer there to the original amount, can you? (No you can't, I know that)
Curse Blizzard and removing the EUD Actions! Oh well, that's life. Thanks anyways, I'll figure something else out....
heres an idea, unless ur spending the min's or somthin u could calqulate the number mined then subtract it from the patch. just an idea
but it would be to much trouble to create a trigger tat mathematically works out the number of scv's then subtracts 8 minerals every second, then creates the mineral patch with that exact amount. ud have to make a new trigger for every time they take 8 away.
QUOTE(www.com.au @ Aug 21 2005, 11:30 PM)
but it would be to much trouble to create a trigger tat mathematically works out the number of scv's then subtracts 8 minerals every second, then creates the mineral patch with that exact amount. ud have to make a new trigger for every time they take 8 away.
[right][snapback]295225[/snapback][/right]
yeah you would need at least 9 minerals and over and then whenver they take 8 minerals you'll need an advance trigger to put it back to 9 or more. it just takes to long
what im saying is that you use a counter to show the number of minrals then when it's time to move the minrals then it subtract's it from the new patch
no. Why do you want to move the minerals anyway???
you can detect how many minerals have been mined by using the trigger "accumulates" then you remove and create the mineral field and you susbstract the amount of minerals of the player any ways it will take tons of triggers + a lot of time
have fun ;D
He wanted to move the actual PATCH of minerals.
if you read above you will see that it's impossible, so we are suggesting way's to improvise and make it appear that he moved it.
The accumulation thing won't work, but space and myself have something worked out, we will just approximate the number of minerals using a few triggers that check the number of minerals approxmatly, remove, and create a patch with the approximate number.
you can calculate it, #SCV = -# Minerals x Minute
well you can do ModifyUnitResourceAmount and set the place to 0 and set the other location to 1500, that would somewhat look like you moved it.
i think he want to move the mineral path whit the same resourses that the minerals alredy have but he cant move so he have to detect
QUOTE
SacredElf Posted Today, 01:54 PM
you can calculate it, #SCV = -# Minerals x Minute
that will not work. unless all the scv are mineing the whole time, so it'd have to be a computer cause the human player's might not mine the whole time

So u can create mineral patches, eh? Thx guyz! You just gave me idea for ice spell in my RPG!!
QUOTE(Toothfariy @ Aug 23 2005, 06:37 PM)
that will not work. unless all the scv are mineing the whole time, so it'd have to be a computer cause the human player's might not mine the whole time

[right][snapback]296440[/snapback][/right]
u make a location near minerals if a mineral is 2x1 make a location 3x2 when a player moves a scv there the method start workin heres an example
C: Bring atleast 1 scv to Minerals
-
A: Create "Substractor" at "substractors"
A: Wait 8500 milliseconds
A: Preserve trigger
C: Switch Dunno set
-
A: Create mineral at Zone2
C: Bring exactly 1 "Substractor" to "Substractor"
-
A: Modify resources amount at Zone2
but whit that u just can move it one time

QUOTE
SacredElf Posted Today, 03:45 PM
u make a location near minerals if a mineral is 2x1 make a location 3x2 when a player moves a scv there the method start workin heres an example
C: Bring atleast 1 scv to Minerals
-
A: Create "Substractor" at "substractors"
A: Wait 8500 milliseconds
A: Preserve trigger
C: Switch Dunno set
-
A: Create mineral at Zone2
C: Bring exactly 1 "Substractor" to "Substractor"
-
A: Modify resources amount at Zone2
but whit that u just can move it one time
this could be very very messy, im assumeing that minral's would be surrounded by a location? in theory this should work but some time's starcraft run's a certin glitch. i think they need to be drone's. other wise they have a tendency to glitch and disable the trigger or make it work in the complete oppsite effect that we want.