MY FTB SCRIPT IS DOING WEIRD THANGS.

Posts

Pages: 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.
That looks like my edits, was your mod made after mine or before? My script was just a direct edit of the original FTB script, if your original mod was a similar edit and one replaced the other that could be the cause of the issue.
Uh... I guess I did some 'VESTIGATIN' and I found this topic, where I originally asked for the Attack edit.

http://rpgmaker.net/forums/topics/15553/

Now I still want everything I asked for (and got) in that topic, but something between then and now made it stop working.
Hmm, that shouldn't affect what I did (which makes it all the more frustrating, curse you inter-script compatibility!). Can you put together a demo project with the issue? Just add YF's battle script, the above FTB script w/ my edit, and LockeZ's edit on the decay script and the skill setup to decay and I'll see what the problem is.
hahah I figured it out, homie.

A modification you made accidentally overwrote this one that Locke made;

#--------------------------------------------------------------------------
  # 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
  end


But all I had to do was merge that code with yours and now it's all good.
Welp, I'm illiterate. Glad you figured it out though!
Pages: 1