RPG Maker Forums

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

Latest Threads

Latest Posts

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,472
Members
137,822
Latest member
madelbylz
Top