Ok, so...Hi! My question is:How can I create a state, that afflict only a specific character in battle? For example, if I have character named Levy, Natsu, Gajiel, and an ability named Iron, How can I, make so when Levy use Iron on Natsu, he don't obtein the state, but Gajiel yes? P.S. Resistence to that state NO. P.P.S Can be do it, with a common event, conditional branche Too?
How afflict state on a specific character
RPG Maker MV SupportDid I red correctly? #1 targets #2 with a spell but the effects are received by #3?
Anyway, make your skill call a common event. Inside it, just put Change State [+ whatever the State is to "Actor"].
Anyway, make your skill call a common event. Inside it, just put Change State [+ whatever the State is to "Actor"].
It's an example. If 1 use a skill that change the state, don't work on 2, but work on 3
You would do this via the damage formula where you would check the id of the actor. Then the state would be added only if the target was that particular one. The code in Ace would be as I've written it below. What you need is someone to change the syntax so that it works in MV. For example, I know that in MV it is addState instead of add_state, but I don't know if the rest of the formula would work. However, with this as a base, it should be easy enough.
Let us assume the actor id is 3 in the data base, and the state id is 57. It is looking at 'b', because from the enemy's point of view, the actor is the target.
if b.actor_id=3 ? b.add_state(57) : your ordinary damage formula here.
This is my guess at how it would look in MV
b.isActor(3) ? b.addState(57) ; your damage formula here
Try that and see if it works.
Let us assume the actor id is 3 in the data base, and the state id is 57. It is looking at 'b', because from the enemy's point of view, the actor is the target.
if b.actor_id=3 ? b.add_state(57) : your ordinary damage formula here.
This is my guess at how it would look in MV
b.isActor(3) ? b.addState(57) ; your damage formula here
Try that and see if it works.
@Vito The Boss
As @Kes suggested, use the damage formula. The MV syntax is
b.actorId() == 3 ? b.addState(57) : damage formula for other targets
or just
if (b.actorId() == 3) b.addState(57)
if you don't want anything else to happen on other targets.
If you want extra damage to occur no matter who the target is, put a semicolon and your formula after this. For more information on damage formulas in MV look here: http://www.rpgmakercentral.com/topic/36290-damage-formulas-101-mv-edition/
As @Kes suggested, use the damage formula. The MV syntax is
b.actorId() == 3 ? b.addState(57) : damage formula for other targets
or just
if (b.actorId() == 3) b.addState(57)
if you don't want anything else to happen on other targets.
If you want extra damage to occur no matter who the target is, put a semicolon and your formula after this. For more information on damage formulas in MV look here: http://www.rpgmakercentral.com/topic/36290-damage-formulas-101-mv-edition/
Thanks, everyone!
Original thread: https://forums.rpgmakerweb.com/threads/how-afflict-state-on-a-specific-character.73784/