this post was submitted on 29 Apr 2024
6 points (100.0% liked)

Perchance - Create a Random Text Generator

465 readers
7 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
top 5 comments
sorted by: hot top controversial new old
[–] Alllo 1 points 7 months ago* (last edited 7 months ago) (1 children)

@[email protected] here you go: https://perchance.org/l5eodd9qir#edit There is your thing and these are what is edited:

dropdown = {import:dropdown-list-plugin-v1}

playerclass = mage //setting a default

dropdownlist
  variable = playerclass
  list
    mage
    priest
    wanderer
    fightingman
    thief

classgearpack
  some lockpicks in a [leatherstyle] tool roll<br> [thief] ^[playerclass == "thief"]
  well used whetstone<br> [fightingman] ^[playerclass == "fightingman"]
  [leatherstyle] book with arcane writing<br> [mage] ^[playerclass == "mage"]
  [leatherstyle] book with religious iconography<br> [priest] ^[playerclass == "priest"]
  map of the area, incomplete but fairly detailed<br> [wanderer] ^[playerclass == "wanderer"]

that stuff in classgearpack makes it so it only does that option if playerclass is specific things. did i make the rest of it structurally understandable enough? anything else i should add?

[–] dlcnate1 2 points 7 months ago (2 children)

wow, that looks a lot easier than the stuff i tried to do...

that's working like a charm, now is there a way i can have a random option in there, that doesn't call for a specific one?

[–] Alllo 1 points 7 months ago

done. just add an entry in the list named random or Random or RaNdOm or any capitalization of random and try it :)

if you want it some other way like to be able to custom name the option please say! :)

[–] Alllo 1 points 7 months ago* (last edited 7 months ago) (1 children)

also just made an ability to set an initial selection and about to add a 'remember' option to remember what it was last time the page was visited

so optionally something like this tho u dont have to use any of the extra stuff:

dropdownlist
  variable = playerclass
  list
    mage
    wizard
    sorceress
    enchantress
    witch
    priest
    cleric
    druid
    warlock
    saint
    paladin
    random
  initial = saint
  remember = true

anyway, doing remember now and say anything else you want

[–] dlcnate1 2 points 7 months ago

thanks, this has been very helpful and the generators are much better now because of it.