Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: How to make 4 players share minerals + gas
How to make 4 players share minerals + gas
Aug 16 2010, 10:39 pm
By: Warlord_Master  

Mar 27 2015, 5:47 pm rockz Post #21

ᴄʜᴇᴇsᴇ ɪᴛ!

Well you can have negative death counts (and likely even negative minerals) by adding -1. Possibly to just do it that way. Not sure if starcraft displays negative minerals or would block you from spending negative minerals.



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

Mar 27 2015, 8:29 pm O)FaRTy1billion[MM] Post #22

👻 👾 👽 💪

Quote from rockz
Well you can have negative death counts (and likely even negative minerals) by adding -1. Possibly to just do it that way. Not sure if starcraft displays negative minerals or would block you from spending negative minerals.
I was going to suggest this. I'm like 98% sure you can have negative minerals (it's been a long time .. )



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Apr 13 2015, 9:07 pm Wormer Post #23



Oh yes, I just checked. SC displays negative minerals, gas and leaderboard too! Though it treats these values as positive in comparisons in conditions (I checked only Deaths, maybe Accumulate or Score conditions are different?) and truncates overflows with subtract (but allows for overflows with add, hence adding "negative" values works as expected).

So I am to assume that having "negative" amount of minerals isn't the solution here because it's actually a very big positive amount that can be spent for construction.

More testing shows this is wrong. When constructing, SC treats resources as signed integers. For instance, it won't allow to build anything if you got negative minerals. Interesting that SC won't allow to construct anything if you got negative gas, even if the unit's gas cost is 0. Setting negative gas cost (presumably minerals too) is technically possible in editor but doesn't work in SC due to the fact that it seems to interpret cost as 2-byte unsigned integer.

Post has been edited 5 time(s), last time on Apr 13 2015, 9:24 pm by Wormer.



Some.

Apr 13 2015, 10:58 pm Sand Wraith Post #24

she/her

you could do something like buffering the shared resource using DCs.

All players would share one DC.
Players can reserve some amount of DC.
In doing so, the DC pool is decreased and the reserving player's minerals increases by the same amount.
Every interval of time, for all pool's players, if a player who is a part of the pool has at least N minerals, N minerals are removed from that player and N is added to the DC pool.

So something like that I presume would be an approximation of what you want.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:41 am]
ManCubuS -- Seems like something's broken regarding the site then. Sadge...
[07:36 am]
Oh_Man -- have i ever told u guys my SC2 pro-gamer story
[11:30 pm]
Ultraviolet -- That's strange, it looks like you targeted the base image file (sometimes people make the mistake of just using the imgur page link which doesn't work for embedding) but it still didn't work it sounds like.
[03:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[03:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[03:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[03:05 pm]
NudeRaider -- I think SEN has trouble with https or hotlinking is forbidden. It certainly is nothing about the size, it just fails to get any size. You can get it working if you use imgur and include the actual image link for the img tag. Like this: [img=https://i.imgur.com/ddYqXZa.jpeg]
[2026-7-26. : 11:15 am]
ManCubuS -- Hey fellas! Anyone knows why when I try to upload an image it says "failed to get image size"? I even tried making it so small. Imgur isn't working here and I tried postimg no luck.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
Please log in to shout.


Members Online: NudeRaider