From D&D Bonus Actions are once per turn and can do multiple things, usually things that happen in seconds or are class or skill specific. A rogue can use "hide" after they preform an attack to become safe or have the enemy search from them before able to counter-attack. Potions are another example, you can chug a potion then charge in and swing.
However if the player wanted to use 2 potions they have that option, but this expends action for the turn.
I used Yanfly Instant cast with cooldown plugins for MV to accomplish this. But I want to go about it without any additional plugins and trying to work around using the maker. I have VisuStella Battle Core plugin.
MZ Objective: Using a potion on yourself or an ally, counts as a bonus action. You may perform any other action freely however if you decide to use another bonus action it will count as an action and then end your turn.
The Plan:
Step 1:
So on my potion I put the note:
Step 2:
I created a state called Bonus Action, with the traits "Action Times + 100%", removal conditions: Turn end (1) and finally a post action that adds the state to resist this state (Bonus Action), so it ensure it is a hard once per turn.
Step 3:
Resist Bonus Action state, with the traits "State Resist - Bonus Action", removal conditions: Turn end (1).
This effectively removes the Bonus State at then end of your 2nd action and makes it so you cannot gain another action.
The Problem: It doesn't work lol. The Bonus Action State applies from the item but it does not give me an extra action. I tried Pre-Start Action, but again it does not work. If I understand Action Times +, you need to start the turn with this state to select 2 actions (which is not the objective at all).
Possible Solutions: JS code to allow actor to gain an extra action if certain skills and item are used while not under the bonus action state.
In any event im stuck, can anyone help?
However if the player wanted to use 2 potions they have that option, but this expends action for the turn.
I used Yanfly Instant cast with cooldown plugins for MV to accomplish this. But I want to go about it without any additional plugins and trying to work around using the maker. I have VisuStella Battle Core plugin.
MZ Objective: Using a potion on yourself or an ally, counts as a bonus action. You may perform any other action freely however if you decide to use another bonus action it will count as an action and then end your turn.
The Plan:
Step 1:
So on my potion I put the note:
Code:
<JS Pre-Apply>
user.addState(bonusaction)
</JS Pre-Apply>
I created a state called Bonus Action, with the traits "Action Times + 100%", removal conditions: Turn end (1) and finally a post action that adds the state to resist this state (Bonus Action), so it ensure it is a hard once per turn.
Code:
<JS Post-End Action>
user.addState(resistbonusaction)
</JS Post-End Action>
Resist Bonus Action state, with the traits "State Resist - Bonus Action", removal conditions: Turn end (1).
This effectively removes the Bonus State at then end of your 2nd action and makes it so you cannot gain another action.
The Problem: It doesn't work lol. The Bonus Action State applies from the item but it does not give me an extra action. I tried Pre-Start Action, but again it does not work. If I understand Action Times +, you need to start the turn with this state to select 2 actions (which is not the objective at all).
Possible Solutions: JS code to allow actor to gain an extra action if certain skills and item are used while not under the bonus action state.
In any event im stuck, can anyone help?