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,145
Reaction score
1,155
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,670
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,670
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've been busy trying out different art styles for my game.

Enemies deserve some spotlight also
hackingCompressed.gif
I think I can make a text-based mini-game with almost zero art assets and with code only...just a lot of code as assets all by themselves. :kaojoy:
A video update on the progress I've been making on the cutscenes. :kaosalute:

I wonder if color LUTs is possible for RPG Maker. It would be game changer and can replace the not so good looking tint screen

Forum statistics

Threads
115,866
Messages
1,093,578
Members
151,094
Latest member
Gelato
Top