No Null Damage

● ARCHIVED · READ-ONLY
Started by Shinma 9 posts View original ↗
  1. Is there a script out there that anyone knows of that will prevent the enemy doing NULL damage when his attack isn't high enough? I would prefer an enemy do at least 1 damage if he hits but his atk is too low to effect the player.

    A bonus to it would be a script that allowed a percentage of null damage hits to be 1 damage hits, this way you can get both.
  2. I've moved this thread to RGSS3 Script Requests (Scripts is for complete scripts, not requests). Please be sure to post your threads in the correct forum next time. Thank you.
  3. Uhm, the basic attack skill formula is a.atk * 4 - b.def * 2 in the database. What if you just make it like this: a.atk * 4 - b.def * 2 +1 ?
  4. RaZzi said:
    Uhm, the basic attack skill formula is a.atk * 4 - b.def * 2 in the database. What if you just make it like this: a.atk * 4 - b.def * 2 +1 ?
    that won't work, if the def is high enough then the +1 won't change the result.
    it has to be soomething similiar to


    [a.atk * 4 - b.def * 2, 1].max


    (no guarantee, haven't tested for syntax errors)
  5. What do you mean by NULL damage?


    If my atk is 20 and the target's def is 40, and your formula was simply a.atk - b.def, then the damage should be zero, not NULL.
  6. Tsukihime said:
    What do you mean by NULL damage?


    then the damage should be zero, not NULL.
    NULL is the word for zero in several languages
  7. Thank you all, it seems like those 2 suggestions will work. Thread can be closed.

    (Thanks for moving, Shaz!)  :D
  8. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.