Issue with variables in script

-Hello whoever watches this, am new in this forum lol, i am currently having trouble programming a script inside a "Common Event" for a Skill, which is supposed to gain 1 point in a variable (lets call it "Passive") whenever an enemy "is taken down by this skill" which summons this common event.
-Such variable "Passive" is meant to trigger a conditional branch (If variable "Passive" = 4)

The problem is, no matter what if the script recognises the number of enemies who are alive/dead, the thing is the variable "Passive" wont change at all.
Welcome!

We can't really guess what you might be doing wrong without seeing what your common event actually does. You'll need to provide screenshots.

Original thread: https://forums.rpgmakerweb.com/threads/issue-with-variables-in-script.167471/