Toxsick

Regular
Regular
Joined
Sep 21, 2019
Messages
33
Reaction score
4
First Language
English
Primarily Uses
RMMV
Hey guys I'm currently trying to create a Magic Jammer effect in the buffs and states core I have the pre created one yanfly made but im struggling trying to change it to my needs. I have it set to block a percentage of the main characters health but it keeps giving me a bunch of decimal numbers for health. So when I heal I get numbers like 255.5655345 I'd like to round those numbers any way to do that?
 

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,970
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Support. Thank you.



What is a "magic jammer" effect?
 

ShadowDragon

Realist
Regular
Joined
Oct 8, 2018
Messages
8,184
Reaction score
3,428
First Language
Dutch
Primarily Uses
RMMV
roud numbers is done with math.ceil(...) for up or down)
and there where was another one (1 for up, 1 for down), 1 is given,
forgot the other one.

depending what you have in the notetag of the state.
if you show that, advance lunatic coders can help you correct
the issue for you.
 

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
12,476
Reaction score
10,868
First Language
English
Primarily Uses
RMMV
Put your formula (with the division to create the percentage) inside of Math.floor(here)
 

Toxsick

Regular
Regular
Joined
Sep 21, 2019
Messages
33
Reaction score
4
First Language
English
Primarily Uses
RMMV
[move]Plugin Support[/move]

What is a "magic jammer" effect?
It basicly creates a barrier that nullifies incoming heals for a certain amount.
 

Toxsick

Regular
Regular
Joined
Sep 21, 2019
Messages
33
Reaction score
4
First Language
English
Primarily Uses
RMMV
Put your formula (with the division to create the percentage) inside of Math.floor(here)
Hi sorry I have had to work a lot and havn't had much time to test this out. I tried it and it doesn't seem to be working. I'll send the line of code that the formula is placed in and maybe you could help? Thank you so much. There's two lines. One for generating the number to block and another to show it on the counter so the player can see how much they have to heal.

target._antiHealBarrier = target.mhp / 3;


target.setStateCounter(stateId, target.hmp / 3);
 

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
12,476
Reaction score
10,868
First Language
English
Primarily Uses
RMMV
What did you try that didn't work?
 

Toxsick

Regular
Regular
Joined
Sep 21, 2019
Messages
33
Reaction score
4
First Language
English
Primarily Uses
RMMV
What did you try that didn't work?
I played with it for a little and it worked. I had the Math.floor in the wrong place on the second line I gave. I put it inside the quotations instead of outside of the entire thing. But it's working perfectly now! Thank you for your help!
 

Latest Threads

Latest Profile Posts

I have completed what is clearly the most important part of participating in the game jam: coming up with a name!
My shrink has me trying to limit 30 mins a day for each of my personal projects so I can have a healthier life. But lately the rpg making in particular has been hard to pull away from and I keep getting lost in it.
Everyone has a test project named like this...right?

1701263020760.png
Pardon my japanese but this is my honest reaction to yesterday's "tangent":
1701262223568.png
I know these are all simple things for experienced users, but working on this Game Jam I have officially learned how to:
  • Use my own title screen image
  • Use scrolling text
  • Fade in a picture
  • Use any image for the Face in a dialog box
Probably silly for many people, but observable progress for me!

Forum statistics

Threads
136,570
Messages
1,267,671
Members
180,253
Latest member
DIwii
Top