Perchance - Create a Random Text Generator

337 readers
3 users here now

⚄︎ 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.

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-plugin and ai-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.

founded 1 year ago
MODERATORS
1
 
 

For example, if you've made a world building religion generator, and you title it "The Arch Bible" or something like that (i.e. something that's more of a "brand" than a "description"), then people won't be able to use a web search engine to find it unless they already know its name. In other words, people don't search for "The Arch Bible" when they want to find a religion generator - they of course search something like "fantasy religion generator" or whatever - so make sure you put keywords like that in your $meta.title/$meta.description if you want to make it easy for others to find it.

Search engines heavily weight the page title in their search, so it definitely pays to have a $meta.title which appropriately summarizes what your generator does in a few words. It's fine to have something like "Fantasy Religion Generator - The Arch Bible" as your title - i.e. a description, plus a "brand". Just don't leave out the key descriptive terms.

I'm writing this post because I don't think people realize how the "popular" generators on Perchance actually tend to get popular - it's one of two things:

  1. (rare & temporary) The generator happened to go viral on social media somehow.
  2. (common & long-term) The generator's title and/or description was descriptive, and so random people around the world each day hit their page via a Google search, which can add up to thousands of visitors in just a few months if it's a popular "topic" that people search for.

Popular generators almost always get popular via #2, and #2 often eventually leads to #1 - i.e. people find it via a search engine, and then share it with their friends on social media, and then at some point (for whatever reason) it goes viral. I think people tend to incorrectly assume that #1 is the main factor in a generator's popularity (it can be, but it's rare).

TL;DR: Use appropriate descriptive terms in your title and description if you'd like your generator to become well known. Think about the sorts of keywords that people would type into a search engine to find your generator.

2
 
 

Welcome to the Perchance Community!

Perchance.org is a platform for sharing and creating random text generators.

This Lemmy community is for:

  • Asking for help with problems, issues, or requests about generators in Perchance
  • Sharing and showcasing your created generators, templates, plugins, or pages in Perchance
  • Starting friendly discussions about topics related to Perchance
If it is your first time in using Lemmy, please check out this message from Lemmy.World and the Support Page from Lemmy.World to get started on using Lemmy.

Other Community Links

Rules

Here are some rules in this community:

  • Please follow the lemmy.world instance rules.
  • 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 :)
  • Be thankful to those who try to help you.
    • If you ask a question and someone has made an 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 :)
  • Only post about stuff related to perchance.
    • Please only post about perchance related stuff like generators on it, bugs, and the site.
  • 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.

Posting

Here are some optional tags to add in your title to categorize the posts. These are merely tags, you still need to title your post effectively.

  • [Bug] - if you think you find any bug in Perchance, use this tag.
  • [Question] or [Help] - this is to denote that your post is a question or requesting for help
  • [Suggestion] - for any suggestions in Perchance
  • [Feedback] or [Appreciation] - for any feedback or appreciation to any generator or to Perchance in general.
  • [{Generator Category}] - Used to share any generator with the specified category
    • Text, Image, Template, Hub, Plugin, Preprocessor, Community/RP, Game, Experiment, Useful Generator
  • [Fluff] or [Non-Generator] - Non-generator posts but about Perchance
  • [Tutorial] or [Guide] - for any Perchance related tutorials or guides to help others

AI Plugins Posts

Here is a FAQ for the AI tools in Perchance.

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-plugin and ai-text-plugin) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?"

There are guides, tutorials, and resources on the internet that can be applied when prompting in the AI tools in Perchance.

We will still be helping/answering questions about the plugins as long as it is related to building generators with them.

If you need help in prompting, please post on the 'sister' forum at Casual Perchance

Posting from Mastodon

Feel free to checkout this post to know how to post in this Lemmy Community through Mastodon.


Getting Started with Perchance

To get started with Perchance, check out the Perchance Tutorial or the Beginner Tutorial at the Perchance Hub Learn Tab to get to know the website.

Asking for help

Feel free to ask for help but please check out these tips on searching for an answer:

  • Check the following pages, to see if your question has already been answered or talked about or a plugin has been made for it. We recommend using the browser's search function (ctrl+f) and searching for similar keywords to your question/problem.
  • If you didn't find anything about your problem there, feel free to search through the posts/articles here:
  • If you can't still find anything related to your problem, feel free to post a thread here.
    • Please title your post effectively.
    • Please provide a link to your generator with your attempts of solving the problem.
    • Try to explain what you want it to do and what example output it should be doing.
3
 
 

This would happen only in two ways, either the user ID is unique enough that when converted without being caught as a "bad" word in the process it turns into the ABCD visual tag, or after converted, the visual tag deemed to have bad words (or look exactly like a bad word), even after checking it more than one time, resulting in the tag falling back to the ABCD format.

I just deep dived into the comments plugin's user ID into visual ID converting algorithm behind the scenes, that's why I'm making a post related on this topic. Also, have you ever seen actual occurrences of tags like this happening on comments of generators? Share if you have one!

4
 
 

While updating an in-event generator for the ongoing Generator Manager Event, A Venture Poem Generator, I have tried to add the url-params-plugin to add a feature so users could disable glows on the poem for performance reasons. But when testing out the generator after saving, it doesn't work at all. Even when I test if that URL parameter exists at all, it still won't show the expected output. Whatever parameter I put into the URL, when I run [url.anyurlname], it outputs undefined instead.

I've done the same with my view counter experiment generator, and had the same issue. (Try visiting https://perchance.org/the-view-counter-experiment?name=Example, the greeting text above the tabs thing should output Hello, Example!)

This is more likely a bug with the plugin that for some reason fails to cache those URL parameters into the generator. When I try setting the url value to [Object.fromEntries([...new URL(window.location.href).searchParams.entries()])] in place of importing the plugin in that generator, that worked. And since I use two different browsers, both didn't work with the plugin imported.

5
 
 

I have 2 variables that I want the generator to randomly pick between existing. The generator already accounts for both these variables, that if one doesnt exist, to output 0 under its proper section, so that shouldnt be the issue.

How to I get it to do this?

6
 
 

I’ve noticed some users (seemingly randomly) get massive voting power in the text-to-image plugin gallery, i.e. their upvotes and downvotes matter far more than others and can single-handedly fling an image almost to the top of the trending page or make a trending image vanish to the abyss. This can help with turnover on the trending page, but a lot of the time it just leads to the “supervoter” spamming a bunch of similar images and flooding the trending page with their own images. Then, just as randomly, the supervote capability will go away and it’s back to their vote barely having any effect.

It’s obvious from watching the ai-text-to-image-generator gallery enough that not everyone’s vote is equal, and for a while I suspected shenanigans from botnets to people colluding with circles of friends to collectively upvote their stuff, but then I experienced being a supervoter and then it all made sense.

I was practically curating the ai-text-to-image-generator trending page myself for the last couple days, but now my votes don’t matter again. 😅

It seems unlikely this is a bug, though I’m curious why it was implemented if it’s intended behavior.

7
 
 

Hello, Im working on a generator and im trying to make this work. To explain my vision, I want r.roleBrawn to be added to s.subBrawnMod if s.subBrawnMod even exists, and if it doesnt, to instead just be added to 0, but I cant figure out how to format the syntax to make this work without doing not what I want it to do. Any help or advice?

8
 
 

cross-posted from: https://sh.itjust.works/post/21543982

Hello and welcome to the first Generator Manager Event ever hosted!

This is going to be a casual event that will be ongoing mostly during the times of my preparation for the huge 2.0.20.1 update, created in favor to increase the "spirit" and uprising interest in those kind of stuff to a point where I could finally be energetic enough to release the update, unlike the past few weeks where I planned the update much earlier and ended up getting delayed a lot due to massive business stuff struck around in real life. The big update turned out to be even more massive than I think would be because that's when I was aware that I wasn't going to release the update as planned and I'm going to have to set up lots and lots of things and re-wirings prior to the actual release of the update.

As the name implies, it's about an adventure, so go make some adventure/space themed generators to be submitted into this event!

Starts: 30 June 2024, 12:00:00 UTC

Ends: 14 July 2024, 12:00:00 UTC

Generator Rules:

  • Make any adventure/space themed generators, as long as it's not explicit or adult content
  • It's recommended to add some color in your generator! Maybe simply make the background colored, add some decorations or whatever you like to further glow up the generator.
  • You can submit your generators to this community as well. Make sure to submit after the event started and before it ended.

To add some spark into the preparation event, I want to mention a bit of thought I have left for the changelog of the big update: We'll be back regularly releasing some improvement updates to the generator hub page a few times every single month, and that'll happen right after we release this very exciting update! These follow-up updates will often star some massive improvements and rollouts of features planned to be in the 2.0.20.1 update that wasn't in the update afterwards, including the long-awaited dark mode and the re-aligned Home page, in the follow-up Generator Manager updates after that! So, don't miss the mark out if you're waiting for those really cool updates! (And the Event page will get a kind of an overhaul, too, for an even richer experience.)

Happy creating and stay together for the event! 🚀


See the Generator Manager Events here

9
 
 

Hi all! Total Perchance newbie here, so I sincerely apologize if this is obvious/already been answered. Been having fun tinkering with it, but got this weird bug...

I've got a bit of a scuffed loop set up to select a word for each letter input by the user. However, the output of filterList() isn't happy with my using selectOne on it, producing an extra two undefineds for some strange reason. I don't know if it's maybe related to the way I'm filtering the list or some other bug? Anyone know why this is happening/a better way to do it?

Thanks for all y'all's help!

10
 
 

I accidentally added 2 different $output without realizing it and now it's suck in a loop. I've tried the #debugFreeze method to try and remove this but it will not allow me to save even with the debugFreeze in action. I'm genuinely stumped and I can't even get the download function to work so I can just copy the code and reload it onto a new generator since I'm on mobile and the select all function is broken on my device

11
 
 

Here's the code in question:

For some reason, this is not evaluating correctly, and even when g DOES equal Male, it can still be selected. This is happening with other parts of the generator too. I've also tried putting it in ^[if (g != "Male") {1} else {0}] format, but that has the same issue.

Anyone have any ideas? I did try reloading the page just in case it was a stored info thing, but alas.

12
 
 

So I just decided to move to Firefox for the updating and managing generators stuff personally (although I might still use Edge for testing stuff) to further minimize the connection-stalling problem from happening ever again, and so I've been wondering if it's possible to move the admin login data (basically a list of generators that I just logged into admin on) and the notifications data (a list of generators and keywords I've listened to comment notifications from) into a different browser, just like importing browser data, in some ways? I want to keep things synced between two browsers and thinking of this for a while now.

I do have tried a few things such as transferring the localStorage of the comments-plugin.perchance.org (the central domain of Perchance comments plugin), and even also tried to transfer some of the cookies, and both didn't work well.

13
 
 

Just made a decorative plugin that adds a cool rainy effect (or ANY kind of rain effect) into a generator. Released after the 20.0k views special announcement, and soon before the staggering Generator Manager 2.0.20.1 update ultimately goes out...

There are all kinds of rains you can make from this plugin, such as:

  • Lava rain
  • Acid rain
  • Copper rain
  • Metal rain
  • Ocean rain
  • Golden rain

... and the list goes on. Just be creative with it.

Let it rain! 🌧️☔

14
 
 

I'm working on my first project using Perchance to create an RPG character generator. I want to add a feature where, if a generated character's race has subraces, there's a chance for a subrace to be generated as well.

For example, if the race "Elf" is generated, I want there to be a chance that it specifies "High Elf," "Wood Elf," or "Dark Elf" as a subrace. How can I implement this functionality in Perchance?

15
 
 

I hope to support the Arabic language in artificial intelligence generators, or use the Google translate API when entering descriptions and when outputting texts

16
 
 

I'm making a random generator that takes a bunch of customizable info, runs some random numbers, and then tosses out some random scenarios based on those. "What percent of the population is affected?" "What are they affected by?" Those things. I've learned how to make textboxes (I haven't learned how to make info not temporary and I just live in constant errors, now, because it shows an error every time there's an "undefined" box) and I've learned how to make multiple dropdown lists. However, when I try to attach outputs to them, it doesn't work. Attaching a button to it will randomize the output. I want to add a description, so when someone chooses "Option One" they get a short dialogue beside it to give them a feel of what it may be like. Currently, if I have "Option One" chosen and I press the button, the dialogue for Option Eight could appear or Option Three or Option Five just as easily as Option One.

Here's what the code itself looks like (BTW this is my first generator. I've used very basic HTML like embedding links and formatting for years and I'm getting into game design and learning how to use minor C++/Unreal Engine, but I've never used JS before)

17
 
 

`output Gender[gen = gender]Motif[m = motif.selectUnique (1,3).joinItems (",")]Rarity[ra = rarity.selectOne]Vibe(s)[if (ra == "UR") {[el = element.selectUnique (1,3).joinItems (",")]} else if (ra == "SSR") {[el = element.selectUnique (1,2).joinItems (",")]} else if (ra == "SR") {[el = element.selectUnique (1,2).joinItems (",")]} else {[el = element]}]Role[r = role.selectUnique (1,3)]gimmick[If (ra == "UR") {[g = gimmick.selectUnique (1,3).joinItems (",")]} else if (ra == "SSR" || ra == "SR") {[g = gimmick.selectUnique (1,2).joinItems (",")]} else {[g = gimmick.selectOne]|none}]ablitiespassive:[If (ra == "UR") {[p = passive.selectUnique (1,3).joinItems (",")]} else if (ra == "SSR" || ra == "SR") {[p = passive.selectUnique (1,2).joinItems (",")]} else {[p = passive.selectOne]|none}]main: [rang = range.selectOne] [attack]secondary: [rang = range.selectOne] [attack]showcase: {[rang = range.selectOne] [a = attack.selectOne]|[srang = showrange.selectOne] [sata = showattack.selectOne]}

motif Animal ({cat|dog|bear|bunny|horse|tiger|lion|leopard|other}) Flower Fungi Sea animal Circus Victorian Sci-fi Cyberpunk Fantasy Fairy tale Dreamy Abstract Artistic East asian({japanse|korean|chinese}) Mythological Art deco Bohemian Gothic Retro Retro Futurism Steampunk Baroque Minimalist Art Nouveau Surrealist Rococo Punk Tropical Military Western Harajuku Hallyu Hanfu Lolita Biker Popstar Cowboy Country Hip hop Ethnic African Witch Wizard Angelic Demonic insect ({butterfly|moth|beetle|bee|wasp|other}) Arancnid ({spider|scorpion|other})

element Cool Hot Flashy Cute Fresh Elegant Gorgeous ^[if (ra == "UR" || ra == "SSR") {10} else {1}] Edgy ^[if (ra == "UR" || ra == "SSR") {10} else {1}] Pure ^[if (ra == "UR" || ra == "SSR") {10} else {1}]

gender Male ^3 Female ^4 Nonbinary({Androgynous|Fem|Masc}) ^0.5

rarity UR ✦✦✦✦✦✦✦ ^0.5 SSR ✦✦✦✦✦✦ ^2 SR ✦✦✦✦✦ ^4 R ✦✦✦✦ ^6

role Support Tank DPS Healer

gimmick Self-healing Self-enhancer Stance Summoning Combo system Charge Debuffer ^[if (r == "Support") {10} else {1}] Buffer ^[if (r == "Support") {10} else {1}] Turn manipulation ^0.5 Ultimate State cast from hp

range AoE Splash Chain Single Multi Self ^[if (g == "Self-healing"||g == "Self-enhancer") {10} else {0}]

attack Heal ^[if (r == "Healer"||r == "Support") {10} else if (g == "Self-healing") {10} else {1}] Attack Debuff ^[if (g == "Debuffer") {10} else {1}] Buff ^[if (g == "Buffer") {10} else {1}] attack that heals attack that buffs ^[if (g == "Buffer") {10} else {1}] attack that debuffs ^[if (g == "Debuffer") {10} else {1}] heal that debuffs enemmy ^[if (r == "Healer"||r == "Support") {10} else if (g == "Debuffer") {10} else {1}] heal that buffs allies ^[if (r == "Healer"||r == "Support") {10} else if (g == "Buffer") {10} else {1}]

showrange Strong Aoe Strong chain Strong single Strong multi Strong self Strong splash

showattack Stance change {turn order change then [a = attack.selectUnique (1,3).joinItems (", ")]|turn order change} ^[if (g == "Turn manipulation") {10} else {0}] Domain creation Buff ^[if (g == "Buffer") {10} else {1}] Debuff ^[if (g == "Debuffer") {10} else {1}] Ultimate state ^[if (g == "Ultimate State") {10} else {1}] Attack

passive Increases damage depending on condition self-heals depending on condition ^[if (g == "Self-healing") {10} else {0}] does a counter depending on condition can change turn order depending on condition abilities change depending on stance has stacks which do certain things and stack up depending on condition during certain things charges {main skill|basic attack|second skill|showcase} Taking large damage boosts turn order Increases evasion after each successful hits skills have a chance to not consume flow skills can overcharge dealing area damage share a portion of healing received with the nearest ally ^[if (r == "healer") {10} else {0}] attacks of a chance to stun the target `

So here's my code. Says there's an issue with the syntax where '{' ruins the input. Would love if somebody took a look and find the problem curly because otherwise I'm beat.

18
 
 

This is yet another super weird bug I've discovered recently when creating a generator update. Tried on the generator first (while working on the update), but when I try on the Programmatic Get/Set/Submit Example, running the update() function into the testing panel seems to trigger this bug. I also got an error too, which writes as follows:

DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
    at ___updateTemplatedNodes (https://210cadb7fe3ad106894dfb4649d8ce79.perchance.org/programmatic-get-set-submit-comments-plugin-example?__initWithDataFromParentWindow=1:470:30)
    at update (https://210cadb7fe3ad106894dfb4649d8ce79.perchance.org/programmatic-get-set-submit-comments-plugin-example?__initWithDataFromParentWindow=1:412:5)
    at eval (eval at <anonymous> (https://perchance.org/lib/perchance/evaluateSquareBlock.js?v=3ds06dgd27d:66:38), <anonymous>:1:12)
    at Proxy.<anonymous> (https://perchance.org/lib/perchance/evaluateSquareBlock.js?v=3ds06dgd27d:66:38)
    at __evaluateSquareBlock (https://perchance.org/lib/perchance/evaluateSquareBlock.js?v=3ds06dgd27d:66:77)
    at __evaluateText (https://perchance.org/lib/perchance/createPerchanceTree.js?v=21ads3j533dgddldddfd337132fdwf3:1386:20)
    at https://210cadb7fe3ad106894dfb4649d8ce79.perchance.org/programmatic-get-set-submit-comments-plugin-example?__initWithDataFromParentWindow=1:536:44

And that "nullifies" the com object which of course renders the comments section's programmatic submission ability to stop working:

So, if you've tried to implement the programmatic interaction features inside of the minimal template (or any generator that has a practical "randomize" button that executes the update() function), chances are you've probably already stumbled upon this bug.

19
 
 

Yeah, the special announcement has finally been released, this time I decided to put it into the Announcements section of the Generator Manager instead of creating a whole new generator page unlike the previous two big announcements. Asides from the usual generator updates, the announcement will also be filled with some "internal" updates for adjustments with my current workflow to make my daily job on updating and managing generators even easier to manage and more flexible in the future (hopefully).

Go check out to see what's to be expected! And to not forget, there'll still be some new projects and stuff (such as new generators and plugins) as usual.

20
 
 

There seems to be a overflow issue on the comments-plugin's settings and fullscreen buttons.

21
 
 

Hi everyone

Do you know if it's possible to easily copy the seed of an image without having to click on "Info" then include seed" and then copy the seed?

Thanks for reading

22
 
 

Hello y'all,

Does anyone know how to check if a perchance generator name exists on perchance?

Context:

I've added a feature to allow users to load their own datasets into the fusion-gen. The code is above, but the feature itself looks like this:

I'd like to be able to check if the string matches a generator that exists on perchance. Does anyone know the name of that function?

23
 
 

Hello everyone,

Do you know how to change the color around the fields or delete them? (See screenshot circled in pink)

It all depends on the background color. I find this gray color spoils everything.

24
 
 

Just recently, I've tried to add an option that disables loading all comments upon reload of the page (with the disableCommentsLoad option) but hasn't been quite possible yet ever since. Been stuck on this entire frame loading problem in my "under-construction" advanced comments plugin demo and it's been really hard to resolve as of right now. I also added a ?disableCommentsLoad=true URL parameter into the generator page so that it disables reloading all comments directly after page load.

It would also be great if that feature would actually be implemented into the comments plugin itself. Could be very handy to avoid situations like the "connection stalling" problem (see this post and the comment), and just to overall reduce unnecessary background connections, especially if you're on a browser that doesn't have a "memory saver" feature (essentially to "sleep" tabs like that to stop all the connections in the background).

But yeah, this time I wanted to make a post instead of troubleshooting the problem myself to see what solutions from other people could be (and especially for the known issues on the project). 🙂

Here's a demonstration from the thumbnail (with the disableCommentsLoad option enabled).

25
 
 

i have seen other AI image generators that can produce images with the help of you uploaded image. I have a photo of mine and i want to make some changes to it using the perchance AI generator.

Is there any way that i can upload the image and tell the AI to make the changes to it or use it to generate similar images?

view more: next ›