Attack degrades every turn indefnitely.

● ARCHIVED · READ-ONLY
Started by Feldschlacht IV 7 posts View original ↗
  1. Alright, so I have this modified Yanfly's FTB script, right?

    http://pastebin.com/27h2NCHu

    I had it modded so that a given actor's Attack degrades every time Attack is used, until the end of the turn. Attack power is restored at the beginning of every turn.

    This is to prevent buffing the strongest guy in the party and just having him wail on the enemy sucking up all of your 'Action Points' over and over. This was working fine until recently, I don't know what I did, but now when an actors Attack degrades, it just stays that way every turn forever.

    I took a peek at the script and I can't suss out what happened.
  2. Sorry, but I dont get what you mean. If using the command 'attack' is one turn, how can your attack decrease 'every time attack is used, until the end of the turn' ?
  3. The 'Attack' command takes up one Action Point within a turn, as per the Free Turn Battle system.
  4. It must be caused by either a new script you have inserted / the order of the scripts being changed, or an edit you have made to one of the scripts. :)
  5. Turns out that's exactly it.

    To those interested: A while back I asked for a particular modification to this script in this topic. Later on, I had another modification added by a different coder, but that second coder accidentally overwrote the first mod, this in particular;

    #-------------------------------------------------------------------------- # alias method: on_turn_end #-------------------------------------------------------------------------- alias game_battler_on_turn_end_ftb on_turn_end def on_turn_end game_battler_on_turn_end_ftb init_ftb_actions if self.is_a?(Game_Actor) $game_temp.current_decays[self.id][1] = 0 end endBy combining both modifications in that alias, both modifications worked. So this issue is solved. Thanks guys.
  6. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.