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
59
Reaction score
67
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,173
Reaction score
1,164
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,677
Reaction score
15,293
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,677
Reaction score
15,293
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 Posts

Latest Profile Posts

Had to clean up disk space because Windows Updates was having my primaries' disk space for breakfast, lunch and dinner. I guess the clean up thingy doesn't work or something because there were 15gigs of old update files in it.
Monday morning, and the sudden message: Hey, can you set up a full second lesson about pixel art till tomorrow?
No one:
Steam game achievement: "Die 100 times in easy mode".
I want to learn Javascript to create a custom menu, but I don't really know where to start.

Forum statistics

Threads
115,889
Messages
1,093,730
Members
151,134
Latest member
umememe
Top