From: JIRA (f. J. D. ) <ji...@pc...> - 2011-01-12 20:18:10
|
[ http://jira.pcgen.org/browse/NEWTAG-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11827#action_11827 ] James Dempsey commented on NEWTAG-246: -------------------------------------- We should keep the grouping of variables separate from defining the variable. This allows variable lists to be created at any time, not just when the variable is created. In that case you would not want to use DEFINE as the tag, but maybe just VARLIST. The word type should not occur in the syntax. While this would make proposals like the variable choosers neater, I don't think it will do much to stop the wrong variables being bonused etc. > DEFINE - Add 'VARLIST=' or 'VARTYPE' > ------------------------------------- > > Key: NEWTAG-246 > URL: http://jira.pcgen.org/browse/NEWTAG-246 > Project: New Tag > Issue Type: Modify Token > Components: LST Tag > Reporter: Andrew Maitland > > After reviewing the proposals NEWTAG-90 and NEWTAG-91, it would seem prudent to add more functionality to keep the list of vars returned manageable and prevent accidental bonusing and really drive the Help Desk monkeys crazy. > Today - 'DEFINE:Blah|0' is the standard, but perhaps 'DEFINE:VARLIST=x|Blah|0' might be a better idea. It would mean redefining several vars, but it would prevent the wrong vars from getting touched, things that would throw many variable numbers we rely on being precise out of whack. Since I know it will happen, we should include the ability to define multiple lists, I think period separated is acceptable in this instance? > I like VARLIST but VARTYPE is also acceptable to me. I'll use VARLIST in the following examples for now. > DEFINE:VARLIST=x.x|y|z > x = Text (Defines the LIST/TYPE this Var belongs to) > z = Text (Defines the Variable Name) > z = numerical or formula (Defines the starting Variable Number or Formula) > Example: > DEFINE:VARLIST=AbilityDC|BigBadMonsterDC|0 > Sets the BigBadMonster DC to 0 and assigns it to the 'AbilityDC' list > DEFINE:VARLIST=AbilityDC.MonsterAbilityDC|SecondBigBadMonsterDC|0 > Sets the SecondBigBadMonster DC to 0, and assigns it to the 'AbilityDC' and 'MonsterAbilityDC' lists. > Usage for the New Choose Proposal would: > CHOOSE:VARIABLE|VARLIST=AbilityDC > Would return any Variable listed as 'AbilityDC' > BONUS:VAR|%LIST|2 > Would add 2 to the Chosen Variable Name. > NOTE: Backwards compatibility would be maintained as 'VARLIST=' is an optional tag. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.pcgen.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |