Oh well, I think I ask this here because I can't figure out why No Damage is happened and how it can come out, I mean what is the parameter?
There are many things about damage value that calculated before the final value is determined, there's success or not the attack, there also for miss or not the attack, there also if enemy evade the attack or not, but what with No Damage? Did it just pop out because :
1. The attack is a success
2. It's a hp.damage type,
3. But the damage value result is not more than 0 because the formula of skill resulting in value < 0 or == 0 ?
4. But if it's < 0 the eval method will give 0 damage(you know, because that max method inside), so No Damage will occured?
5. The enemy not evading.
But if that's the case how can someone explain this ?
As you can see, Eric per hit damage does more than 900 damage, but with a rare ocassion the No Damage poped-up, I can ensure that it's not an evade thing because for evade I set the if result.damage.evade
Here;s some my popup method:
@damage = FAILURE_PHRASE if !target.result.success @damage = MISS_PHRASE if target.result.missed if item.damage.to_hp? && target.result.hp_damage == 0 @damage = NO_DAMAGE_PHRASE # <= This the one end @damage = EVADE_PHRASE if target.result.evaded
Okay the question is what is the paramater for the "No Damage" will occured by DEFAULT ? That is the final question..
Thanks everybody.. 🙂 . Peace.
EDIT: Sorry if wrong post place..
There are many things about damage value that calculated before the final value is determined, there's success or not the attack, there also for miss or not the attack, there also if enemy evade the attack or not, but what with No Damage? Did it just pop out because :
1. The attack is a success
2. It's a hp.damage type,
3. But the damage value result is not more than 0 because the formula of skill resulting in value < 0 or == 0 ?
4. But if it's < 0 the eval method will give 0 damage(you know, because that max method inside), so No Damage will occured?
5. The enemy not evading.
But if that's the case how can someone explain this ?
[IMG]http://oi58.tinypic.com/5ltkdt.jpg[/IMG]
Here;s some my popup method:
And the window battle log which is by default (well I missed the screenshot) is coded by Enterbrain also give No Damage message.
So what's happened here?
I don't ask for "Always deal 1 hp damage" or anything like that, because I have solved this in formula section, but what I want to know is why this No Damage is occured when Eric Attack is far more greater than the slime defense, and the attack is not a missed attack and it should be a success attack, and the slime is not evading because if it evaded the attack it should return EVADE popup(the EVADE_PHRASE is in the bottom). I don't use conditional elsif.
So what's happened here?
I don't ask for "Always deal 1 hp damage" or anything like that, because I have solved this in formula section, but what I want to know is why this No Damage is occured when Eric Attack is far more greater than the slime defense, and the attack is not a missed attack and it should be a success attack, and the slime is not evading because if it evaded the attack it should return EVADE popup(the EVADE_PHRASE is in the bottom). I don't use conditional elsif.
Okay the question is what is the paramater for the "No Damage" will occured by DEFAULT ? That is the final question..
Thanks everybody.. 🙂 . Peace.
EDIT: Sorry if wrong post place..