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
endore 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
endbut 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