That's... an interesting development. I was expecting "Nope, it's not even opening a log file" because I was expecting that somehow my script didn't even get executed. But it did get executed. So apparently my script worked, but didn't get the "dead?" check worked. Was checking on Yami's script too that apparently should have no problem. Other scripts shouldn't interfere execute_damage method
We're going to try a different combination of checking if enemy is dead. Since we've confirmed that my script is actually being executed. So my method to debug
Code:
class Game_Battler
attr_writer :kill_count
alias exe_damage execute_damage
def execute_damage(user)
puts dead?
exe_damage(user)
puts dead?
if self.dead?
user.kill_count += 1
end
end
def kill_count
return @kill_count ||= 0
end
end
What you do, make a skill or atk that deals 99999 or make a new battler that has 1 HP, whatever you like it. (basically one kill an enemy)
Turn on the console. Once an attack is struck (and enemy is killed), it should print "false" then "true".
If it's "false" and "false" then dead check somehow not working.
If it's "false" and "true" then somehow the kill count is not added.