Make a skill temporarily change basic "attack" command

I want to make a skill, when activated, change the normal "attack" command into something else. The new command will still say "attack", as it is the basic attack. All I want different on the new attack is how the damage is calculated. This skill will apply it as a state, and the state will end a few turns later, so that the new attack will be written back over by the old.


My coding ability is weak sadly, help is appreciated!
'Scripts' is where people who have written a completed script they want to share with others can post it.

Moved to: RGSS3 Script Requests
In a simple way, it would be like this
Code:
class Game_Actor
  def attack_skill_id
    return <whatever the new attack id> if state?(<put state ID here>)
    return 1
  end
end
@Kes - my apologies

@ TheoAllen - exactly what I was looking for. Thanks!
Or if all you want is the damage to be different, you can also just do that on the damage formula of the Attack skill itself. something like

Code:
if a.state?(id);new_damage;else;normal_damage
@Engr. Adiktuzmiko - The first worked better, as I did want an animation change. However this would be useful for other things. Thanks.

Original thread: https://forums.rpgmakerweb.com/threads/make-a-skill-temporarily-change-basic-attack-command.99025/