Jump to content
Vis_Mage

Conflict between Beastiery Logbook and MOG Battle Result

Recommended Posts

Hey, I'm having an odd issue with using Venka's Beastiery Logbook ( https://forums.rpgmakerweb.com/index.php?threads/bestiary-logbook-v1-8-updated-1-21-2014.32231/ ), along with MOG's Battle Result. ( https://atelierrgss.wordpress.com/rgss3-battle-result/ )

 

One of the features of the Beastiery Logbook is to count the number of kills of a given enemy. However, when I have MOG's script, it counts each kill as 3 for some reason.

 

Could anyone help me fix this odd conflict?

Share this post


Link to post
Share on other sites

Fixed:

# Compatibility fix for Venka's Bestiary v1.8 and MOG - Battle Result (2.0)
# scripts.
# Fixes incompatibility issue that resulted in kills being counted 3 times each.
#
# -------------------
# Script by: vFoggy

class Game_Troop < Game_Unit
  alias fog_init initialize
  def initialize
    fog_init
    @added_count = false
  end
  
  alias fog_aec add_encounter_count
  def add_encounter_count
    if not @added_count
      fog_aec 
      @added_count = true
    end
  end
end

Insert below both scripts.

Edited by vFoggy

Share this post


Link to post
Share on other sites

Works like a charm, thank you very much! :)

 

EDIT: Nevermind, ran into a bit of an issue. It counts the kills correctly the first fight i'm in (if I kill 2 in the first battle, that counts fine), but does not count any future kills (if I then get into another battle, and kill 3 more enemies, the counter still stays at 2).

Edited by Vis_Mage

Share this post


Link to post
Share on other sites

Oops, my bad.

This one fixes the problem:

# Compatibility fix for Venka's Bestiary v1.8 and MOG - Battle Result (2.0)
# scripts.
# Fixes incompatibility issue that resulted in kills being counted 3 times each.
#
# -------------------
# Script by: vFoggy

class Game_Troop < Game_Unit
  def on_battle_start
    super
    @added_count = false
  end
  
  alias fog_aec add_encounter_count
  def add_encounter_count
    if not @added_count
      fog_aec 
      @added_count = true
    end
  end
end

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×