Hi,
I have following problem and can’t find a solution for it. My goal is to change a variable inside the damage formula of a skill before the damage calculations happens. The variable should change depending who’s using the skill. Either party member or enemy.
Something like this:
(a.atk * v[1] - b.def * 2)
v[1] gets the result of checking party member or enemy ID who's using the skill.
Example:
Enemy ID uses that skill. Its ID in the database is 8. Before damage calculations happens, there is a conditional branch in battle that checks this ID and changes v[1] into a specific value assigned to that ID. Something like:
Enemy ID = 8
If Enemy ID = 8 => v[1] value changes to 3
The same should work for party members.
I tried to find script calls for it but nothing seems to work. Like BattleManager.actor().actorId() === 1 but this gives in error.
Is there any way doing this without plugins? This is my preferred way if its possible.
Huge thanks in advance.
I have following problem and can’t find a solution for it. My goal is to change a variable inside the damage formula of a skill before the damage calculations happens. The variable should change depending who’s using the skill. Either party member or enemy.
Something like this:
(a.atk * v[1] - b.def * 2)
v[1] gets the result of checking party member or enemy ID who's using the skill.
Example:
Enemy ID uses that skill. Its ID in the database is 8. Before damage calculations happens, there is a conditional branch in battle that checks this ID and changes v[1] into a specific value assigned to that ID. Something like:
Enemy ID = 8
If Enemy ID = 8 => v[1] value changes to 3
The same should work for party members.
I tried to find script calls for it but nothing seems to work. Like BattleManager.actor().actorId() === 1 but this gives in error.
Is there any way doing this without plugins? This is my preferred way if its possible.
Huge thanks in advance.