Basically what I want to do is have variable X increase whenever State Y is applied and decrease when State Y is removed. I have tried using Yanfly's state core plugin but it doesn't seem to work, maybe because it doesn't happen in combat. Is there any other way to achieve this effect?
I'm trying to change the value of a variable to the events ID when the player is within range of it. This is what I have but it's not working.
var get_distance = [Math.abs($gamePlayer._x - this.eventId._x), Math.abs($gamePlayer._y - this.eventId._y)];
var target_distance = 100;
For this project I'm using the QABS plugin, but I don't think it's all that important to the problem.
Basically I'm trying to make a necromancer type class which uses minions in the form of events that follow the player. I'm having several problems making this happen with 2 major ones stopping...