adding a proper kill count

● ARCHIVED · READ-ONLY
Started by Zino97 2 posts View original ↗
  1. Hello so im using venkas bestiary script
    Link:https://forums.rpgmakerweb.com/index.php?threads/bestiary-logbook-v1-8-updated-1-21-2014.32231/

    and i want to use the kill counter in the script but as i havent real battles in the game because i am using the Xas script

    the enemys are only events so i need a way to add manually a kill to the kill Count a note tag would be perfect
    a script call like add_kill[X ,enemy_id] where x stands for the integer of the kills
    i think that this is defined ind this peace of code : Line 684-701

    Code:
    #----------------------------------------------------------------------------
      # ○ new method: enemy_kill_count(enemy_id)
      #----------------------------------------------------------------------------
      def enemy_kill_count(enemy_id)
        kills = 0
        $game_party.bestiary.each do |entry|
          next unless entry.enemy_id == $data_enemies[enemy_id].shown_id
          kills = entry.kills
          case kills
          when Venka::Bestiary::Show_Elements
            entry.elements.size.times {|i| entry.elements[i] = true}
          when Venka::Bestiary::Show_States
            entry.states.size.times {|i| entry.states[i] = true}
          end
        end
        return kills
      end
    end

    ore in this section line 575 - 603

    Code:
     #----------------------------------------------------------------------------
      # ● alias method: battle_start
      #----------------------------------------------------------------------------
      alias bestiary_kill_count make_drop_items
      def make_drop_items
        add_encounter_count
        bestiary_kill_count
      end
      #----------------------------------------------------------------------------
      # ○ new method: add_encounter_count
      #----------------------------------------------------------------------------
      def add_encounter_count
        dead_members.each do |enemy|
          rpg_enemy = $data_enemies[enemy.enemy_id]
          next if rpg_enemy.nil? || rpg_enemy.skip
          $game_party.bestiary.each do |entry|
            next unless entry.enemy_id == rpg_enemy.shown_id
            entry.kills += 1
            case entry.kills
            when Venka::Bestiary::Show_Elements
              entry.elements.size.times {|i| entry.elements[i] = true}
            when Venka::Bestiary::Show_States
              entry.states.size.times {|i| entry.states[i] = true}
            end
          end
        end
      end
     
    end

    but i do not realy know how to edit these parts to get the script call that i want

    or if this is a to hard option it is also a possibility to make an spezific switch add a kill count when its on
    its only more work for me than because i have to ad for everey monster a switch i hope someone understand what i want
  2. also it would be awsome if youmeone can tell me if it possible to add a scroll function for this window
    Code:
    #----------------------------------------------------------------------------
      # ○ new method: create_description_window
      #----------------------------------------------------------------------------
      def create_description_window
        y = (@help_window.height + @enemy_bg.height).to_i
        @descript_window = Window_BestiaryHelp.new(@stats_window.width, y)
        @descript_window.viewport = @viewport
        @descript_window.width = Graphics.width - @stats_window.width
        @descript_window.height = Graphics.height - y - @bottom_window.height
        @descript_window.hide
      end

    the status window of the screen has aswell a scroll function but i dont know how to add one