AP System II


By Fomar0153
Last Updated: 24 January 2012 (Version 1.0)
Download Link: http://pastebin.com/raw.php?i=SYR1YvYi

An updated AP Script which makes use of notetags.

3
  

11 comments

  1. Reza says:

    Sorry but i don’t unbderstand with the notetaqs. Pls help.

    • Fomar0153 says:

      On the enemy tab where you configure your enemies there’s a box called notes you need to put the notetag in there.

  2. Reza says:

    thx it worked

  3. Pheebes says:

    can this work with yanflys battle aftermath?

    • Fomar0153 says:

      I’ll add it my list of things to do.

    • Fomar0153 says:

      Done:
      Paste the scripts in this order:
      Battle Aftermath
      AP System
      This new bit:

      module Vocab
      ObtainAp = “+%sAP”
      end

      module BattleManager
      def self.display_exp
      SceneManager.scene.show_victory_display_exp
      actor = $game_party.random_target
      @victory_actor = actor
      set_victory_text(@victory_actor, :win)
      end
      def self.gain_exp
      $game_party.all_members.each do |actor|
      temp_actor = Marshal.load(Marshal.dump(actor))
      actor.gain_exp($game_troop.exp_total)
      actor.gain_ap($game_troop.ap_total)
      next if actor.level == temp_actor.level
      SceneManager.scene.show_victory_level_up(actor, temp_actor)
      set_victory_text(actor, :level)
      wait_for_message
      end
      end
      end

      class Window_VictoryEXP_Back < Window_Selectable
      alias ap_draw_jp_gain draw_jp_gain
      def draw_jp_gain(actor, rect)
      ap_draw_jp_gain(actor, rect)
      dw = rect.width – (rect.width – [rect.width, 96].min) / 2
      dy = rect.y + line_height * 4 + 96
      dy += line_height if $imported["YEA-JPManager"]
      text = sprintf(Vocab::ObtainAp, $game_troop.ap_total)
      contents.font.size = YEA::VICTORY_AFTERMATH::FONTSIZE_EXP
      change_color(power_up_color)
      draw_text(rect.x, dy, dw, line_height, text, 2)
      end
      end

  4. Pheebes says:

    thank you just 2 issues
    1) ObtainAp = “+%sAP” for some reason required me to delete the quote marks and re imput them
    2) dw = rect.width – (rect.width – [rect.width, 96].min) / 2
    required me to delete the minus signs and reput them dunno why but after that was done it worked great

    • Fomar0153 says:

      Must be the blog software using special character for them, sorry but I’m glad you worked it out.

  5. Nyxelia says:

    I get an error for this line: text = sprintf(Vocab::ObtainAp, $game_troop.ap_total)

    undefined method ‘ap_total’ for #