Buffs at the start of the battle: Passive Effect

Parlu10

Veteran
Veteran
Joined
Jul 30, 2018
Messages
35
Reaction score
7
First Language
Italian
Primarily Uses
RMMV
Hi everyone, I was wondering if, using Yanfly's Passive Skills plugins, could be possible to make a skill with the following effect:

"if the user is in the battle, all party members gain an attack buff at the beginning of the battle"

Thank you in advance for your help.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
doesn't even needs a plugin, just have one troop event in every troop run on turn 0 and check for the member before adding the buff.
 

Kenen

Veteran
Veteran
Joined
Apr 3, 2012
Messages
262
Reaction score
155
First Language
English
Primarily Uses
RMMV
With Auto Passive States (YEP), you would need to put this in the state's Note box:
Code:
<Custom Passive Condition>
var actor = $gameActors.actor(1);
if ($gameParty.members().contains(actor)) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
Change the number in $gameActors.actor(1) to reflect which actor is required to be in the party for the state to activate.

You will still need to add the <Passive State: x> tag to the Note box of the Actors or Classes who you want to benefit from the state.

Passive Aura Effects (YEP) may also do what you're trying to achieve. Give it a look.

Alternatively, if you want to use Andar's suggestion, I would recommend checking out Base Troop Events (YEP). This will allow you to configure a global troop event that can be used to apply your state. Otherwise, you'll need to edit the events of every single troop if you need to change your state's application conditions in the future.
 

Parlu10

Veteran
Veteran
Joined
Jul 30, 2018
Messages
35
Reaction score
7
First Language
Italian
Primarily Uses
RMMV
Thank you for answering me

Code:
<Custom Passive Condition>
var actor = $gameActors.actor(1);
if ($gameParty.members().contains(actor)) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
When I try to test the game with this code in the state notetag, it freezes.
Also I don't have Base Troop Events, so i can't use Andar's suggestion.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
Also I don't have Base Troop Events, so i can't use Andar's suggestion.
you don't NEED base troop events for my suggestion, it would only make things easier.

You don't need ANY plugin for my suggestion, you would only have to place the troop event in every troop in the database.

And that is where the base troop event plugin would help - that plugin copies the troop events from the base troop to every troop, so you would only have to place that plugin once.
Without that plugin, you'll have to copy the troop event everywhere and make sure to add it whenever you create a new troop.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,836
Latest member
T62352536256t362
Top