(Answered) Skill that has different effect based on state on target?

Servidion

Last Soul Keeper
Veteran
Joined
Mar 15, 2015
Messages
233
Reaction score
27
First Language
English
Primarily Uses
RMMV
So I have a skill called Nightmare that inflicts additional damage if the enemy is affected by the Sleep state (or is supposed to). So far it does 0 damage. What am I doing wrong here?


Basing this off some other formulas I saw.


if b.state?(6);end;c = 1000;else;c = 10;end;c


Very basic example. I plan to have my actual damage formula multiplied by "c", but for now I'm just trying basic testing with this formula and it's doing 0 damage.


*edit* The correct way, as answered by Ogouka, is this:


b.isStateAffected(x) ? [high damage formula] : [lower damage formula]


Thanks Ogouka! :D
 
Last edited by a moderator:

Ugouka

Veteran
Veteran
Joined
Mar 11, 2016
Messages
140
Reaction score
53
First Language
English
Primarily Uses
Browsed through the Damage Formula help thread and found this for ya:


b.isStateAffected(x) ? [high damage formula] : [lower damage formula]
 

Servidion

Last Soul Keeper
Veteran
Joined
Mar 15, 2015
Messages
233
Reaction score
27
First Language
English
Primarily Uses
RMMV
That's way different than the formulas I found. Did I post a really old RPG maker formula or something?


Testing now.


*edit* It worked! You're amazing! Helping with two questions at once. lol Thank you! 
 
Last edited by a moderator:

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,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top