klaas1979 / tablesmith-like

Use Tablesmith-like tables in FoundryVTT and create complex nested tables.
MIT License
3 stars 5 forks source link

Reseting a non-repeating group which is declared in another journal entry #12

Closed IrmatDen closed 2 years ago

IrmatDen commented 2 years ago

Describe the bug Following the fix in #11, I tried to reference the groups declared in another journal entry, and the parser seems chokes on the reset call or I misunderstand the syntax to use.

To Reproduce / Example Table Showing the Bug

The following assumes a journal named "motiv.tab" which contains this table:

;!MotivationNouns
1,test1
1,test2
1,test3

The main table can simply be (in, say, main.tab):

:Start
1,{Loop~3,[motiv.MotivationNouns]}{Reset~motiv.MotivationNouns}

Expected behavior Evaluating the table should result in some combination of all 3 test entries, eg test1test3test2

Additional context I'm using a subfolder for subtables, this isn't an issue for calls others than Reset it seems. But it could be worth mentionning.

klaas1979 commented 2 years ago

Reset was only implemented for the same file. Could be that you find more problems in using non repeating groups, as do not have used them myself and so the implementation is basic.

IrmatDen commented 2 years ago

Thanks for another fast fix :)