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
58
Reaction score
66
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,291
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,291
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

I want to learn Javascript to create a custom menu, but I don't really know where to start.
One uncomfortable truth that has withstood the test of time, is how most people will stand by while they see a crime happening, unless it's illegal to stand by. We probably wouldn't have stories about "special heroes" or games about heroes if the "everyday common folk" were largely capable of being heroes. Heroes face dangers that most people are not willing to.
I'm having toooo much fun designing the new MP (Mental Psyche) system. I've only worked it out for enemies so far, but it's fun to stun them, then go after their MP and delete them instead to farm for better item drops.
anyone know of a place I can promote my game? sorta like game awards but for indie devs, like a place where I can drop a trailer and like stir up some hype
Doing RPG Maker News for 17th October 2021

Forum statistics

Threads
115,885
Messages
1,093,703
Members
151,126
Latest member
LAB00M
Top