View Full Version : Disad pulldowns
Heroman
Apr 29th, '03, 05:57 AM
Just a little curious...
For disads, it seems like the first pulldown's selection has an open parenthesis in it when selected. If you open the list, the currently selected item has a parenthesis in the list. If you change selections, the new selection has the parenthesis. Just seemed a little wierd and I saw it on DF ('Limitation Occurs') Physical Dis (Concealability) and Psycho Dis ('Situation is')
Simon
Apr 29th, '03, 06:23 AM
Yup...some of those will appear a bit odd when editing the Disad.
The issue is that the Writers' Guidelines require that some of the Adders appear inside of a single set of parentheses, and that others remain outside of the parens.
For v1, since disads are completely generalized, this required a little bit of application logic. Basically, disads will count the number of opening parens that occur and then insert the appropriate number of closing parens.
Any input (not Adders, just generalized input) is placed immediately after the display, followed by the Adders in the order in which they are declared.
So, for example, you have the following on Psyche Lim:
Display: Psychological Limitation
Situation Is: (Uncommon
Intensity Is: Moderate
Limitation: Fear of French poodles
Note the opening (unmatched paren) on "Situation Is".
This will result in the following output:
Psychological Limitation: Fear of French poodles (Uncommon; Moderate)
Note the closing paren that was inserted at the end of the disad to finish the unclosed paren that was placed before Uncommon.
It's a little bit screwy right now and is likely something which I will be re-addressing in v2, but for the time being it works.
Powered by vBulletin® Version 4.2.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.