how to use Conditional Branch in battle?

● ARCHIVED · READ-ONLY
Started by ramedina1234 10 posts View original ↗
  1. As the title says, how can i use conditional branch in battle?
    This is what i'm trying to do.
    LA.png

    But if actor 1 has the state "Jump" nothing happened. I can still use or rather "item" is still enabled.
    Help please.
  2. Can'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.
  3. 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?
  4. 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.
  5. 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.
  6. As this is not an issue with a plugin, but in using the editor,
    [mod]I am moving this to RPGMaker MV Support[/mod]
    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.
  7. 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*)

    LA.png



    i've managed to disable it
    la1.png


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


    here's my state
    la3.png
  8. 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.
  9. 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.