So, I want this character to get into a state when all of the other party members are defeated in battle, is there a way to do this? Do I need a plugin?
MZ I need help with a battle mechanic
Javascript/Plugin Supportyou'll need a troop event that runs at least once a turn to check all party members and affect the actor if the correct conditions are fulfilled.
if you need that to happen in every battle, then instead of copying that troop event everywhere you could use a base troop plugin, but that in itself is not neccessary for the effect, only to make things easier instead of copying.
if you need that to happen in every battle, then instead of copying that troop event everywhere you could use a base troop plugin, but that in itself is not neccessary for the effect, only to make things easier instead of copying.
Hi! Welcome!
Is this for a specific boss battle for example?
Is this for a specific boss battle for example?
I think it's much easier for you to use VisuStella's Skills and States Core. Put this as a passive state on the actor you want. Then the condition for it would be:
Code:
<JS Passive Condition>
condition=$gameParty.aliveMembers().length==1;
</JS Passive Condition>
I'm sorry, where do I put that code? I'm very new to this, it's my first project and I had no prior knowledge on this stuff
Are you using visustella plugins?
https://visustella.itch.io/visumz-sample
If yes, you type @ATT_Turan above code along with your passive state notetag into the NOTE box of whichever actor you like to have this state under said conditions.
If you aren't using them, they will not work.
https://visustella.itch.io/visumz-sample
If yes, you type @ATT_Turan above code along with your passive state notetag into the NOTE box of whichever actor you like to have this state under said conditions.
If you aren't using them, they will not work.
Ohh, okay, thank you, and yes I do have the plugins, I'm just not entirely sure how they work
If you open the plugin manager.. then double click a visustella plugin, the left side has a detailed help description. You can also click the link above said description to open a webpage with the instructions for that plugin. The instructions are structured and detailed to begin understanding how to use them. When you encounter a situation where <JS CODE> is used, you will need some experience to utilise that. For the most part, the plugins provide many options to customise your game.
Alright, thank you very much for your help
Moved to: Plugin Support
@Nugget is having trouble getting this feature to work. So, for the benefit of all, here is a working example:
PLUGINS REQUIRED:
http://www.yanfly.moe/wiki/Battle_Core_VisuStella_MZ
http://www.yanfly.moe/wiki/Skills_and_States_Core_VisuStella_MZ#JavaScript_Notetags:_Passive_State
Visustella Sample Project used for this example.
As you can see, There are multiple party members available.
When there is only 1 member alive in battle the passive state is active.
added to Actor Notebox.
added to State 25's Notebox.
PLUGINS REQUIRED:
http://www.yanfly.moe/wiki/Battle_Core_VisuStella_MZ
http://www.yanfly.moe/wiki/Skills_and_States_Core_VisuStella_MZ#JavaScript_Notetags:_Passive_State
Visustella Sample Project used for this example.
As you can see, There are multiple party members available.
When there is only 1 member alive in battle the passive state is active.
Code:
<Passive State: 25>
Code:
<JS Passive Condition>
condition =
$gameParty.aliveMembers().length == 1;
</JS Passive Condition>
Original thread: https://forums.rpgmakerweb.com/threads/i-need-help-with-a-battle-mechanic.141362/