I'm trying to make a skill with two specific effects.
To do this, I'm trying to use the damage formula to set a variable to be the Actor ID of the actor using the skill, and then using a common event to kill said actor.
Damage Formula: $gameVariables.setValue(1, a.id);(a.hp + a.mhp) * (a.level / 30)
As you can see, I'm setting variable 1, "selfDestruct," to be equal to the user's Actor ID, and then using the variable to kill the actor with that specific ID. When I use the skill though, it kills the entire party. What am I doing wrong? Also, if there is a simpler way to set up a skill like this, it would be appreciated!
- Will deal more damage when actor using skill has higher HP.
- Will kill actor after skill is used.
To do this, I'm trying to use the damage formula to set a variable to be the Actor ID of the actor using the skill, and then using a common event to kill said actor.
Damage Formula: $gameVariables.setValue(1, a.id);(a.hp + a.mhp) * (a.level / 30)
As you can see, I'm setting variable 1, "selfDestruct," to be equal to the user's Actor ID, and then using the variable to kill the actor with that specific ID. When I use the skill though, it kills the entire party. What am I doing wrong? Also, if there is a simpler way to set up a skill like this, it would be appreciated!