No Null Damage

Status
Not open for further replies.

Shinma

Lurker
Veteran
Joined
Dec 29, 2012
Messages
756
Reaction score
341
First Language
English
Primarily Uses
RMMV
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.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 

RaZzi

My Peculiar Brother
Veteran
Joined
Jul 19, 2013
Messages
423
Reaction score
206
First Language
Finnish
Primarily Uses
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 ?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,668
First Language
German
Primarily Uses
RMMV
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)
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
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.
 

Shinma

Lurker
Veteran
Joined
Dec 29, 2012
Messages
756
Reaction score
341
First Language
English
Primarily Uses
RMMV
Thank you all, it seems like those 2 suggestions will work. Thread can be closed.

(Thanks for moving, Shaz!)  :D
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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.
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

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:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top