Replacing Zero Damage with a "MISS" statement

MattDrummy

Villager
Member
Joined
Nov 11, 2016
Messages
8
Reaction score
1
First Language
English
Primarily Uses
Using the damage formula, I'm able to script conditionals for applying states and other non damage effects. However, if I have a
situation where a state can't apply, the damage formula defaults to Zero damage. How can I skip the damage effect (numbers and hit effect) and display a miss statement instead? Is there a way to use script call to force a miss? Or is it too late to make that appear because the attack would have gone though the hit stage before calculating damage. Here's an example of a formula I'm using that ultimately leads to a damage number and effect.

b.isStateAffected(74) ? b.die() : 0

This formula checks if the battler is affected by a Zombie state, and if so, kills them. But if the battler doesn't have the zombie state, it should just miss, but in this case (obviously) it creates a damage effect and displays a zero. I would be okay if it had the effect of damage, and didn't display the number but ideally, I'd rather it just force a miss or Immune statement instead. I haven't found a plug in that specifically does this either.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
By default, the damage formula does calculate the hit/miss first, then the damage second. There might be a way to force the damage formula to update the hit/miss parameters and change them to a miss, but I'm not sure if they would still display. Maybe someone who knows more about the MV damage formula could say more?
 

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

Latest Threads

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,017,004
Members
137,562
Latest member
tamedeathman
Top