[Content Patcher] Add a way to parse tokens in Targets field before splitting them lexically.
drbirbdev opened this issue · 1 comments
drbirbdev commented
The following allows patching to two character dialogues at once:
"Changes": [{
"Action": "EditData",
"Target": "Character/Dialogue/Jas, Character/Dialogue/Vincent",
"Entries": {...}
}]
But this doesn't work
"DynamicTokens": [{
"Name": "AllChildren",
"Value": "Character/Dialogue/Jas, Character/Dialogue/Vincent"
}],
"Changes": [{
"Action": "EditData",
"Target": "{{AllChildren}}",
"Entries": {...}
}]
I think because Target gets split on commas (excluding commas in tokens) before evaluating tokens.
I think it'd be useful to have some way to evaluate tokens in the Target field before splitting. That seems like a more reasonable default even. I'm not sure what use-case there is for doing it in the current order.