Perchance - Create a Random Text Generator
⚄︎ Perchance
This is a Lemmy Community for perchance.org, a platform for sharing and creating random text generators.
Feel free to ask for help, share your generators, and start friendly discussions at your leisure :)
This community is mainly for discussions between those who are building generators. For discussions about using generators, especially the popular AI ones, the community-led Casual Perchance forum is likely a more appropriate venue.
See this post for the Complete Guide to Posting Here on the Community!
Rules
1. Please follow the Lemmy.World instance rules.
- The full rules are posted here: (https://legal.lemmy.world/)
- User Rules: (https://legal.lemmy.world/fair-use/)
2. Be kind and friendly.
- Please be kind to others on this community (and also in general), and remember that for many people Perchance is their first experience with coding. We have members for whom English is not their first language, so please be take that into account too :)
3. Be thankful to those who try to help you.
- If you ask a question and someone has made a effort to help you out, please remember to be thankful! Even if they don't manage to help you solve your problem - remember that they're spending time out of their day to try to help a stranger :)
4. Only post about stuff related to perchance.
- Please only post about perchance related stuff like generators on it, bugs, and the site.
5. Refrain from requesting Prompts for the AI Tools.
- We would like to ask to refrain from posting here needing help specifically with prompting/achieving certain results with the AI plugins (
text-to-image-pluginandai-text-plugin) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?" - See Perchance AI FAQ for FAQ about the AI tools.
- You can ask for help with prompting at the 'sister' community Casual Perchance, which is for more casual discussions.
- We will still be helping/answering questions about the plugins as long as it is related to building generators with them.
6. Search through the Community Before Posting.
- Please Search through the Community Posts here (and on Reddit) before posting to see if what you will post has similar post/already been posted.
view the rest of the comments
Test result is not only unsuccessfully, actually:
Sorry I should have been more clear that the
[ANIMAL=lists.animal, COLOR=lists.color, ""]should go in the HTML of the generator that you want to use the lists in, not in thefurchancetxtgenerator. When you import a generator likefurchancetxt, only the lists are imported - the HTML offurchancetxtwill be completely ignored.And regarding the "cannot find generator" but it somehow works for
noungemeratpr: I think that's because you're importingnounalready (possibly indirectly - i.e. importing a generator that importsnoun)? The{import:furchancetxt}would only work if you have already imported it somewhere else. So you should either pre-import the things you want to use "dynamically", or use dynamic imports if there are too many things to pre-import (that may not be used very often):Also, I'm not sure if
list = {import:furchancetxt}will work at all in scratchpad. IIRC it only parses all-caps variables, but maybe you have changed that part, idk.I think the TL;DR here is that you'll want to just put
list = {import:furchancetxt}in yourai-furry-generatoron a new line in the perchance lists editor, and then put[ANIMAL=lists.animal, COLOR=lists.color, ""]at the top of the the HTML editor ofai-furry-generator. Then you can use[ANIMAL]and[COLOR]in the scratchpad.thank for the reply!!! However this is far from the goal that we can build list and sharing around like USB driver or SD card. If it involves with editing the code directly it's too hard for regular users.
Oh, maybe you mean that you want to allow users to write
ANIMAL = {import:my-animal-list}directly in their scratchpad (without it being pre-imported by your generator's code)? If so you could maybe use regex to replaceANIMAL = {import:my-animal-list}with something likeANIMAL = [dynamicImport("my-animal-list")], assuming you have imported https://perchance.org/dynamic-import-plugin already. You may want to check that theparseVariablescode in the t2i framework will be adjusted to support that, if it doesn't already. I think it should already support it, so only the regex transformation should be required (though I could be wrong).