Toucher1 Posted June 8, 2010 Author Share Posted June 8, 2010 It counts how many kills the players have and display it in their profile. Only works with ES. Here one picuture:![](http://www.freemmorpgmaker.com/files/imagehost/pics/a314a5fb35a8f24f6f12d1b6c7021261.JPG)First make a new Folder 'charextras' in the folder Scripts.Add this in OnDeath.ess:```Sub OnNPCDeath(Index, Map, NPCNum, NPCIndex) killamount = (GetVar("Scripts\charextras\" & GetPlayerName(Index) & ".ini", "KillCounter", "Kills") + 1)Call PutVar("Scripts\charextras\" & GetPlayerName(Index) & ".ini", "KillCounter", "Kills", (killamount))```and add this at the bottom infront of End Sub in Profil.ess:```Call CustomMenuLabel(Index, ElementIndex, "Kills: " & GetVar("Scripts\charextras\" & GetPlayerName(Index) & ".ini", "KillCounter", "Kills"), 20, 100 + (ElementIndex - 1) * 20, 10, WHITE, LEFT, 400, 20)ElementIndex = ElementIndex + 1```Add this in OnNewChar.ess:```Sub OnNewChar(Index, CharNum)Call PutVar("Scripts\charextras\" & GetPlayerName(Index) & ".ini", "KillCounter", "Kills", "0")``` Link to comment Share on other sites More sharing options...
Joyce Posted June 8, 2010 Share Posted June 8, 2010 Might want to add that this will only work in Eclipse Stable. :) Link to comment Share on other sites More sharing options...
Toucher1 Posted June 8, 2010 Author Share Posted June 8, 2010 Kk. I'll add that it only works with ES. Link to comment Share on other sites More sharing options...
teh jimpie Posted June 8, 2010 Share Posted June 8, 2010 I think you'll get errors if you open the profile and the player didnt died before, the file doesnt exists then Link to comment Share on other sites More sharing options...
adammack Posted June 8, 2010 Share Posted June 8, 2010 > I think you'll get errors if you open the profile and the player didnt died before, the file doesnt exists thenAlso AddIn the "Sub JoinGame(Index)"```If GetVar("Scripts\charextras\" & GetPlayerName(Index) & ".ini", "KillCounter", "Kills") = "" ThenCall PutVar("Scripts\charextras\" & GetPlayerName(Index) & ".ini", "KillCounter", "Kills", "0")End If``` Link to comment Share on other sites More sharing options...
Toucher1 Posted June 9, 2010 Author Share Posted June 9, 2010 I fixed it. Link to comment Share on other sites More sharing options...
ComicNik Posted June 9, 2010 Share Posted June 9, 2010 Wow that's awesome.. Simple! but very handy. Thank you. Link to comment Share on other sites More sharing options...
Toucher1 Posted June 10, 2010 Author Share Posted June 10, 2010 I fixed again a mistake.Put this at the bottom, infront of End Sub in Profil.ess: (It must be at the end!)```Call CustomMenuLabel(Index, ElementIndex, "Kills: " & GetVar("Scripts\charextras\" & GetPlayerName(Index) & ".ini", "KillCounter", "Kills"), 20, 100 + (ElementIndex - 1) * 20, 10, WHITE, LEFT, 400, 20)ElementIndex = ElementIndex + 1``` Link to comment Share on other sites More sharing options...
escfoe2 Posted June 29, 2010 Share Posted June 29, 2010 If this is one of your first scripts bravo because I started the same but if this is the opposite well… Thats failure as a scripter/coder... You can also have a death counter... All very simple... Oh well good job! 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