Is it possible to have an else if equivalent in conditional branches.,.. Would it just require multiple condition statements within the first ..or ? Basically what I want to do is have an easter egg for if someone enters a specific name but have it so it can be caught no matter how they type it ..capitals .. lower case ...etcetc ... ..sorry if this doesn't make much sense
Sorry ..forgot to add tags
No, that is not possible if you want to use event commands.
You only have If and Else to work with.
ALWAYS name your actors - even if it is only a placeholder name, because otherwise you might make mistakes in selecting them.
If for example you have two different actors with blank names, your event code would look the same and you wouldn't know if you check the wrong actor for the set name.
By the way, the second conditional is in the true-branch of the first - and the actor name cannot be both BLANK and Blank, so the second condition can never be true.
Does RM actually display the word "BLANK" if you leave it blank?
Or are you using BLANK as the test name? (case-sensitive)
Screenshots are always better than typing the text, because an event is more than just the content area, and even in the content area there are too many possible mistakes that vanish by mistyping, for example the exact part of the branch where the condition is set.
in your case, I would disable all elses and simply make one condition for each name - if it does not fit, it goes to the next possible option.
And if you need common commands after each name check, make a label "after name checking" and include a goto label in each conditional branch.
Good grief guys, this is not that difficult.
Conditional Branch -> Script
# Do If stuff here
End
For a newer member, the difficulty you'll run into is knowing what to put into the Script Box. Be sure to leave the "if" statement out. For checking for "Blank" names, you could do it numerous ways:
Script: $game_party.actors[0].name == "" or $game_party.actors[0].name.downcase == "blank"
NOTE: thats the XP way of doing it, so this may not work on VX Ace
There is no need to use nested loops inside events when the Conditional Branch -> Script Box will take enough code to check for everything you need. It is deceptively large. The OP seems unfamiliar with RPG Maker, but not unfamiliar with coding in general, which they can use to their advantage.
Your screenshot shows the second condition within the first one. They cannot BOTH be true, so either the first will be true and the second will fail, or the second will be true but will never be encountered because the first fails.
Your second condition should be within the ELSE branch.
You've got this:
If condition 1 If condition 2 ... Else ... EndEndcondition 1 and condition 2 can never both be true at the same time.What you should have is this:
If condition 1 ...Else If condition 2 ... Else ... EndEndAnd yes, please show screenshots rather than just describe how it's set up, because often what you SAY you have is not really what you DO have. We could waste a lot of time if we assume that your description is complete and accurate when it's actually not.
No worries. I'll just merge your posts. Next time, if you want to respond to several people, you can just do @Name rather than quoting, or if you WANT to quote them, use the MultiQuote button on each post you want to quote, then when you're ready to add your reply, hit the Reply to Selected Posts button 🙂
No prob.
Don't be afraid to ask about what to put into those Conditional Branch -> Script boxes!
Im sure Shaz will also fill us in on where it would be most appropriate to make such a request; it does semi-kind of fall into multiple categories, Events, Troubleshooting, Scripting, etc...
Since a Conditional Branch is an event command, it would go into VX Ace Support 😉