Replies: 2 comments 2 replies
-
Apologies for only responding now - I completely missed this. Currently, the script automatically de-duplicates wildcards files. There has been another request to manipulate the probability of a wildcard being chosen. Could you please explain your use case? I would like to understand whether it is general enough to implement it as a feature. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
First of all, thanks for making this extension, it's great!
I've seen this issue which is somewhat similar to what I'm trying to do: #57
I have no coding knowledge so I'm not sure if I'm way off base but essentially, I'm trying to control probability of certain colours in a wildcards text file by having multiple identical copies of the same word in the list, but as far as I can tell, the dynamic prompt code is smart enough to account for duplicates, and so it isn't working the way I'd hoped.
For example, I have a list of colours like this:
brown
green
red
yellow
blue
purple
pink
but I want most of the results to be brown or green, so I made a list like this:
brown
brown
brown
brown
brown
green
green
green
green
green
red
yellow
blue
purple
pink
I hoped that 2/3rds of the results would be brown or green, but it isn't hitting that ratio.
I've tried the Jinji script and wrote it all out in that, but then when I activated the Jinji script button in the dropdown, it made the other wildcard calls in the prompt not work. Is there a prefix or other way to make it call wildcard text files while in Jinji mode without having to have all the lists be formatted in the Jinji code, as some of the wildcards lists are really long?
or is there a way I can edit it to make your script not account for if there are duplicates in the list?
Really sorry if I've not explained this, and it's not a big deal if it won't work.
Beta Was this translation helpful? Give feedback.
All reactions