food counter
Oct 20 2008, 4:10 am
By: UnknownEnemyZero  

Oct 20 2008, 4:10 am UnknownEnemyZero Post #1



I'm trying to think of ways to try to accurately detect the exact amount of supply a player has.

With terran the unit values are as follows:

Units Points Score:
--------------------
50 = Marine/SCV(1)
75 = Vulture(2)
100 = Firebat(1)
125 = Medic(1)
175 = Ghost(1)
200 = Goliath(2)
300 = Dropship(2)
350 = Tank(2)
400 = Wraith(2)/Valkyrie(3)
1200 = Battlecruiser(6)

Problem 1: Wraiths and Valks have the same unit point value, but valk has 3 supply and wraith has 2.
Problem 2: When a player has a large production going like 10+ production buildings going at the same time, the trigger system i'm using can't keep up EVEN with hyper triggers.

Conditions:
Player 1 unit score is exactly 50.
Actions:
Subtract 50 units points from Player 1.
Add 1 Custom Point(represents supply on the scoreboard).
Preserve Trigger.

And do this for all of the units. To remedy the wraith/valk mix up I just disable the ability to build valks. It works fine when the player has less than 7 production buildings once it goes beyond that the counter starts to fail.

Any ideas?



None.

Oct 20 2008, 4:14 am Falkoner Post #2



Instead of using kill score, try using Kills to Cash Perfect, it's a bit more complicated, but as the title suggests, it's perfect.



None.

Oct 20 2008, 4:19 am O)FaRTy1billion[MM] Post #3

👻 👾 👽 💪

If you feel adventurous...
Quote
0058212C 1.15.2 Win Zerg Underlings Available 4 12 1 int specifying Zerg Underlings Available for Players 1-12…
0058215C 1.15.2 Win Zerg Underlings Used 4 12 1 int specifying Zerg Underlings Used for Players 1-12. Not…
0058218C 1.15.2 Win Zerg Underlings Max 4 12 1 int specifying Zerg Underlings Max for Players 1-12. Note…
005821BC 1.15.2 Win Terran Supply Available 4 12 1 int specifying Terran Supply Available for Players 1-12. …
005821EC 1.15.2 Win Terran Supply Used 4 12 1 int specifying Terran Supply Used for Players 1-12. Note …
0058221C 1.15.2 Win Terran Supply Max 4 12 1 int specifying Terran Supply Max for Players 1-12. Note t…
0058224C 1.15.2 Win Protoss Psi Available 4 12 1 int specifying Protoss Psi Available for Players 1-12. No…
0058227C 1.15.2 Win Protoss Psi Used 4 12 1 int specifying Protoss Psi Used for Players 1-12. Note th…
005822AC 1.15.2 Win Protoss Psi Max 4 12 1 int specifying Protoss Psi Max for Players 1-12. Note tha…
If you know how to use EUDs, this should be easy. Otherwise I'd have to explain EUDs and then show you how to use these values which come before the Death table.



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!

Oct 20 2008, 4:26 am UnknownEnemyZero Post #4



Quote from Falkoner
Instead of using kill score, try using Kills to Cash Perfect, it's a bit more complicated, but as the title suggests, it's perfect.

I found out through using the values from the KILL SCORE do not represent UNIT SCORE. This is detecting SUPPLY/PSI/UNDERLING COUNT, not points to minerals.

About EUDs, unfortunately I do not how to use them. I was hoping for something avoiding that. So I wouldn't have to learn it. But thank you for providing the values for me, I'll see what I can do.



None.

Oct 20 2008, 4:38 am O)FaRTy1billion[MM] Post #5

👻 👾 👽 💪

OH, I just remembered something.

I do not know if those values are still correct.. The death table hasn't moved in 1.15.3, so I do not think anything else should. I will double-check those values tomorrow to make sure they are current.



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!

Oct 20 2008, 7:08 pm rockz Post #6

ᴄʜᴇᴇsᴇ ɪᴛ!

http://www.staredit.net/topic/2757/
see my 2nd post, replace the HP number with your current food, and continue down. Once you get that, I can help you more for actually getting it into the map (though you can just save the .trg file and import into staredit).



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

Oct 20 2008, 8:39 pm O)FaRTy1billion[MM] Post #7

👻 👾 👽 💪

These values are before the death table (unless 1.15.3 moved the), so you have to use triggers other than Death to reach them.



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!

Oct 20 2008, 11:15 pm Falkoner Post #8



Quote
I found out through using the values from the KILL SCORE do not represent UNIT SCORE. This is detecting SUPPLY/PSI/UNDERLING COUNT, not points to minerals.

I know that, Kills to Cash perfect is set up to use Kills, something normally not feasable, I posted it because the method, while it needs a couple modifications, will work for your problem.



None.

Oct 26 2008, 4:55 am iCafeMoto Post #9



if u use eud triggers, wouldnt u need to make A LOT of triggers to detect every possible supply/psi/underling count for each race for each player?



None.

Oct 26 2008, 5:37 pm SelfPossessed Post #10



A simple, but extremely flawed, solution that does not use EUDs can be to leave one of the resources dedicated to tracking food count. For example, let gas represent food. Then a Marine would cost 50 minerals and 1 gas. Then, you have a trigger for each unit that detects a death and gives back the gas. For example, if current player suffered the death of at least 1 Marine, subtract 1 death of Marine for current player, add 1 gas for current player, preserve trigger.

Problems of course are many:
- You lose an entire resource type.
- Terran repair skill screws up your food counter. (you'd have to replace normal metal units with hero metal with modified resource counts, but that screws up upgrades and rally points, and it does nothing for dropships)
- Killing a Zerg egg screws up your food counter. (a death of an egg is a death of an egg, not the unit it contains)

Make of it what you will. EUDs are probably your best bet though.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-5-31. : 2:36 pm]
Wing Zero -- Bop em
[2024-5-31. : 2:36 pm]
Wing Zero -- Mods
[2024-5-29. : 9:40 pm]
Ultraviolet -- :wob:
[2024-5-28. : 8:43 am]
TheHappy115 -- Yea, thats the issue. Thanks. It would also explain why my deleted map couldn't get updated. Updated version reduced collision on units (only thing added) since was dodging game (players collide with each other)
[2024-5-28. : 5:26 am]
Ultraviolet -- If so, I'd just focus on getting them on scmscx.com and then you can link to that in the showcase thread for your maps
[2024-5-28. : 5:25 am]
Ultraviolet -- I can't upload my EUD maps, I think the DLDB has some issue with handling them. Are you trying to upload EUD maps?
[2024-5-28. : 2:06 am]
TheHappy115 -- Its been awhile but ever since I requested one of the Maps I posted to be deleted since I couldn't delete it myself (or update it), I haven't been able to upload any more maps. Any reason for that?
[2024-5-26. : 7:14 pm]
Kyradax -- Hi
[2024-5-26. : 5:05 pm]
O)FaRTy1billion[MM] -- :wob:
[2024-5-25. : 9:22 am]
Zycorax -- :wob:
Please log in to shout.


Members Online: Roy, RIVE