Total Hit Rate Is Always 1 Point (Resolved For Now)

Using VX Ace along with Theo's Sideview Battle Scripts, I've came a long way in understanding how scripting battles and skills works. However I can not, no matter how much I edit the formulas, stats ect, the total hit rate aka total point of damage dealt when using certain skills is 1, maybe 2 or even 0, every time. I'm missing something but I just can't figure it out.

The skill I'm currently working on is a summoning skill, set to this formulas. a.atk * 8 - b.def * 4 and I did the math. When at level ten, the player's attack is 36, with the enemy's magical def at 50. When applied with the above, it ends up 36 * 8 - 50 * 4 = 88 of damage.

So, why is only 1 point of damage dealt? The variance is at 35 by the way. If anyone can help me with this I would be very grateful because it is burning hours of my time trying to figure out on my own. I'll link a couple screenshots to give a better understanding of how these characters are set up.

START OF EDIT: Had trouble with screenshots, adding attached files. :END OF EDIT

Since this skill is Earth element the enemy is weak against it.
36 * 8 - 50 * 4 = 88 of damage.
Easy peesy
your formula is intending on using magic defense but you are actually using defense.

36 * 8 - 150 * 4 = -312 # which probably results in around 1 due to a script you may have that always applies 1 damage if damage is 0 or less.

You need to use a.atk * 8 - b.mdf * 4
Just to help others understand you correctly (and to prevent you from getting confused, yourself) I suggest you use the terminology correct to RPG Maker. "Hit rate" has nothing to do with the amount of damage dealt. It is your chance for the skill to land - the rate of hitting.

When at level ten, the player's attack is 36, with the enemy's magical def at 50. When applied with the above, it ends up 36 * 8 - 50 * 4 = 88 of damage.
Those aren't the correct values. You're saying magical defense, but the formula is looking at def, not mdf.
Still doing 1 total point of damage when using your suggestions. Can you look at the images I sent and see if I messed anything up there?
Still doing 1 total point of damage when using your suggestions. Can you look at the images I sent and see if I messed anything up? there

I'm confused. Which part of Ronirator2 or ATT_Turan's suggestions have you implemented? In your original screenshot the enemy shows a DEF of 150. The formula also uses DEF. So 36*8 against 150*4 does look like 0 to 1 damage, yes.
As said above, please show the screenshot of the current skill with the last changes, and any other change you made.
Also please add a screenshot of the actor ingame so we can see the true actor attack value - currently we have only your assumption that it has an attack of 36, and you mmight have mixed up that in the same way as DEF.
And please don't crop screenshots, sometimes the other values you cropped are important.

second, your mistakes probably comes from assuming that the hit type changes values - but the hit type has nothing to do with the damage.
It would probably help you to check this link:
Spoiler: Screenshots
1692106127437.png
1692106146777.png
1692106332795.png
1692106353270.png
Okay when taking the screenshots it does appear to go up to 4 points of damage, but that's not much of a difference.

I'll look at that link when I'm able to see if it'll help in any way.
1) your last screenshot is of the attack skill, not of the golem skill

2) your actor attack is 28 and not 36 as you claimed - which results in a base damage of 24 instead of the 88 in your first post.

That is still much more than the 4 reported, but now in a much closer relation.
There is probably one more factor we haven't found for some reason, so we need to see the screenshot of the skill that was actually used to create that output.
Does the enemy have a defence buff?
Spoiler: Ah my bad, here's the Golem Skill
Sorry for the mixup, had to be up early for work so I kinda sped through them. ^^;
1692130061919.png

No buffs from what I can tell, but here's the enemy's stats.

Spoiler: Screenshot
1692130119912.png

From my understanding the higher the element rate, the higher the weakness is.

I used an event to make the player's level ten for testing this battle out. I removed it to try the default level, 5, and readded it this morning for the screenshot. So that can explain the attack number being different. I likely added an extra level by mistake.

Anyways, does the new screenshot helps?
yes, although not in finding the error.

you're right, with that element rate the damage should be multiplied by 2.5

which means we need to see your entire script list as one of the scripts messes up the calculations.

one additional question: are you using battletest or a new playtest game or loading an old playtest game for this?
yes, although not in finding the error.

you're right, with that element rate the damage should be multiplied by 2.5

which means we need to see your entire script list as one of the scripts messes up the calculations.

one additional question: are you using battletest or a new playtest game or loading an old playtest game for this?
I use the new game option every time I playtest. I do so to allow RPG Maker to apply all of the chances and such. So if I adjust part of a script, I simply save in the editor and hit a new game (with the starting position set with an event to teleport me wherever I'm currently testing the battles/overlays/map layouts at) to make sure the chances are applied correctly.
The element rate is only that high because I needed to see if, being so high, would chance anything.

The final rate will be set when I get this resolved.

By script list, do you mean the entire list of scripts I'm currently using, or the ones being used for this one battle?
the entire list of added scripts, just to check if there are known compatibility problems.
we'll ask for specific links after we have an idea of what you added.
Spoiler: Screenshots of every script added
1692140913654.png
1692140932538.png
1692140972785.png
1692140986263.png
1692141000161.png
There is a script conflict (I think) but also there is this,
I took an old copy of your project I had and started playing.
When I removed every script and just had the originals, there was still no damage. (in battle test)
When I raised the formula then there was some damage.
looking at the character class, it shows level 5 to have 24 attack.

1692146571453.png


24 * 8 - 200 = -8 aka (0)
24 * 9 - 200 = 16 * element (2.5) = 40 plus variance ; so anything from 25 - 55 ish.

Short answer try raising the multiplier for the attack and see if there is any damage.

*Also the game is pretty much a mess, you have TSBS 1.3 & 1.4 plus addons twice.
A little shocked since you have scripts overwriting other scripts. It works but just messy.
instead of guessing around a million different functions... can't you backtrack the value from the on-screen popup?
come on people, debugging 101... not that hard.
Theo has his scripts added in two different languages, with the English set to # (commented out, it's only there if you can't read the other) to cancel it out. I raised the atk value to 165, still the same so it isn't that. But I'll look into how that work to get a better understanding of it.

@gstv87, what do you mean? How can I backtrack that?
come on people, debugging 101... not that hard.
I was doing that.
I placed print outs at various places. The damage popup script is accessed, but it is supposed to call yanfly's make_damage_value method but that method was not accessed (no printouts).
Now I don't have the latest version of his project so I can't say for sure, but it was not going up the chain.
Spoiler: image
1692150813100.png

1692150839738.png

1692150864095.png

1692150913339.png

called twice because the first is the enemy which does show the damage value. So it is confusing

*Update
Found it, Theo Basic Module overwrites yanfly. So it doesn't go any higher. but it is also weird as this is before yanfly battle engine. still looking
Theo has his scripts added in two different languages, with the English set to # (commented out, it's only there if you can't read the other) to cancel it out.
That doesn't work for scripts unless you have a script that does it.
Rycochet has a script that does it the way you are trying to comment it out, but I don't see that script in your project.


I think I found it. Sonic Actions Script.
Line 78.
You're telling it to use skill -1 which seems to be ignored for the call to the summon grenade command and then it goes to test movement addon script where it is told to change skill to 41 which uses
a.atk * 4 - b.def * 2
29 * 4 - 150 * 2 = 0

But changing this to another skill doesn't seem to change anything.

*Second update

I have figured it out.
The summon is summoning an actor for the attack.
That actor is a soldier class at level 1 which gives him 20 attack power.
so 20 * 8 - 50 * 4 = 0

So everything I have provided should solve the issue.
Change the skill that is being called and change the golem's attack power.
trust me, adding the # in the script's name
Spoiler: like this
1692224891221.png
cancels the entire script out. I have done that myself more than once. Try it in my old project that you have, if you want to test it out. But since I trust you I will go over the English copies of his scripts to confirm that they are commented out or not. Even great scripters can make mistakes.

Spoiler: -1...-1...Oh you mean this!
1692225236828.png

This is where I must search the scripts for his info regarding these commands. (P.S Target_Damage is commented out because when that's used the enemy takes damage before the skill even ran the animation where it plays damage out a second time, the first damage just said resisted though, no actual damage dealt there)
Spoiler: After some searching..
1692225370909.png

Not explained very well but I will test it out. 5 minutes later okay changing the -1 to 6 (Sonic's ID) is indeed not making any changes. Next suggestion. 3 minutes later, banged head against table I had completely forgotten the script used an actor. Probably because the actor is just a placeholder for the animation itself.

I'm changing the grenade skill being used, and upped Golem's attack power, still no change (using the 3rd grenade, skill 43, said large bomb + oddly).

I'll keep messing around with this and let you know if I can get it to work. Just trail error for now.
cancels the entire script out.
I didn't see it but EST_CS2 - SCRIPT CONTROL is what is doing that for you, it's not a default behavior
Not explained very well but I will test it out. 5 minutes later okay changing the -1 to 6 (Sonic's ID) is indeed not making any changes. Next suggestion. 3 minutes later, banged head against table I had completely forgotten the script used an actor. Probably because the actor is just a placeholder for the animation itself.

I'm changing the grenade skill being used, and upped Golem's attack power, still no change (using the 3rd grenade, skill 43, said large bomb + oddly).

I'll keep messing around with this and let you know if I can get it to work. Just trail error for now.
Here is what I did
Spoiler: changes
1692229691424.png

1692229732302.png

copied skill 61 and took out the note box data
1692229794087.png

1692229874748.png

Original thread: https://forums.rpgmakerweb.com/threads/total-hit-rate-is-always-1-point-resolved-for-now.160309/