Currency gain attack?

I'm trying to create an attack that slightly boosts currency dropped when it's successful, is it possible? If so how do I do this?
In Script Editor, change those lines on "BattleManager":

text = sprintf(Vocab:😮btainGold, $game_troop.gold_total) $game_message.add('\.' + text) $game_party.gain_gold($game_troop.gold_total)to this:
Code:
      text = sprintf(Vocab::ObtainGold, $game_troop.gold_total * (1 + $game_variables[x]/10))      $game_message.add('\.' + text)      $game_party.gain_gold($game_troop.gold_total * (1 + $game_variables[x]/10)) $game_variables[x] = 0
change the "x" to the variable number you wanna use. Then change variable x value in the Skill Damage Formula (use "$game_variables[x] = y"). So if you give variable x a value of 1, it will add 10% to the total gold. 2 will add 20%, 3 30%...For example, if you make your damage formula like this:

Code:
(a.atk * 4 - b.def * 2) + (($game_variables[x] = 10) - 10)
this attack would set a boost of 100% to the currency dropped.
In Script Editor, change those lines on "BattleManager":

text = sprintf(Vocab:😮btainGold, $game_troop.gold_total, currency) $game_message.add('\.' + text) $game_party.gain_gold($game_troop.gold_total)to this:
Code:
text = sprintf(Vocab::ObtainGold, $game_troop.gold_total * (1 + $game_variables[x]/10), currency)      $game_message.add('\.' + text)      $game_party.gain_gold($game_troop.gold_total * (1 + $game_variables[x]/10)) $game_variables[x] = 0
change the "x" to the variable number you wanna use. Then change variable x value in the Skill Damage Formula (use "$game_variables[x] = y"). So if you give variable x a value of 1, it will add 10% to the total gold. 2 will add 20%, 3 30%...For example, if you make your damage formula like this:

(a.atk * 4 - b.def * 2) + (($game_variables[x] = 10) - 10)this attack would set a boost of 100% to the currency dropped.
What about for like 20% boost? Also will this effect just 1 specific attack of my choice?
What about for like 20% boost? Also will this effect just 1 specific attack of my choice?
YourFormula + (($game_variables[id] = 2) - 2)

This will effect just the attacks that you set a value to 'variable x' on the damage formula. This variable is reset to 0 after the battle so you dont need to worry about that. If you're having problems understanding this i can use some images to explain better. 
YourFormula + (($game_variables[id] = 2) - 2)

This will effect just the attacks that you set a value to 'variable x' on the damage formula. This variable is reset to 0 after the battle so you dont need to worry about that. If you're having problems understanding this i can use some images to explain better.
If it's not too much trouble, please do.
Paste the code like this:





Change the "x"'s to the variable number you will use. I chose variable 1, you can't use this variable anywhere else so use one you are not using already.





name it so you don't forget!





Make your damage formula like this.





"+ (($game_variables[1] = 10) - 10)" will get you + 100%.


"+ (($game_variables[1] = 2) - 2)" will get you + 20%


"+ (($game_variables[1] = 5) - 5)" for 50%


got it? Only the skill with this formula will get you the boost!
Paste the code like this:Change the "x"'s to the variable number you will use. I chose variable 1, you can't use this variable anywhere else so use one you are not using already.name it so you don't forget!Make your damage formula like this."+ (($game_variables[1] = 10) - 10)" will get you + 100%."+ (($game_variables[1] = 2) - 2)" will get you + 20%"+ (($game_variables[1] = 5) - 5)" for 50%got it? Only the skill with this formula will get you the boost!
Kay thanks. :3

Original thread: https://forums.rpgmakerweb.com/threads/currency-gain-attack.40747/