Jump to content

[AOG] NPC Kill Counter


Ainz Ooal Gown

Recommended Posts

Description:

The ability to count a players kills by utilising the "On Death (for killer)" common event. This is a very basic solution and quick to implement.

 

Video/Screenshot:

6f1369c336eef6aed65a5e131dce4b5b.jpg

When I kill a Zombie NPC this added a value of 1 to my Zombie Kill Count.

 

Process:

  1.  Kill a NPC/Mob and a value of 1 gets added to players kill count.
  2. Type /count in chat to display current kill count (Can be implemented with my "Journal system" to show count in a book or something other than chat from a command).

 

Issues:

None

 

Addon:

Can be used with a Journal System

 

Build:

2x Common Events(small)

1x Player Variable

 

First we need to create a Player Variable. I called mine "Zombie Kill Count".

Spoiler

Make sure the variable type is "Integer" and set a "Text ID":

6fdb53bc288795da99c1dc55f9b0df95.jpg

 

Next we create a common event "Zombie Kill Count" that will be triggered when a NPC gets killed by the player.

Spoiler

Very simple event with no conditions or triggers, it only adds 1 to variable "Zombie Kill Count":

04990e285b21ba13ffa41f95f40835f8.jpg

 

Now we can add the other common event, "Zombie Kill Check".

Spoiler

This common event is a command trigger which puts some text in the chat window to tell the player how many zombie kills they have (Instead you can have this variable display in a journal or somewhere else as a read out).

78378a7bb5d9f28c11c986d77b8954fb.jpg

 

f27a82fafbbf3c5587bc5025ceea5726.jpg

 

Command /count in chat window will run this event. The full text is:

 

You have killed \pv{zombiekillcount} Zombies!

 

\pv{zombiekillcount} is used to draw out the player variable we created. Add this anywhere in your game to display this variable.

 

 

Results. When I kill a NPC that I have the the "On Death (for killer)" set to "Zombie Kill Count" common event, then type /count into the chat window is displays the text we did in last step.

Spoiler

66678c845c8c2f22f05cd05dcbad5c83.jpg

 

Complete!

 

This is a very simple solution for counting a players NPC kills, this can be expanding to use on different types of NPCs such as counting bosses killed, ect.

 

Enjoy :)

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
×
×
  • Create New...