Jump to content
Illuminati3301

An attack that gets stronger each time you use it

Recommended Posts

Hi, I'm new here, so sorry if this is something really obvious/had been asked before. I wanted to make an attack that makes the enemy that it was used on more susceptble to it. For example: I use the attack on an enemy and it takes 1x damage. I use it the second time and it takes 1,1x damage. The third time it takes 1,2 and so on. Is there a way to do it? It doesn't have to be exactly 10% stronger every time, but stronger enough to be noticable. Is there any way to do something like this?  Thanks in advance.

Share this post


Link to post
Share on other sites

Go to the damage formula and type $game_variables[x] where you replace x by a ID of variable you want (eg : $game_variables[8]). Make an common event who add in your variables values (eg : +5 for each use) and put this common event call on the skill. Everytime who anyone use this skill, that become stronger by +5 (just change +5).
For only got stronger if it's the same actor (or enemy), I think we need array or other.

You can duplicate your skill and change the id of the variable (and common event) for each actor/enemy, else if anyone who's good in scripting answer to you.

Edit : put in the variable x "100" by default and put in damage formula "a.atk * $game_variables[x] / 100". In the common event add 10 to your variable.

It's become 10% stronger for each using, but for all actors and enemies.
For reset in the end of battle go to the scripts and Game_Battler at line ~810 and put that :
 

 #--------------------------------------------------------------------------
  # * Processing at End of Battle
  #--------------------------------------------------------------------------
  def on_battle_end
    @result.clear
    remove_battle_states
    remove_all_buffs
    $game_variables[x] = 100
    clear_actions
    clear_tp unless preserve_tp?
    appear
  end

 

Put you variable id in [x].

You can also put in the damage formula (if only actors can use your skill) this :
$game_variables[a.actor_id] += 10;a.atk * (($game_variables[a.actor_id]+100)/100) - b.def
It's should work, you can change a.atk and b.def, do what you want.
But it's take the variables of your game, so if you have 10 actors [id 1 to 10] start use variables with id 11 (other taken by actor skill)
EDIT : It's maybe a.actors_id, or a.id, a_id. I never very tried to put in formula damage the actor id who used that. You always can try the first method. But I think the best for you is to explain who can grow your skill and others conditions (if the damage increase has to be reset in end of battle ?) and make another topic in RGSS3 script request. Good luck

Edited by Reizod

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted