I want to create a skill similar to Satellite Cannon in Yu-Gi-Oh!

I want to create a skill similar to Satellite Cannon in Yu-Gi-Oh! >>> https://yugioh.fandom.com/wiki/Satellite_Cannon

This skill has a base attack power of 0, but each turn the player can continuously increase its attack power (Max 3,000). After the player attacks, this skill’s attack power resets to 0.

My problem is that I can’t get the Var value to reset to 0 after an attack. The Var value resets before damage calculation, resulting in 0 damage.

Does anyone have any good methods to reset the Var value to 0 after damage calculation?

Have you tried running a Common Event that sets the value of the variable to 0 after the attack? IIRC if you set a skill to run a Common Event it always runs after the skill is used.

I’ve tried that method. The Var value is reset before dealing damage to the enemy (damage becomes 0).

Hmm. How are you calling the variable? the damage formula box just uses plain javascript, so I was able to get a simple prototype working using $gameVariables.value(X) inside the damage formula.

1 Like

This time it’s a real Satellite Cannon! It works just like on the card.
You’re really skilled (or did I do something wrong?). Thank you so much for the advice!