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
67
Reaction score
81
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,824
Reaction score
1,649
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
44,180
Reaction score
15,543
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
44,180
Reaction score
15,543
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

My new 49" monitor has been dispatched from the warehouse. Will it arrive tomorrow? The day after? I love that we can track packages now, even if it does only tell me when it's left that end and when it's arrived at the local centre. As long as it doesn't end up in Melbourne again, which has happened before ...
My friend's doing a surprise stream of my game Origin Hunt on Twitch here ! Feel free to stop by :yhappy:
Me, designing it a long time ago: Having an optional boss fight as a random chance to trigger when you fish in a certain spot with a certain type of bait is fun! Cool idea!
Me, trying to playtest everything again: oh god just let me see the boss, my bag is so full of fish!
both love and pain have no boundaries

Forum statistics

Threads
117,229
Messages
1,105,684
Members
153,384
Latest member
mfilez
Top