RMMV Remove certain state from all enemies when a state expires

Status
Not open for further replies.

Marcossi

Villager
Member
Joined
Sep 1, 2021
Messages
10
Reaction score
1
First Language
English
Primarily Uses
RMMV
How can I accomplish this? And to make things clear, the state that would remove other states would be on one enemy. So the removal would target the enemy's partners. Thanks for your time!

Edit: Passive auras would not work because reasons specific to my project.
 

uglywolf

Veteran
Veteran
Joined
Nov 9, 2015
Messages
63
Reaction score
76
First Language
Malay
Primarily Uses
RMMV
What happens when you try conditional branch on enemy troops events?

Also, being CLEAR means that you mention everything you done from tip to toe which includes how the STATE affects the game, be in battles or maps. You also have to mention the requirement it needs to be affected by those states, and add more details on how it suppose to work theatrically.
Ofc, if it has plugins, you not only have to mention what you used; but also how it scripted.
 
Last edited:

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
2,250
Reaction score
1,209
First Language
English
Primarily Uses
RMMV
Using Yanfly's Buffs & States Core:
Code:
<Custom Remove Effect>
for (var i=0; i<user.friendsUnit().aliveMembers().length; i++)
    user.friendsUnit().aliveMembers()[i].removeState(X);
</Custom Remove Effect>
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,721
Reaction score
15,304
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Requests. Thank you.

 

Marcossi

Villager
Member
Joined
Sep 1, 2021
Messages
10
Reaction score
1
First Language
English
Primarily Uses
RMMV
Using Yanfly's Buffs & States Core:
Code:
<Custom Remove Effect>
for (var i=0; i<user.friendsUnit().aliveMembers().length; i++)
    user.friendsUnit().aliveMembers()[i].removeState(X);
</Custom Remove Effect>
This worked perfectly fine. Thanks a lot.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,721
Reaction score
15,304
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.

Latest Threads

Latest Profile Posts

Something might be coming...
Hallo.png
A new day for creating :)
2021 has been the runner-up for the worst year of my life. 2015 may take that title, but '21 is pushing it. Excuses really don't justify how much of a jerk I've been this year to a lot of people.

I'm sorry. I don't intend to be a jerk forever, but I'd rather back up my intent with actions, not words.
"Another hundred habaneros... a teaspoon of tumeric... and a heaping helping of nitroglycerin!" The kitten in a chef's hat laughed maniacally as the pot he was stirring promptly exploded.

Forum statistics

Threads
116,019
Messages
1,094,957
Members
151,334
Latest member
seanhickey00
Top