Jump to content

Specific kill counter


Recommended Posts

I want my character to count how many of a specific enemy he kills

For example, if i kill 10 he says "10 down", 20 kills "20 down" etc

I want this to be also saved upon leaving and entering the same world

Alternatively, if someone knows of a mod familiar of this concept can you point me in the right direction, thanks!

Link to comment
Share on other sites

There is a counter a while back that can be written to what you want (and I've used it for one of my mods):

https://forums.kleientertainment.com/forums/topic/91008-solved-simple-counter/

otherwise your free to check my mod:

https://steamcommunity.com/sharedfiles/filedetails/?id=1440494809

under whaler.lua to see how I adapted the code to count kills but it's messy to say the least (cause he's programmed heavily for upgrades). Its under the deathcount variable and killcount function. It is linked to leveling up mechanic (as its needed to save the count when you load the world) like wx-78 but hopefully you'll be able to see what I did. If you need some explaining on some parts, i'll try to clear it up the best I can.

Edited by K1NGT1GER609
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...