Mineral Sharing
This topic is locked. You can no longer write replies here.
Jan 30 2010, 4:43 am
By: Lord Malvanis  

Jan 30 2010, 4:43 am Lord Malvanis Post #1



What I want to do is a little confusing. I'm going to try and put it simply.

This is basically what it is:
Two players on a team.
Player 2 is defending player 1. Player 2 cannot mine minerals or gas. Player 1 must mine minerals and gas for player 2. I want it so that the minerals and gas mined by player 1 is sent directly to player 2, as if player 2 had mined it him/herself.
I would figure this out myself, but I'm busy with terrain. Can anyone help me out with this?



None.

Jan 30 2010, 4:50 am Riney Post #2

Thigh high affectionado

If player 1 has 1 mineral then
Remove one mineral from player 1
Add one mineral to player 2

:hurr: ?



Riney#6948 on Discord.
Riney on Steam (Steam)
@RineyCat on Twitter

-- Updated as of December 2021 --

Jan 30 2010, 4:54 am Neki Post #3



On top of that, use binary count-offs to more efficiently redistribute the minerals. So do what DM said, and then do it for 2,4,8,16,32,64 too, to make it even faster. Putting highest at the top of the trigger list so it fires first.



None.

Jan 30 2010, 4:55 am ImagoDeo Post #4



Use Binary Countoffs to transfer minerals from Player 1 to Player 2 every trigger cycle.

Preventing Player 2 from mining minerals is a bit more complicated. In fact, I'm not even sure it can be done. Any ideas, SEN?



None.

Jan 30 2010, 5:00 am Lord Malvanis Post #5



I plan on preventing player 2 from mining minerals by only giving him one probe, and to add more to the fact, he won't be able to build any more than one nexus, and that nexus is isolated away from minerals. The only accessable minerals would be far away, and near the enemy. Or in player 1's base. I'll look at the binary countoffs and do the triggers. Thanks guys.
(Also, even if player 2 decided to mine with one probe, he would die from not building.)



None.

Jan 30 2010, 6:46 am rockz Post #6

ᴄʜᴇᴇsᴇ ɪᴛ!

http://www.staredit.net/wiki/Sharing_Minerals
http://www.staredit.net/wiki/Resource_Sharing
http://www.staredit.net/wiki/Changing_Minerals_Mined

If you want them to have the same minerals at all times, you can use one of these. If you want player 1 to never have any minerals, that's already been discussed. If you want player 1 and 2 to have separate but linked minerals, use the "changing minerals mined" method, and instead of changing it, add 8 to both players, essentially giving the team 16 minerals per 8 ore mined.

If you want to prevent 2nd player from mining, prevent them from returning minerals to a town hall by pre-placing it somewhere, or prevent them from going near minerals in some way shape or form.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Jan 30 2010, 2:22 pm NudeRaider Post #7

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from Forum Rules
4. Thou shalt use the Wiki *, Search, and Google. You might find your answer before posting and thus not have to open a topic.

Besides as far as I can tell your topic has already been solved.

>> Locked




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-5-07. : 7:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
Please log in to shout.


Members Online: m.0.n.3.y