rons0n Posted November 11, 2018 Share Posted November 11, 2018 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 More sharing options...
K1NGT1GER609 Posted November 11, 2018 Share Posted November 11, 2018 (edited) 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 November 11, 2018 by K1NGT1GER609 Link to comment Share on other sites More sharing options...
rons0n Posted November 11, 2018 Author Share Posted November 11, 2018 Thanks mate, I'll look into your links posted. If I ever do have a problem understanding something ill post here again. Cheers! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now