DNI Skill Core Script Troubleshooting

Good Morning, Afternoon, Evening

I am having a problem with these two scripts working together

DNI's Skill Cores



Victor's Passive States

Unfortunately when I put these scripts together... I get this error.

18.12.2023_16.19.24_REC.png


Is there a way to fix this?

I really would like to use this one because Yanfly's passive states script is very limited.

Any help is appreciated.



EDIT

18.12.2023_17.22.24_REC.png


I was able to fix it by simply adding what you see here to the original SkilCore script.. now I am facing a different issue altogether.

1 . I open the SkillCore Menu and equip "Blaze" containing the HP enhancing passive skill
1.png

18.12.2023_17.25.38_REC.png

18.12.2023_17.25.48_REC.png

2. I use some potions to restore his new HP count
18.12.2023_17.26.01_REC.png

3. I then remove the Blaze Skill Core containing the Passive HP Boost
18.12.2023_17.26.20_REC.png

4. Then THIS HAPPENS.
18.12.2023_17.26.29_REC.png


Is there a way to either maybe update the Statistic in the SkillCore Scene itself, like the ACE Equip Menu does... or at least is it possible to fix this issue altogether?

Any help is appreciated.
EDIT

18.12.2023_17.22.24_REC.png


I was able to fix it by simply adding what you see here to the original SkilCore script.. now I am facing a different issue altogether.
I did some testing and the error went away when I changed one thing.

Skill core system script line 243
move it above 242 so it looks like this
Ruby:
  def setup(actor_id)
    @skillcores = []
    skillcore_setup(actor_id)
    i = 0
def setup(actor_id) @skillcores = [] skillcore_setup(actor_id) i = 0
Do I have to remove what I added on line 257 to make this work?

Thanks for this... ! I'll try it out!

Now I wish we could find a way to make it so that the stat increase would update itself within the scene itself rather than having to switch scenes.
Now I wish we could find a way to make it so that the stat increase would update itself within the scene itself rather than having to switch scenes.
Do I have to remove what I added on line 257 to make this work?
you should. with my change the reset of the code will work.
Ruby:
class Game_Actor < Game_Battler
  def reset_stats
    self.hp = self.mhp if self.hp > self.mhp
    self.mp = self.mmp if self.mp > self.mmp
  end
end
class Scene_SkillCore < Scene_MenuBase
  alias r2_reset_skillcore_stats  on_cores_ok
  def on_cores_ok
    r2_reset_skillcore_stats
    @actor.refresh
    @actor.reset_stats
    @actor_window.refresh
  end
end
you should. with my change the reset of the code will work.
Ruby:
class Game_Actor < Game_Battler
  def reset_stats
    self.hp = self.mhp if self.hp > self.mhp
    self.mp = self.mmp if self.mp > self.mmp
  end
end
class Scene_SkillCore < Scene_MenuBase
  alias r2_reset_skillcore_stats  on_cores_ok
  def on_cores_ok
    r2_reset_skillcore_stats
    @actor.refresh
    @actor.reset_stats
    @actor_window.refresh
  end
end

Hey! Thanks so much for this!!

If any error pops up I'll let you know!

I'm grateful for this!

Original thread: https://forums.rpgmakerweb.com/threads/dni-skill-core-script-troubleshooting.163951/