Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [SOLVED]2 custom scores
[SOLVED]2 custom scores
This topic is locked. You can no longer write replies here.
Sep 6 2007, 11:02 pm
By: Aoe325  

Sep 7 2007, 12:31 am AntiSleep Post #21



Basically, you are always displaying custom score, you just switch the label.



None.

Sep 7 2007, 12:31 am Aoe325 Post #22



Quote from AntiSleep
Quote from Aoe325
Quote from AntiSleep
Quote from AntiSleep
You need 2 death counters, 1 for each custom score. Whenever you switch leaderboard, use binary countoffs to transfer one of the death counters into the custom score. When you want to switch again, you need to dump custom score back into the death counter before dumping the other death counter into the custom score. Now you need to double the triggers that actaually add to each death counter, make them detect which score is being displayed, and add to custom score instead of the death counter if that score is currently being displayed.
Your leaderboard should always display custom score. Kills is the number of kills units owned by you have made.

I'm already using a custom score, and I need a second one
You did not read my damn post, this is exactly what you want to do.

Yeah I'm sorry I already edited my post XD But the main problem is that I cant force a value into the death count without actually killing the unit. That's the thing I need to do



None.

Sep 7 2007, 12:32 am zerg Post #23



AntiSleep is right. Use his method. You won't need any space on the map, and you only have to use 1 Leader Board type. You just switch which death counter is being used for the Custom score.

Any other way, you will probably need space on the map.



None.

Sep 7 2007, 12:34 am zerg Post #24



Yes you can, you just say

Condition:
Player 1 brings unit to Sacrifice

Action:
Add 1 death count for Random Unused Unit of your Choice
Kill 1 unit at Sacrifice
Preserve Trigger



None.

Sep 7 2007, 12:35 am zerg Post #25



The exact trigger Action for Death Counts you want is called "Set Deaths."



None.

Sep 7 2007, 12:35 am AntiSleep Post #26



Quote from Aoe325
Yeah I'm sorry I already edited my post XD But the main problem is that I cant force a value into the death count without actually killing the unit. That's the thing I need to do

Yes you can, use the set deaths action. The death count will not change if you use a trigger to kill the unit, only if one is killed by another unit.



None.

Sep 7 2007, 12:35 am Aoe325 Post #27



Quote from zerg
Yes you can, you just say

Condition:
Player 1 brings unit to Sacrifice

Action:
Add 1 death count for Random Unused Unit of your Choice
Kill 1 unit at Sacrifice
Preserve Trigger

This is exactly what I'm doing and it doesnt work, try the test map if you want

edit : I AM using set deaths

Edit : Tried with both random unused unit of choice (unused type 2) and terran marine. No result for both



None.

Sep 7 2007, 12:40 am zerg Post #28



Here, I will modify the map to use the triggers you need.



None.

Sep 7 2007, 12:51 am Aoe325 Post #29



Thanks :)



None.

Sep 7 2007, 1:22 am zerg Post #30



Hey Aoe,

I put the triggers in the map you attached.

I tested it, it seems to work fine for now.

I have to go out for a few hours but when I get back I'll look at it again to make sure everything is alright.

Like I said, it seems to be okay, but I was in a rush and so the order of the triggers and the switches is sloppy, I admit it is probably hard to tell what is going on. When I get back I'll add comments to the triggers in the map to make it clearer.

Good luck

Attachments:
test0.scm
Hits: 3 Size: 37.41kb



None.

Sep 7 2007, 1:59 am Aoe325 Post #31



No Leaderboard is ever showing, I think it's because nothing is triggering the cycle



None.

Sep 7 2007, 1:59 am Falkoner Post #32



You can still use the Unused Unit 2, and here's how:

Have a single death count counting to 8 if you do not have hyper triggers, and 118 if you do have them, when it hits 4, switch the board, when it gets to 9, switch it again and reset it back down to 0. When I say 'switch the board' you will add a death to another unit, Unit X. On the first board, it starts on 0, and for the second board you have it set to 1.

Now, at the same time that you switch the boards, you will transfer the deaths into a custom score with a binary count-off, make sure that you transfer the kills to the board, and to another death count, once the scoreboard is updated you will then transfer the deaths from the second death to the first one. Then just repeat those steps for the second scoreboard and it should work perfectly.



None.

Sep 7 2007, 2:05 am Aoe325 Post #33



The main problem is that Set deaths doesnt seem to add deaths to my count



None.

Sep 7 2007, 2:10 am Falkoner Post #34



If the players are 1-8 and the unit is one of the units in this list, or a more common unit:

Code
Goliath Turret
Nuclear Missile
Alan Schezar Turret
Tank Turret (Tank)
Edmund Duke Turret (Tank mode)
Edmund Duke Turret (Siege mode)
Tank Turret (Siege Mode)
Scanner Sweep
Cargo Ship
Mercenary Gunship
Map Revealer
Disruption Web
Was Starbase
Was Repair Bay
Unused Zerg Building
Unused Zerg Building 5
Unused Protoss Building
Unused Protoss Building
Mineral Field (Type 1)
Mineral Field (Type 2)
Mineral Field (Type 3)
Cave
Cave-in
Cantina
Mining Platform
Independant Command Center
Independant Jump Gate
Ruins
Kyadarin Crystal Formation
Vespene Geyser
Zerg Marker
Terran Marker
Protoss Marker
Zerg Beacon
Terran Beacon
Protoss Beacon
Zerg Flag Beacon
Terran Flag Beacon
Protoss Flag Beacon
Dark Swarm
Left Upper Level Door
Right Upper Level Door
Left Pit Door
Right Pit Door
Start Location
Flag
Young Chrysalis
Psi Emitter
Data Disc
Khaydarin Crystal


Then it should work, although you might notice that Unused unit 2 is not on there, so that might be the problem, try to just use a normal unit, since you have no real need for some of them.



None.

Sep 7 2007, 2:24 am Aoe325 Post #35



There I tried the same thing using dark swarm in the test map and added a trigger that gives you victory if your dark swarm death count is at least 1

Please just take a quick look at it and tell me why the death count doesnt increase in that situation
I have a set deaths trigger adding 1 and it doesn move at all

edit : Doesnt work with a set to either, its just as if the game was ignoring my set death triggers...

Attachments:
test213.scm
Hits: 2 Size: 50.07kb



None.

Sep 7 2007, 2:26 am Falkoner Post #36



Because deaths are not detected by the Kill condition, they are detected by the Deaths condition.



None.

Sep 7 2007, 2:29 am Aoe325 Post #37



Quote from Falkoner
Because deaths are not detected by the Kill condition, they are detected by the Deaths condition.

Thanks.. I'll go hide in a dark corner now :><: :unsure: :(

edit : Now that I think about it it's exactly the question I wanted answered from the start ^^
I'll try and do it right now that I know where I was totally wrong

Post has been edited 2 time(s), last time on Sep 7 2007, 2:44 am by Aoe325.



None.

Sep 7 2007, 2:44 am Falkoner Post #38



Well, all I have to say is welcome to the world of serious SC mapping, because as soon as you figure out how to work deaths, it opens up a whole range of possibilities in your maps.



None.

Sep 7 2007, 2:53 am Aoe325 Post #39



Joy :


I'll be fine now ^^ Thanks alot to everybody that replied



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
[2024-4-17. : 1:08 am]
O)FaRTy1billion[MM] -- i'll trade you mineral counts
Please log in to shout.


Members Online: Roy