Cool, thanks for stepping up Erol.
toggle quoted message
Show quoted text
You need to treat either the first or last language as a special case,
in one way or another. One possibility:
_|numLang={Dice~1d6}| {Bold~I speak %numLang% Languages: }
_[Culture.Language]{Loop~{Calc~%numLang%-1},, [Culture.Language]}{CR~}
This produces the first language, with any additional languages then
being added as (comma space LanguageName)
A remaining flaw is that you can get "I speak 1 languages:..."
So for additional cleanup you need to use the PluralIf function.
Erol K. Bayburt
ErolB1@...
On 4/3/2020 10:30 AM, scott@... wrote:
> Hey folks,
>
>? ?????????????? I have been TSing, and I think this question was
> answered prior, but I could not find it.
>
> I roll for a random # of languages then pull from the list. In the
> string layout, I put a comma in there; it prints after each item. Is
> there another way to do this, so you don¡¯t end with a trailing comma?
>
> _|numLang={Dice~1d6}| {Bold~I speak %numLang% Languages:}
> {Loop~%numLang%,[Culture.Language], }{CR~}
>
> *I speak 3 Languages:* Common, Dwarf, Elf,
>
> Scott
>
>