Advance Damage formula - addstate

Devildimos

I ruin memes for a living
Veteran
Joined
Jul 11, 2014
Messages
82
Reaction score
172
First Language
Eglish
Primarily Uses
RMVXA
I was not sure where to post this question.
I am trying to use the Damage Formula to apply a state if the condition is meant.
Like so.
b.mdf > 7 ? 0 : addState(57)
But I believe this is a MV thing and not an Ace thing.
Basically what I am doing is: Charm Person. If the target has 7 or lower Wisdom(MDF) that target is charmed.

Although this is working fine.
b.mhp > 100 ? 50 : 100
If the target has 100 or more MaxHP than the target will only take 50 damage.
How do I add states in this way?
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
First Language
Indonesian
Primarily Uses
RMVXA
Code:
if b.mdf <= 7; b.add_state(57); end; 0
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
How do I add states in this way?
Damage formulas normally refer to Game Battler. And in such you have to specify which battler you are referring to.
a = actor
b = enemy
And it would be reverse for the enemy.

and TheoAllen has the answer for you
 

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

Latest Threads

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,990
Members
137,562
Latest member
tamedeathman
Top