Announcement

Collapse
No announcement yet.

Conditional Choices ready for testing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • mizal
    replied
    Looking forward to playing around with this in a day or two, just as soon as I can get through some promised proofreading for someone else.

    Leave a comment:


  • severenz
    started a topic Conditional Choices ready for testing

    Conditional Choices ready for testing


    1. New "variables" view for a story - admin only. Shows all values for all variables in story. And shows all variable sets by room.
    2. For each choice 2 additional fields are shown - Variable and Value.
    3. Choice shows when the specified variable is set to the value specified.
    4. If variable name is set, but value is blank, then the choice will show as long as the user has a value for that variable.
    5. You can combine multiple values separated by comma i.e. "knife,sword" if variable value was knife OR sword, then the choice would show
    6. If there are multiple variable sets for the same name in the same room, then the last one sticks.
    7. Variable names are case insensitive
    8. No commas or square brackets are allowed in values
    9. Preceding and trailing white space will be ignored in values
    10. Multiple spaces in values will be treated as single space in values
    11. At least one non-conditional choice must exist for each room to prevent a room from not having any choices

    If some of you could play around with this, try to break it, make sure it does what I claim it does, it would be greatly appreciated.

    I will combine all of the notes from these last two topics into a help file.

    To Do / Other Ideas - please opine:

    12. Add help file / faq / instructions on variables
    13. If no variables exist in a room (or editing new room) have variable fields hidden by default? ("Use Variables" link would make them appear)
    14. Allow > 5 choices per room
    15. Just like loose ends, show a view of all choices that will never show because there is no variable set with that value. Please note that while this would likely be useful, it would not catch all conditional choice errors e.g. some paths would cause a variable to never be set thereby making a choice impossible to show. But, it would catch the obvious ones.
    16. Allow a NOT EQUAL TO condition - this might be overkill and tricky since I allow multiple value conditionals
    17. Admin variable view - shows all variables as they are reading/navigating through story.
    18. Admin - show all choices and visually indicate
Working...
Do Not Sell My Personal Information