Grumphlu

Veteran
Veteran
Joined
Mar 25, 2015
Messages
37
Reaction score
8
First Language
Français
Primarily Uses
Hi !

I'm using Yanfly's plugin and i am struggling with a skill.

I have a state "Water" and a state "Freeze". Let's say that i apply "Water" to all ennemis with a Surf

Now, with my skill "Blizzard" i want to freeze my ennemies affected by "Water". But, when i do it, it will not apply it somehow

my code is:

<Target Action>

<Whole Action>

if target.isStateAffected(15)

add state 14: target, show

wait: 20

else

wait: 20

end

</Whole Action>

</Target Action>

This works like a charm when it comes to mono target, but doesn't work with multiple target. What i am missing ?

Thanks in advance for your time !
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
8,933
Reaction score
6,754
First Language
English
Primarily Uses
RMMV
Your notetags are wrong. You can't nest notetags like that. You have to finish one before you start the other:
<target action>
</target action>
<whole action>
</whole action>
 

Grumphlu

Veteran
Veteran
Joined
Mar 25, 2015
Messages
37
Reaction score
8
First Language
Français
Primarily Uses
Your notetags are wrong. You can't nest notetags like that. You have to finish one before you start the other:
<target action>
</target action>
<whole action>
</whole action>
Hi, thanks for your quick answer, it resolved a part of my skill. Now it does works when i use my "Surf" skill into "Blizzard" skill, all enemies are frozen. Good

But now, i applied "Water" on 2 Enemies but 3 of them didn't have the state on them. I casted "Blizzard" on them and all of them got frozen. What i would like is that only thoose 2 enemies with "Water" state on them would be frozen and not the 3 others.

I don't know if there is a way to check each enemy to scan who is affected by "Water" and who's not..
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
8,933
Reaction score
6,754
First Language
English
Primarily Uses
RMMV
I think you actually need to use target action, not whole. Doing target action executes the commands against each enemy individually, whereas whole evaluates it once for the entire troop. So I think that would check the first enemy of the troop to have the state then apply it to all of them.
 

Grumphlu

Veteran
Veteran
Joined
Mar 25, 2015
Messages
37
Reaction score
8
First Language
Français
Primarily Uses
I think you actually need to use target action, not whole. Doing target action executes the commands against each enemy individually, whereas whole evaluates it once for the entire troop. So I think that would check the first enemy of the troop to have the state then apply it to all of them.
Ok, i think i understood it better. I seperated my Whole Action sequence (for animations, camera blablabla) then i wrote a Target Action in order to check/apply the state. I guess i will do the same for my AOE dmg. I have others like this that will do Crit if ennemies are affected by a certain state and i don't want it to crit if some of them are not affected with that state.
The only problem will be that dmg will appear one by one after my animation, making it a bit smoothless but it is fine.

I think we can sey it is done :)
Thank you so much for your help and have a great week!
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
8,933
Reaction score
6,754
First Language
English
Primarily Uses
RMMV
I mean, you could also not use action sequence commands and instead eval it inside your setup action.

Code:
Eval: $gameTroop.aliveMembers().forEach(enemy => enemy.isStateAffected(15) ? enemy.addState(14) : 0);

but I don't think it makes a difference in this situation.
 

Latest Threads

Latest Posts

Latest Profile Posts

Ok. I am seriously going to make efforts to stop double-posting because I got suspended for two days because of doing it too much. Lmao; am I the only one who got a suspension for this? Probably not, but I'd still like to know LOL.
I always hated when the an NPC disappears for the night they just blink out. Finally got around to making a fade out/in for any NPCs that leave/comeback for the night or day.
LmHbTL.png


Continuing our countdown with Capsule Monster #10 Curl Shot! A powerful ranged attacker, you're better off double teaming him with magic users to defeat!!
TSR
Taking a break from mapping, I've been working on the shop scene lately.Capture d’écran, le 2023-06-09 à 17.18.41.png


The project is going well, it's just I rarely share clips and stuff 'round here

Forum statistics

Threads
131,777
Messages
1,223,259
Members
173,547
Latest member
KamiPawa
Top