Negated Conditional Branch

This script allows you to create negated conditional branches in your events. For example, if your conditional branch tests "if actor exists", then the negated conditional branch tests "if actor does not exist".


The purpose is to provide negation logic without having to figure out how to write the condition as a script call.





Download


Get it at Hime Works!
This is actually really, really awesome! I will have to check it out later.
I see... looks nice at first look...  🙂

Though they can always just use the Else branch of the conditional branch to handle the negated conditions... right? well, that's how I do it right now if I need the negated condition when I cannot determine the script equivalent of it...

the only advantage of this that I can think of is that it makes your event have 1 less line (because you'll have a blank space for true handler and one space for the word else so that would be 2 lines, but then this script needs 1 line for the comment so in the end you'll only have 1 line less)

and aside from the fact that these is helpful for your other script... so I think this is more of a tool that should be used with your Event page conditions script rather than a standalone...   🙂
The advantage is that you can express negation in your condition and it is easy for scripts to check if it needs to be negated or not: just check whether a flag is set in the event command.


Regular events don't benefit from it because you can just use the `else` block, but I wrote it because several of my event-related scripts use the conditional branch command and it would be convenient to be able to just negate your condition without me having to figure out a way to parse the entire if/else block of events.
yeah, I realized when I saw the other script which was why I added the last line... 🙂

Original thread: https://forums.rpgmakerweb.com/threads/negated-conditional-branch.19275/