I've set up multiple npcs in my game that cycle through dialogue using conditional branches with variable. I did not realize until now that this instead makes it go straight through all the dialogue without letting you leave, and now I don't know what to do, please help.
(Fixed) Conditional branch loop loops too well
RPG Maker MV SupportIf you want only one condition to happen, you have to use ELSE cases.
Code:
◆If:#0005 = 1
◆
:Else
◆If:#0005 = 2
◆
:Else
◆If:#0005 = 3
◆
:Else
◆ ...
:End
◆
:End
◆
:End
You can use Else branches like @Zia_ said.
Or, if you want it a bit cleaner to read without all those nested conditional branches, then you put Exit Event Processing at the end of each branch (e.g. after the Shop Processing).
Or, if you want it a bit cleaner to read without all those nested conditional branches, then you put Exit Event Processing at the end of each branch (e.g. after the Shop Processing).
Fixes have been implemented, thank you for the help!!
the way you have "can work", but you need it in a reversed way.
start with 10 (or the highest number), than go down to 1.
as it isn't higher than or lower but equal, higher to lower = best approach.
same if you make it nested way, both work eventually.
starting with 1 and increase to 1 just take the next one, and the next 🙂
if reversed, it can only pick 1 and not more as the higher number is above ^^
start with 10 (or the highest number), than go down to 1.
as it isn't higher than or lower but equal, higher to lower = best approach.
same if you make it nested way, both work eventually.
starting with 1 and increase to 1 just take the next one, and the next 🙂
if reversed, it can only pick 1 and not more as the higher number is above ^^
This thread is closed due to being marked solved. Report the next one so we can see! If you need it reopened, report the thread to let us know. Thank you!
Original thread: https://forums.rpgmakerweb.com/threads/fixed-conditional-branch-loop-loops-too-well.173941/