Replies: 1 comment
-
This isn't possible currently, but I'd recommend creating an issue here on github, as I agree this would be useful, and is also pretty easy to implement. If you need it quick, I think you should be able to just add this line: input = Dialogic.VAR.parse_variables(input) Into |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there, is there a way to use variables to set the extra data for a layered portrait?
If this was possible, we could have the user choose for example a hairstyle, save this as a variable and then use this consistently for the character.
Any ideas how to solve this?
My workaround is with if-clauses but that bloats the script massively:
if {Hair} == "red":
join you right
elif {Hair} == "dark_blonde":
join you right [extra_data="set Hair/dark_blonde"]
elif {Hair} == "blonde":
join you right [extra_data="set Hair/blonde"]
each time the character appears...
and an additional variable will multiply the clauses...
Thanks for your consideration
Beta Was this translation helpful? Give feedback.
All reactions