(Yanfly) value = 0 removal?

Servidion

Last Soul Keeper
Veteran
Joined
Mar 15, 2015
Messages
233
Reaction score
27
First Language
English
Primarily Uses
RMMV
Didn't know how to word the title. Anyway! Here's the tag I'm using for "Wall of Spears".


<Custom Predamage Effect>


if (this.isPhysical()) {


a.gainHp(-origin.atk);


value = 0;


a.startAnimation(827);


a.startDamagePopup();


a.clearResult();


if (a.isDead()) a.performCollapse();


}


</Custom Predamage Effect>


It's used on an enemy and if that enemy uses a normal attack the damage to myself is negated and the enemy instead takes damage. The issue is I don't know how to stop the "0" from popping up on my character.
 
Last edited by a moderator:

Neo Soul Gamer

Veteran
Veteran
Joined
Aug 10, 2012
Messages
653
Reaction score
391
First Language
English
Primarily Uses
N/A
Did you try removing the  "a.startDamagePopup();"?
 

Servidion

Last Soul Keeper
Veteran
Joined
Mar 15, 2015
Messages
233
Reaction score
27
First Language
English
Primarily Uses
RMMV
Since the state is on the enemy the a.startDamagePopup() would be the enemy in this case, though I removed it just to see if it had any interaction with the origin and it turns out I didn't need the popup anyway. Still shows the damage on the enemy. I still have the issue with it showing "0" on my character when he attacks me, though.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,074
Members
137,578
Latest member
JamesLightning
Top