Updates to Disabled Choice Conditions

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

I have good news and bad news.

I’ve updated the Disabled Choice Conditions plugin to improve efficiency, compatibility, and most importantly, more flexibility and ease-of-use when it comes to disabling choices.

Previously, if you wanted to use conditional branches to disable choices, you would have to start by adding a plugin command or a comment indicating which choice to disable, followed by the conditional branch. Take a look:

disablingChoicesMVEx4

Which has a number of limitations:

  1. It only supports one conditional branch (so you can’t easily nest your conditions)
  2. If you wanted to disable more than once choice at a time with the same condition…sorry, make another conditional branch with the exact same condition
  3. What if you wanted to disable AND hide a choice? (yes, new plugin info leak)
  4. Those comments are OK, but not completely necessary
  5. When I switched to a plugin command, it made even less sense. Take a look:

disablingChoicesMVEx6

Rather than doing all this, I’ve changed it so that the plugin command itself will disable a choice, and the conditional branches are up to you to figure out how to use it. This is just normal eventing, except you’re using a plugin command to disable a choice.

Take a look at the new and improved way of disabling a choice:

Now, when you say “disable_choice”, you are actually disabling a choice. Not, telling the engine that you want to disable a choice, and that conditional branch under it is the condition to use.

Unfortunately, if you have been using the conditional branch method, you will need to change where the plugin command is placed. But beyond that, that’s about the only change that needs to be made!

For those that are using script calls, nothing has changed: you can just use the script call as usual.

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

You may also like...

Leave a Reply

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax