Hime's Cover Target script always crashes my game as soon as I run it! Please help!

even after applying the script!
As said abovbe the script was a workaround, not a solution.
and you can't put the same workaround to other errors, because it needs a different code for different errors.

So your only choice now is to apply the true solution: DELETE ALL SAVEFILES

And for later: whenevert you add (or remove) a script, you'll need to start new games as your savefiles have a high chance to become incompatible with the changed scripts
Another error crash! even after applying the script! A monster casted darkness (blinds target) and I get this crash

View attachment 263841


This time, coming from this script, multiple lines: https://himeworks.com/redirect.php?type=script&name=Cover_Conditions
OK, that proves my point that it wasn't Cover Targets' fault as predicted. 😛
Let me check that new script...

EDIT

Can you paste the contents of all of the parameters it's passing to the evaluation method?

Ruby:
  def eval_cover_condition(formula, a, b, i, p=$game_party, t=$game_troop, s=$game_switches, v=$game_variables)
    puts formula, a, b, i
    eval(formula)
  end

You'd mainly add that puts parameters call there to make it print all of those values on the console window. I'd need to get a look at the screenshot to get an idea of which parameter is the faulty one there.
OK, that proves my point that it wasn't Cover Targets' fault as predicted. 😛
Let me check that new script...

EDIT

Can you paste the contents of all of the parameters it's passing to the evaluation method?

Ruby:
  def eval_cover_condition(formula, a, b, i, p=$game_party, t=$game_troop, s=$game_switches, v=$game_variables)
    puts formula, a, b, i
    eval(formula)
  end

You'd mainly add that puts parameters call there to make it print all of those values on the console window. I'd need to get a look at the screenshot to get an idea of which parameter is the faulty one there.
You mean of the script itself? I left everything as default. Unless I need to screenshot something else?

I did change one thing, in the cover conditions. I set the formula to 0 because I only want the dragon character to cover Justin, no ifs, ands, or buts
First error: Undefined method
You have to use a new game, not load a save file

Second error: eval, can't convert Fixnum to String
This is a script call error. But I don't believe that you would show us your cover condition.

Insert this script below Hime's
Code:
class Scene_Battle
  def eval_cover_condition(formula, a, b, i, p=$game_party, t=$game_troop, s=$game_switches, v=$game_variables)
    p formula
    eval(formula)
  end
end
Save, and run your game again. When the crash happens, show us what the console window prints.

EDIT:
I did change one thing, in the cover conditions. I set the formula to 0
If you change the Global_Condition from "b.hp < b.mhp / 4 && (!i || !i.certain?)" to just 0, then that's why.

I only want the dragon character to cover
In that case just write "false", including the quote
I downloaded the CC script from Hime's website and left a note in Natalie's note box.

Ruby:
<cover condition>
b.hp < b.mhp / 2 && (!i || !i.certain?)
</cover condition>

Both the default condition and Natalie's custom cover condition worked smoothly.

For newbies, let me explain what I did.

I simply pasted a modification of the default condition. Instead of activating the "Hurry up! Cover me!" function after losing over 75% of her HP, I forced my other hero to run to cover her once she hit the 50% HP loss mark. The thing is that Eric had to have the Cover state from the beginning of the battle.

Take into consideration that the default Cover state configuration makes it vanish after just 1 turn... I had to change that. :S
The script call I am assuming is what is in the notebox
Ruby:
<cover condition>
true
</cover conditions>
Why is it in plural?
Right, not even feedback on my reply.
Guess I'm done.
This is the condition you've been looking for.

Ruby:
<cover condition>
b.id == 1
</cover condition>

Replace the ID I used there with Justin's.

And don't forget to provide a respectful feedback, if you don't mind.
I did not realize you guys were looking for feedback.

@TheoAllen You said it was a script call error? There should be nothing calling scripts at the time of the crash. The crash happens when a monster puts a status effect on a party member. Also, I have not told anybody to cover anybody yet. So, I do not know why it would be calling the script related to the cover move. Nobody has even learned the cover move yet. That was going to happen in the next storyline.

@kyonides Hime's page about putting the scripts together told me to use "true", and you say, "b.id=1" is my situation different for some reason?

Where do I put the "b.id=1" at? In the cover skill itself?

Please and thanks for any help.

Might not respond in a timely manner. Busy today plus there is a storm coming.
I did not realize you guys were looking for feedback.

@TheoAllen You said it was a script call error? There should be nothing calling scripts at the time of the crash. The crash happens when a monster puts a status effect on a party member. Also, I have not told anybody to cover anybody yet. So, I do not know why it would be calling the script related to the cover move. Nobody has even learned the cover move yet. That was going to happen in the next storyline.

@kyonides Hime's page about putting the scripts together told me to use "true", and you say, "b.id=1" is my situation different for some reason?

Where do I put the "b.id=1" at? In the cover skill itself?

Please and thanks for any help.

Might not respond in a timely manner. Busy today plus there is a storm coming.

It's b.id == 1 with two equal signs, that means it's a comparison in Ruby. And you just need to copy the whole notetag I posted before. I placed it in Natalie's note box (the second actor in the database). I'd have to check if it works in the skill database as well.
A storm!? 😮
Sorry for the late reply. I took a break from RPG Maker to draw up some inspiration.

If I want the dragon (Draco Decorus) to cover Justin, do I put that in the dragon's note box or Justin's?
The question is who needs to get covered?
Once you answer that question, you know who's getting the notetag. Just make sure the ID matches your character's.

Original thread: https://forums.rpgmakerweb.com/threads/himes-cover-target-script-always-crashes-my-game-as-soon-as-i-run-it-please-help.157955/