LUA Kill Counter

LUA Kill Counter

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Jonny5isalivetm
Posts: 186
Joined: 04 Jul 2006, 02:43

LUA Kill Counter

Post by Jonny5isalivetm »

Hi Folks

Can I add a Kill counter to my mod via Lua ?

if yes could somebody show me how :P
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post 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.
User avatar
Jonny5isalivetm
Posts: 186
Joined: 04 Jul 2006, 02:43

Post by Jonny5isalivetm »

I mean like OTA style for every unit...
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

oh, that isnt saved, you'd have to count manually using lua from the start of the game for eacg unit.
ironized
Posts: 172
Joined: 25 Jun 2007, 06:33

Post by ironized »

resource intesive i guess?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post 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.
ironized
Posts: 172
Joined: 25 Jun 2007, 06:33

Post by ironized »

there is one?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Experience system? Um, yes? What do you think the "experience" counter displays?
ironized
Posts: 172
Joined: 25 Jun 2007, 06:33

Post by ironized »

umm, what expeience counter?
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

The one in the tooltip?
ironized
Posts: 172
Joined: 25 Jun 2007, 06:33

Post by ironized »

:O
User avatar
Zenka
Posts: 1235
Joined: 05 Oct 2005, 15:29

Post 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.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Post 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
Post Reply

Return to “Lua Scripts”