Custom Set Dictionary Poll
Iโm thinking of a custom ability dictionary for a tool in my shortcut.
Hereโs the gist:
- You pick a variable to be the input (must be a variable, either iPad or self).
- Itโs like a JSON get value; each input gives one specific output. Each input/output is created in a webpage that allows you to edit the input and output numbers or text. Based on the input, the output will either be โset textโ, โset imageโ, or โset variablesโ.
- These results will act like a JSON structure (key value pairs) as mentioned โ you can then put the newly made custom ability (user chooses name) into the project and it will convert the input variable into a certain ouput (which can be a value or action).
JSON Example:
{
"1": [0, "Hello", "#6E6"], //text: hello, color: lime
"2": [0, "World", "#000"], //text: world, color: black
"3": [1, 0], //set image, character: monkey
"4": [2, "var", 123] //output variable: number
}
This would be the output.
You will be able to import a JSON file like the example above or you can use the guided editor that the web browser provides. You will also have the option to export JSON from the editor to save your work, but importing from a project ability will not be an option.
โWhy only output variables + those two actions?โ
- Everything else can pretty much be controlled by that variable. Advanced use cases such as variable for every action will also be a functionality by raw json code script for each.
โ please ask more on that, I understand itโs a little confusing โ
Useful for:
- Game Dialogs
- Conversions
- Variable to set image
- etc.
Equivalent of: using JSON to execute code
Hey, @Good-Es, have a look at this. Also, lmk if you want a sketch of what the dictionary editor could look like or if you have questions or suggestions.
- Fantastic idea
- Petrichor should have made your webplayer fix
- Bad idea
0
voters
Oh and this goes under the โabilitiesโ trait to modify in the project.
