Hello everybody, my issue currently is trying to make a Skill that when used Heals the User if the enemy is affected by a certain state upon hit by such Skill.
So first, I added a Common Event inside such Skill, went to the Conditional Branches options, went to 3rd page where u find "Enemy 1# ?" Appeared or State, and then i placed the state.
I attempted to fill the entire Common Event with the same Conditional Branch over and over just changing the Enemy part (enemy 1#, enemy 2#, enemy 3#)
Because my Skill hits all enemies so i wanted a Conditional Branch that could say "hum, this enemy is affected by this state" so it would trigger a healing.
What happens is that, it doesnt seem to recognize the target.
And i attempted to fix this by using Javascript on the Conditional Branch with enemy.isStateAffected(x), but i dont know much about it, and everytime I tested the skill it would show me "Cannot read property 'isStateAffected' of undefined.
If anybody could help me, tysm in advance
Edit: I figured it out!
So first, I added a Common Event inside such Skill, went to the Conditional Branches options, went to 3rd page where u find "Enemy 1# ?" Appeared or State, and then i placed the state.
I attempted to fill the entire Common Event with the same Conditional Branch over and over just changing the Enemy part (enemy 1#, enemy 2#, enemy 3#)
Because my Skill hits all enemies so i wanted a Conditional Branch that could say "hum, this enemy is affected by this state" so it would trigger a healing.
What happens is that, it doesnt seem to recognize the target.
And i attempted to fix this by using Javascript on the Conditional Branch with enemy.isStateAffected(x), but i dont know much about it, and everytime I tested the skill it would show me "Cannot read property 'isStateAffected' of undefined.
If anybody could help me, tysm in advance
Edit: I figured it out!