Make a skill temporarily change basic "attack" command

● ARCHIVED · READ-ONLY
Started by brianbrianbrian 6 posts View original ↗
  1. 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!
  2. 'Scripts' is where people who have written a completed script they want to share with others can post it.

    [move]RGSS3 Script Requests[/move]
  3. 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
  4. @Kes - my apologies

    @ TheoAllen - exactly what I was looking for. Thanks!
  5. 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
  6. @Engr. Adiktuzmiko - The first worked better, as I did want an animation change. However this would be useful for other things. Thanks.