Negated Conditional Branch

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
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!
 
Last edited by a moderator:

Jesse - PVGames

Game and Graphics Developer
Veteran
Joined
Jun 23, 2012
Messages
1,790
Reaction score
2,787
First Language
English
Primarily Uses
This is actually really, really awesome! I will have to check it out later.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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...   :)
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
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.
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
yeah, I realized when I saw the other script which was why I added the last line... :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top