Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Storing a visible Kill Count On Allied Units
Storing a visible Kill Count On Allied Units
Jun 13 2009, 1:18 am
By: Oo.DaMeiN.oO  

Jun 13 2009, 1:18 am Oo.DaMeiN.oO Post #1



Okay, what I need is a way to store a kill count ( while making it visible on said unit ) for every kill done to an Allied Ghost.

I thought of two ways to do this, either Energy or Health. But I cannot think of a way to do this without having +1 every trigger for every number of kills.

IE;

Code
Current Player Has Kill Score Of Exactly 350 ( Ghost give 350 )

Reset Kill Score For Current Player
Modify Death Count For Current Player: Add 1 to Minereal Field (Type1)
Preserve Trigger


Code
Current Player Has Suffered Deaths of Exactly 1 Minereal Field (Type1)

Modify Energy For All Ghost at "Anywhere" set to 1%
Preserve Trigger


And so on, for each death raise the energy percent as well.
( And, just making the un-allied to keep the score count that way will not do )

I just was wondering if there is a way to make it raise it by itself, without having to make at least 30 trigs per player.

So.. any ideas? Thanks :)



None.

Jun 13 2009, 3:23 am Madroc Post #2



Unfortunately, you will have to make a trigger for each % of energy you want triggered :(

Alternatively, you could use leaderboard, which would be way easier..

Another alternative would be to use the ghost's "kills: X" to represent it, instead of energy or whatever. The way you would do this is to have the same death count you said, and have a ghost owned by a computer somewhere the player can't see. Keep track of how many units that ghost kills, and once it equals the death count, make it stop killing. Then once the player's ghost dies, instead of respawning it by "create," give the one that killed those units to the player and move it to the respawning point. I know it's a hassle but maybe it's slightly less of a hassle than having 30 trigs for each energy point.. :P




None.

Jun 13 2009, 4:48 am scwizard Post #3



What do you mean by "every kill done to an Allied Ghost"?

Do you mean every time your unit kills an allied ghost? Or every time an allied ghost kills something?

If two units are owned by the same player, it's impossible to detect which one of them got the kill (without EUDs).



None.

Jun 13 2009, 6:24 am Oo.DaMeiN.oO Post #4



I don't need to know who got the kill, but its by your ghost killing another ghost.

It's 6 players, 3v3 and all players allied.

As for the leaderboard, no can do :P

But thanks.



None.

Jun 13 2009, 6:37 am scwizard Post #5



What about minerals then? Hp doesn't work because enemies can see it. Energy doesn't work because it's out of 200.



None.

Jun 13 2009, 8:44 am r00k Post #6



30 triggers is a joke. you can make them in
3 minutes with triggerduplicator
or
in 5 minutes with trigedit.

I suggest you use triggerduplicator
and make 100 trigger for each percent,
that will take 3 minutes as well.

Post has been edited 1 time(s), last time on Jun 13 2009, 2:56 pm by Excalibur. Reason: No reason to center align.



None.

Jun 13 2009, 4:39 pm rockz Post #7

ᴄʜᴇᴇsᴇ ɪᴛ!

Why is leaderboard a no-can-do?

afaik you can press a button to display a leaderboard, then press it again to turn it back to the old leaderboard. If you don't want others to see your number, then energy will be fine.

This sounds like a simple kills to cash system.



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

Jun 13 2009, 10:42 pm Oo.DaMeiN.oO Post #8



This is why LB nor Minereals can work.

I already use; Deaths, Kills, Custom, Razings and Most Units.

Also, minereal/gas shows your score for your team(s).

Also, I want other people to be able to see it.

Notice, I said "visible" in topic :P



None.

Jun 13 2009, 10:54 pm scwizard Post #9



Quote from Oo.DaMeiN.oO
This is why LB nor Minereals can work.

I already use; Deaths, Kills, Custom, Razings and Most Units.

Also, minereal/gas shows your score for your team(s).

Also, I want other people to be able to see it.

Notice, I said "visible" in topic :P
It's possible to have many many different custom.

The idea is you have the leaderboard switch back and forth at intervals. You store both customs in deaths counts, and then when they are to be displayed on the leaderboard, you count the appropriate one off into the custom score.



None.

Jun 13 2009, 11:23 pm Oo.DaMeiN.oO Post #10



Well, I thought of a way to do it with control of units anyways. But that would work too, thanks. This can be closed ;P



None.

Jun 14 2009, 4:10 am rockz Post #11

ᴄʜᴇᴇsᴇ ɪᴛ!

FYI you can display deaths on a leaderboard via the kills leaderboard. Showing kills of unitid228 is terran marine deaths. I find it hard to believe you're using deaths of 228 units.



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

Jun 14 2009, 4:53 am scwizard Post #12



Quote from name:Zachary Taylor
FYI you can display deaths on a leaderboard via the kills leaderboard. Showing kills of unitid228 is terran marine deaths. I find it hard to believe you're using deaths of 228 units.
Oh that's really neat. That kind of thing should be in the wiki :)



None.

Jun 14 2009, 6:01 am rockz Post #13

ᴄʜᴇᴇsᴇ ɪᴛ!

it's fairly useful if you want to view any address (after deaths) in the game as extended unit deaths will read it. Unfortunately, there's no player 9-12 viewable.



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

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:18 pm]
Ultraviolet -- 🔪🐈
[12:34 pm]
NudeRaider -- curiosity kills the cat!
[06:18 am]
Sylph-Of-Space -- No complaints here, i'm just curious!
[2024-5-18. : 11:05 pm]
Ultraviolet -- :wob:
[2024-5-18. : 3:55 pm]
Zoan -- :wob:
[2024-5-18. : 10:34 am]
NudeRaider -- SEN doesn't rely on spammers initiate its sleep cycle. It hat fully automated rest and clean-up phases. Please understand that this is necessary for the smooth operation of the site. Thank you.
[2024-5-18. : 3:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
Please log in to shout.


Members Online: Roy