It looks like you're new here. If you want to get involved, click one of these buttons!
#Gender and Age Testing Set: gender = [|male |female] Set: gendermod = [@gendermod] Set: age = [@age] Set: AgeMod = [#{age} AgeMod] Table: Test The gender is {gender}. The gender modification is {gendermod}.\nThe age is {age}. The age modification is {AgeMod}. Table: gendermod [when] {gender} = male [do] 10 [else] 0 [end] Table: Age Type: Lookup Roll: 1d100 1-5:Teenage 6-15:Young Adult 16-55:Adult 56-75:Middle Aged 76-95:Old 96-100:Ancient Table: AgeMod Type: dictionary Default: 0 Teenage: 0 Young Adult: 10 Adult: 20 Middle Age: 30 Old: 40 Ancient: 50
Comments
So I went in and did exactly as you suggested and removed the spaces from the first table I wrote, but I'm still having the same problem. Here is what the console says upon running the table:
For reference, here is the latest version of the table code:
This uses the 'quiet' assignment (the == instead of just a to assign associated values in a table roll.
Remove the spaces like
What it was doing was including that leading space as part of the variable, and thus screwing up the table call. I'll have to think about whether or not that behavior should change. It'll depend on how the leading text in other elements is handled.