Page 1 of 1
LUA Kill Counter
Posted: 07 Jul 2007, 05:46
by Jonny5isalivetm
Hi Folks
Can I add a Kill counter to my mod via Lua ?
if yes could somebody show me how

Posted: 07 Jul 2007, 06:08
by AF
If you look at meltracs lua widgets theres one which shows yoru allies resources bars.
What few people know is that this widget has several pages, including a kills/losses counter for each player.
Posted: 07 Jul 2007, 06:31
by Jonny5isalivetm
I mean like OTA style for every unit...
Posted: 07 Jul 2007, 06:43
by AF
oh, that isnt saved, you'd have to count manually using lua from the start of the game for eacg unit.
Posted: 08 Jul 2007, 06:48
by ironized
resource intesive i guess?
Posted: 08 Jul 2007, 08:10
by KDR_11k
Not really but counting kills is rather silly as that completely ignores how much damage the unit actually did, only giving the point to the last unit that shot and not even caring about what was destroyed. Spring's experience system is better but it needs to be mod-adjustable.
Posted: 08 Jul 2007, 08:18
by ironized
there is one?
Posted: 08 Jul 2007, 09:58
by KDR_11k
Experience system? Um, yes? What do you think the "experience" counter displays?
Posted: 08 Jul 2007, 11:32
by ironized
umm, what expeience counter?
Posted: 08 Jul 2007, 16:11
by KDR_11k
The one in the tooltip?
Posted: 09 Jul 2007, 07:45
by ironized
:O
Posted: 09 Jul 2007, 16:24
by Zenka
also the vertical white bar, placed near the healthbar of the unit (in the 3d view). of course it's only visible after he actually got some exp. which is a rare case since people tend to send their units to death.
Posted: 09 Jul 2007, 16:44
by jK
Quantum and me already wrote a experience based rank system (with icon top left of the units).
If you want it unzip ca-lua.sdz (or browse the svn).
Please note, it only works in 0.75