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.
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.
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:
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.
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?"