You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Basic Usage.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,12 @@ Prompting is, primarily, just text input. However, there are some special option
80
80
- This random is seeded by the main seed - so if you have a static seed, this won't change.
81
81
- You can use `,` to separate the entries, or `|`, or `||`. Whichever is most unique gets used - so if you want random options with `,` in them, just use `|` as a separator, and `,` will be ignored (eg `<random:red|blue|purple>`).
82
82
- An entry can contain the syntax of eg `1-5` to automatically select a number from 1 to 5. For example, `<random:1-3, blue>` will give back any of: `1`, `2`, `3`, or `blue`.
83
+
- You can repeat random choices via `<random[1-3]:red, blue, purple>` which might return for example `red blue` or `red blue purple` or `blue`.
84
+
- You can use a comma at the end like `random[1-3,]` to specify the output should have a comma eg `red, blue`.
85
+
- You can use the syntax `<wildcard:my/wildcard/name>` to randomly select from a wildcard file, which is basically a pre-saved text file of random options, 1 per line.
86
+
- Edit these in the UI at the bottom in the "Wildcards" tab.
87
+
- You can also import wildcard files from other UIs (ie text file collections) by just adding them into `Data/Wildcards` folder.
88
+
- This supports the same syntax as `random` to get multiple, for example `<wildcard[1-3]:animals>` might return `cat dog` or `elephant leopard dog`.
83
89
- You can use the syntax `<repeat:3, cat>` to get the word "cat" 3 times in a row (`cat cat cat`).
84
90
- You can use for example like `<repeat:1-3, <random:cat, dog>>` to get between 1 and 3 copies of either `cat` or `dog`, for example it might return `cat dog cat`.
85
91
- You can use `<embed:filename>` to use a Textual Inversion embedding anywhere.
Copy file name to clipboardExpand all lines: src/wwwroot/js/genpage/params.js
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1007,13 +1007,20 @@ class PromptTabCompleteClass {
1007
1007
this.registerPrefix('random','Select from a set of random words to include',(prefix)=>{
1008
1008
return['\nSpecify a comma-separated list of words to choose from, like "<random:cat,dog,elephant>". You can use "||" instead of "," if you need to include commas in your values. You can use eg "1-5" to pick a random number in a range.'];
1009
1009
});
1010
-
this.registerPrefix('repeat','Repeat a value several times',(prefix)=>{
1011
-
return['\nUse for example like "<repeat:3,very> big" to get "very very very big", or "<repeat:1-3,very>" to get randomly between 1 to 3 "very"s, or <repeat:3,<random:cat,dog>>" to get "cat" or "dog" 3 times in a row eg "cat dog cat".'];
1010
+
this.registerPrefix('random[2-4]','Selects multiple options from a set of random words to include',(prefix)=>{
1011
+
return['\nSpecify a comma-separated list of words to choose from, like "<random[2]:cat,dog,elephant>". You can use "||" instead of "," if you need to include commas in your values. You can use eg "1-5" to pick a random number in a range. Put a comma in the input (eg "random[2,]:") to make the output have commas too.'];
1012
1012
});
1013
1013
this.registerPrefix('wildcard','Select a random line from a wildcard file (presaved list of options)',(prefix)=>{
this.registerPrefix('wildcard[2-4]','Select multiple random lines from a wildcard file (presaved list of options) (works same as "random" but for wildcards)',(prefix)=>{
this.registerPrefix('repeat','Repeat a value several times',(prefix)=>{
1022
+
return['\nUse for example like "<repeat:3,very> big" to get "very very very big", or "<repeat:1-3,very>" to get randomly between 1 to 3 "very"s, or <repeat:3,<random:cat,dog>>" to get "cat" or "dog" 3 times in a row eg "cat dog cat".'];
1023
+
});
1017
1024
this.registerPrefix('preset','Forcibly apply a preset onto the current generation (useful eg inside wildcards or other automatic inclusions - normally use the Presets UI tab)',(prefix)=>{
0 commit comments