How to hide decimal numbers and remove party member shadow?

Er, I'm not good at explaining so I'll try to do it as best as I can.

1st problem

Basically, during a battle in my game, I tried to remove a party member, and then add in another party member that does a certain skill and then fights against the enemy with you. When I add them, it does work, but there are decimals on the actor's stats when battling as soon as I add them in the party and they're ready to battle.

So I was wondering, is there some kind of script call that I can do in order to remove the decimals from the actor?

2nd problem

I'm using the Prexus Ace Character Shadow script along with the Enu Sideview Battle System script, and I was wondering if I could remove the 2nd party member's shadow, besides the leader of the party in battle when fighting the enemy?

(You can find the script here btw)

http://rpgmaker.net/scripts/193/

Thanks in advance.
1st problem ... I'd be more inclined to find out WHY there are decimals on your actor's stats when battling, rather than getting rid of them.  What "stats" exactly, and where/how are they shown?  Are you using a script to display them?  Are you using a script to modify them?

Do any of your damage calculations use floats during the calculation and don't change them back to ints at the end?
1st problem ... I'd be more inclined to find out WHY there are decimals on your actor's stats when battling, rather than getting rid of them.  What "stats" exactly, and where/how are they shown?  Are you using a script to display them?  Are you using a script to modify them?

Do any of your damage calculations use floats during the calculation and don't change them back to ints at the end?
By stats I mean... well this.

amZBXIV.png


And no, they don't use floats.
That's so small, and dark - I can't read it.  What are they - HP?  MP?  Level? 

I don't see any decimals.  Maybe that's just because it's so hard to read.  Can you explain what they all are and what the values are for each?

Oh wait - I just zoomed in, and I think I do see decimals in the lower right corner.

You're obviously using a custom HUD.  Where's the script?  What values are being shown there, and what do you have, apart from the RTP stuff, that changes those values?  I'm betting you've got some custom formulae in there that convert things to floats for the sake of more accurate results, and then don't convert them back to int before updating.  Whether that's in your damage formulae or in a script remains to be seen.

It may be that you'll need to keep a check of the values, and the moment you see a decimal there, try and remember what's happened to that character since the last time you saw this screen and it was okay.

Do these issues also show up in the menu / status screens?
Then it's computing something that ends up as a float... Last time I encountered this was when I made a state that recovers %HP using a custom script which resulted to floats. For a fix, you could simply find the part where it draws the values into the HUD and put a .to_i so that it becomes an integer.
Sorry for late replies.

That's so small, and dark - I can't read it.  What are they - HP?  MP?  Level? 

I don't see any decimals.  Maybe that's just because it's so hard to read.  Can you explain what they all are and what the values are for each?

Oh wait - I just zoomed in, and I think I do see decimals in the lower right corner.

You're obviously using a custom HUD.  Where's the script?  What values are being shown there, and what do you have, apart from the RTP stuff, that changes those values?  I'm betting you've got some custom formulae in there that convert things to floats for the sake of more accurate results, and then don't convert them back to int before updating.  Whether that's in your damage formulae or in a script remains to be seen.

It may be that you'll need to keep a check of the values, and the moment you see a decimal there, try and remember what's happened to that character since the last time you saw this screen and it was okay.

Do these issues also show up in the menu / status screens?
I'm using the demonstration script of the Luna Engine Battle System. I don't have any custom formula that converts things into floats. And no, those issues do not show up in the menu or the status screens. Only in battle.

Then it's computing something that ends up as a float... Last time I encountered this was when I made a state that recovers %HP using a custom script which resulted to floats. For a fix, you could simply find the part where it draws the values into the HUD and put a .to_i so that it becomes an integer.
What do you mean by 'drawing the values into the HUD'? I'm pretty sure the problem lies in the Luna Engine Battle System (the demonstration version) so if you've ever used that script, would you mind showing me?
you could also just opt to modify the params method so that it returns an integer always via using .to_i on the return value

Original thread: https://forums.rpgmakerweb.com/threads/how-to-hide-decimal-numbers-and-remove-party-member-shadow.36771/