how to use Conditional Branch in battle?
RPG Maker MV SupportCan't you check for a state in the tab conditions?
Are you sure it's the condition that's the problem, and not your script call? Replace it with a message and see if the message displays when the actor gets that state.
Actually, what engine are you using? Your profile says Ace, and the script call looks like an Ace call, but you've posted in Javascript/Plugin Support, which is for MV.
Are you sure it's the condition that's the problem, and not your script call? Replace it with a message and see if the message displays when the actor gets that state.
Actually, what engine are you using? Your profile says Ace, and the script call looks like an Ace call, but you've posted in Javascript/Plugin Support, which is for MV.
aw. sorry didnt edit that one. im using rpg maker mv. anyway, what i want to ask is that how to use conditional branch and how to end it?
My answer remains the same - you should be able to use the tab conditions to check for an actor's state. You don't need to use conditional branch at all.
And are you sure the problem is with the conditional branch, and not the script call you've executed? That doesn't look like a JS command. Replace it with a Show Text command so you can see if it's getting executed or not.
And are you sure the problem is with the conditional branch, and not the script call you've executed? That doesn't look like a JS command. Replace it with a Show Text command so you can see if it's getting executed or not.
im using this plugin.
http://himeworks.com/2015/12/actor-battle-commands/
what i want is just that if actor 1 have state "jump" the command "item" should be seal or cannot be use rather.
http://himeworks.com/2015/12/actor-battle-commands/
what i want is just that if actor 1 have state "jump" the command "item" should be seal or cannot be use rather.
Hold your mouse over Span: Battle and see what the tool tip says. You've probably got the wrong condition there.
You might want to add an Else clause to re-enable the option if the actor doesn't have the state.
You might want to add an Else clause to re-enable the option if the actor doesn't have the state.
As this is not an issue with a plugin, but in using the editor,
Moderator note: I am moving this to RPGMaker MV Support
It is because you are using Battle as your span. Battle only runs once, even if all conditions are met. So if the actor does not have the state Jump in turn zero, your conditional will never work. You need Turn as the span, unless you have a very specific reason to use Moment.
Moderator note: I am moving this to RPGMaker MV Support
It is because you are using Battle as your span. Battle only runs once, even if all conditions are met. So if the actor does not have the state Jump in turn zero, your conditional will never work. You need Turn as the span, unless you have a very specific reason to use Moment.
I've managed it to work. I've disabled the command list. In conditions on troops i use turn end and the span is battle. In states "jump" auto removal timing i use "action end" 1 - 1. But now after the action end and the state has been removed it is still disabled. Oh and i forgot to mention that in conditional branch "if (actor1) is affected by Jump" of course i have "else" branch which is the enable_actor(1, *item*)

i've managed to disable it

but after the state is remove, it's still disabled

here's my state


i've managed to disable it

but after the state is remove, it's still disabled

here's my state

your span is wrong.
span = battle means that the troop event will run once per battle, it needs to be turn if you want to check every turn.
span = battle means that the troop event will run once per battle, it needs to be turn if you want to check every turn.
Jeez. Thanks a lot. That really did it. I can now jump and restrict if from using any of the command list and after it lands i can use again the command list.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-use-conditional-branch-in-battle.100570/
