Veterans
Apr 11 2010, 1:55 am
By: dguy107  

Apr 11 2010, 1:55 am dguy107 Post #1



I have a problem with a current project im working on. It's a light mod that has many fun features to it. One of those is Veteranism, my idea was to have a unit gain an additional upgrade based upon that units number of kills. The only thing wrong with that, is that starcraft doesnt have triggers that focus on one unit. Does anyone know how i can get this accomplished?



None.

Apr 11 2010, 1:58 am CecilSunkure Post #2



You can't give a single unit upgrades, sorry. You can't really detect which unit kills what either, in a general sense.

You can detect which player kills what unit, and if you have isolated units you can detect which one makes a kill by detecting the effects of a unit dieing. These effects would be a lack of a unit (the one that died), an increase in a player's kill score, an additional death added to whoever lost the unit, etc.

This applies only to traditional triggers since you can do what you want with EUD conditions or modding*

Post has been edited 1 time(s), last time on Apr 11 2010, 2:05 am by CecilSunkure. Reason: Forgot about EUD/Mods



None.

Apr 11 2010, 2:00 am Kaias Post #3



Quote from dguy107
I have a problem with a current project im working on. It's a light mod that has many fun features to it. One of those is Veteranism, my idea was to have a unit gain an additional upgrade based upon that units number of kills. The only thing wrong with that, is that starcraft doesnt have triggers that focus on one unit. Does anyone know how i can get this accomplished?
You could do it with EUD Actions to upgrade the unit based off of how many kills it has (read from EUD Conditions). I'm don't know off hand the addresses for either, however.

Edit:
Quote from CecilSunkure
You can't give a single unit upgrades, sorry. You can't really detect which unit kills what either, in a general sense.

You can detect which player kills what unit, and if you have isolated units you can detect which one makes a kill by detecting the effects of a unit dieing. These effects would be a lack of a unit (the one that died), an increase in a player's kill score, an additional death added to whoever lost the unit, etc.
If he's making a mod (maybe he meant map and is just unfamiliar with the vernacular) then he may as well use a version where EUD actions aren't patched. Logically, EUD kill count should not only be readable but easy to find.

Edit Edit: Of course, this could only ever work on specific units, not units types or units in general.



None.

Apr 11 2010, 2:24 am rockz Post #4

ᴄʜᴇᴇsᴇ ɪᴛ!

Kill count only goes up to 255, as it is one byte, but you're in luck, as it's the 4th byte.

+0x8F bKillCount

As this is in MMA, I would assume you'd want to do these things via triggers. However, that would require at least one trigger for each unit, maybe 2+. You can't modify a single unit's damage, only give them a speed upgrade, decrease their cooldown, and give them extra HP. This would all require EUD Actions, however.

I would like to think using a plugin (or you know, using a better game like WC 3) would be easier and would work out better.

If you are interested in the mod aspect, someone can move it to "Modding Assistance" rather than "Mapping Assistance". In mapping, the answer is no. In modding, the answer is if you try hard enough.



"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.
[04:15 am]
DarkenedFantasies -- you eat lots of beans
[03:46 am]
IskatuMesk -- how do i get gas
[11:43 pm]
Moose -- you don't
[10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[2026-4-13. : 9:37 pm]
IskatuMesk -- I have never and will never own a phone
[2026-4-13. : 9:15 pm]
NudeRaider -- Vrael ranting still is though
[2026-4-13. : 9:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
Please log in to shout.


Members Online: Zergy