Bits of requests fulfilled (b205)

b205

* Select(), SelectX()

Select() lists can now use the new #tags() directive for list items. This is used similarly to #codes(), in that it’s just tacked on to the name of a list item, and GCA will parse it out and extract the contents. If you use both #tags() and #codes() remember not to use a comma between them.

#tags() allows you to replace the contents of any tags on the library item being referenced, before the item is sent to the Select dialog. List all the tags desired inside the #tags() parens, bearing in mind the usual nesting requirements.

This new support allows you to customize items without having to use #newitem, if the item is one that can be easily based on an existing item. Replace name(), nameext(), initmods(), whatever you need–just remember that the tags must be Library tags because the items shown in Select are Library items until added to the character.

For example, if you have a Select() with a list() like this:

list(_
SK:Performance #tags(nameext(Singing), page(TESTING))#codes(upto 16, downto 10),_
SK:Photography #tags(name(Holography), page(TESTING))#codes(upto 16, downto 10)_
)_

the user will be presented with a list of options that includes “Performance (Singing)” and “Holography/TL” (because Photography is a /TL skill). Aside from the name change and the new TESTING page number, everything else for those two skills will be identical to Performance and Photography, respectively..

List items can now also use the new #note() directive to specify a special note to include on the Library list itself. This special note will be displayed directly under the trait name on the list, and that list entry will be taller to accommodate it.

* Functions

Added the @sumlist() function, which returns the sum of the values in a comma separated list. Each value in the list may be a fenced Solver-enabled expression.

Added the $modifiers() function, which returns a list of the modifiers applied to the trait. This is probably only useful with displaynameformula(), but that’s why I added it. Use $modifiers() without parameters to get the usual captions (shortnames), but *without* values, enclosed in parentheses. Use a comma separated list of parameters to modify this behavior: ‘captions’ explicitly sets captions (the default) while ‘fullnames’ sets fullnames instead; ‘values’ will include the values of the modifiers; and ‘noparens’ will turn off the enclosing parens. (Note that if there are no modifiers for the trait, the return value will be empty, not a set of empty parens.) Example: $modifiers(values, fullnames) will return the full names of the modifiers along with their values.

* Adds(), AddsOrIncreases()

When a trait is being added, and no name extension is provided, and GCA looks for versions with name extensions included, and finds some, it will pop up a dialog asking the user to choose which one they want. GCA does this even if only one option is found. Now, GCA will automatically add the found selection if only one is found.

* Options

Added some additional error traps to try and catch weird cases where something is crashing GCA because some option is set wrong or maybe missing.

Damage mini-modes were supposed to be On by default, but were actually Off by default. They are now On by default, as intended. If you want them disabled, you’ll have to go into Options, Experimental Features, and turn them off again.

* Edit Traits

If displaynameformula() is being used, a section near the top, just above applied modifiers, should be displayed showing the current Display Name and the current displaynameformula(). You can edit the displaynameformula() there. You will need to Add Tag displaynameformula() or turn on ‘Show all fields’ to show the display name fields if they’re not visible.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.