I'm in the process of manually triggering exp gain in my map. To that end, I'd like to be able to read the KillXP (AKA "Combat - Kill Experience") value of a unit.
Can anyone give me example of how to do this? I would expect it's to do with the functions for catalog values, when reading any value outside the most common unit properties, but I don't know how those functions are to be used.
I'm in the process of manually triggering exp gain in my map. To that end, I'd like to be able to read the KillXP (AKA "Combat - Kill Experience") value of a unit.
Can anyone give me example of how to do this? I would expect it's to do with the functions for catalog values, when reading any value outside the most common unit properties, but I don't know how those functions are to be used.
I haven't tested it myself, but unless this is bugged it should be what you are looking for:
Appreciate the attempt, but I've just tested and confirmed that that action returns the experience level of a hero unit, not the KillXP value.
@EjnarH: Go
you need to use catalogs for that.
set killXP = Integer((Value of Units String(Unit_Type) "KillXP" for player Any Player))
this is what it will look like when it is made.
hope this helps.
@EjnarH: Go
Dooh, it clearly says experience level. Dunno what I was thinking. I probably wasn't. :-p
@Helral: Go
Thanks, that was exactly the info I needed, to learn how to operate catalogs.
Final and tested action looks like this (in response to a unit dying event):