How do I get this to properly count kills for this mission?

Okay, so I got the rest of the vampire lord quest stuff figured out with assistance from the community here. The one thing that I am struggling with is making it to where the game that I am making will count the vampire lords as being killed. Am I doing something wrong here to prevent the game from counting the kills? Granted, this is my first time using RPG Maker, so I am trying to learn as I go and not make mistakes.

1724290298414.png
1724290357280.png
1724290389600.png
1724290417708.png
1724290464461.png
I'm not too familiar with VXace's command structure, but it looks like at timothy, you add 2 to the variable.
1724297170998.png

while at terranovich, you set the value of the variable to 2.
1724297203304.png

and if you lose, you reset the whole thing to 0.
1724297226551.png


To simply count the kills, just use control variable and add +1 after the win. No need to reset it to 0 when you lose, unless you want the player to start over killing all the vampires.

In fact, you don't even need a if win branch unless you want to do something other than the game over screen if the player dies.

Also, your message box command is incorrect. You control variable 28, but you show variable 2 in the message. It should be \v[28]
I'm not too familiar with VXace's command structure, but it looks like at timothy, you add 2 to the variable.
View attachment 315410
while at terranovich, you set the value of the variable to 2.
View attachment 315411
and if you lose, you reset the whole thing to 0.
View attachment 315412

To simply count the kills, just use control variable and add +1 after the win. No need to reset it to 0 when you lose, unless you want the player to start over killing all the vampires.

In fact, you don't even need a if win branch unless you want to do something other than the game over screen if the player dies.

Also, your message box command is incorrect. You control variable 28, but you show variable 2 in the message. It should be \v[28]
Thank you for your assistance; I have been trying to figure this out for a good couple of hours.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-get-this-to-properly-count-kills-for-this-mission.171308/