Tuesday, May 25, 2010

Coding coding coding

I am building a turn-builder tool for a role-playing game called Midgard. Each turn has up to 30 actions. Each action has up to six values, and up to now a big problem has been players submitting turnsheets with tons of mistakes (values in the wrong fields, missing required values...). The turn-builder only shows you valid options for the choice you made in the first field, and then only valid options for what you chose in the second field, and so on, until you have enough valid stuff for the action to be ready to submit.

The second through sixth values for an action may need a text box, a number stepper, a picklist, a  combo box (that's a picklist where you can add something you don't find in the list), or a checkbox. That's a max of 3125 combinations of controls, and then sometimes the values are required and sometimes they are optional.

I need to say this from time to time to remind myself why I need to write so MANY lines of code. Thank you for listening.

No comments: