this post was submitted on 21 Nov 2024
3 points (100.0% liked)

Perchance - Create a Random Text Generator

458 readers
9 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
 

I'm helping my friend make a turn-based battle game called Emoji Battles, and I'm attempting to make several things within the Perchance editor. I'm hoping for the simplest ways to implement these features into the sheet without too much hassle. I'm learning how to use more advanced features here, but I am not nearly experienced enough to implement these myself. If this is too much to ask, please let me know.

  • Luck system Most chances in the game function on a coin-flip system, being either a land or a fail. This functions on percentages, (ex: land^25, fail^75) The game has a luck system, where the amount of luck you have multiplies your chances. I would like to figure our a way to have a number you input multiply your chances by a specific increment, (ex: if luck = 0, 25% chance to land, if luck = 2, 50% chance to land)

  • Save/reset system I would like for the user to have their values automatically saved upon exit, so they will stay when they return. This also makes room for a reset system, where you can automatically revert to the default values. If this isn't possible in Perchance, I want to add a way to export your data, so you can load it in at a later time.

  • Emoji deck/mana system This one is by far the most ambitious, but I am praying I can get it done. Every player has a deck with 8 emojis total, each with an amount of mana. Every usage of an emoji depletes 1 mana, and the mana regenerates by 0.5 every turn without buffs. I am hoping for the player to be able to input their emoji deck, and keep track of the mana they have. Since it's difficult to keep track of manually, I want to add a button that increases mana by a specific increment whenever it's pressed. I have two ideas for how this would work. Either you input the emoji, the mana count, and the max amount of mana in their own unique boxes, or the generator has data on every emoji in the game, and you can put in just the emoji list and have the generator know the maximum mana count. The first option is by far the easiest solution, but the second one makes it easier to randomly pick between an emoji in your deck.

I am hoping anyone here is willing to help me on this, this is an advanced project and I'm grateful for any help I can get. :)) Here's the link for the original project: https://perchance.org/7f73z6hd9a#edit

top 2 comments
sorted by: hot top controversial new old
[–] wthit56 1 points 2 days ago

I think I commented on this on your Reddit post?

[–] VioneT 2 points 4 days ago* (last edited 4 days ago)

I would like to figure our a way to have a number you input multiply your chances by a specific increment, (ex: if luck = 0, 25% chance to land, if luck = 2, 50% chance to land)

You could use Dynamic Odds by having a variable to multiply the odds e.g.:

output
  Nice ^[25 + (luck * 12.5)] 
  // luck = 0, odds = 25 + (0 * 12.5) = 25
  // luck = 1, odds = 25 + (1 * 12.5) = 37.5
  // luck = 2, odds = 25 + (2 * 12.5) = 50
  Sad ^75

Save/reset system I would like for the user to have their values automatically saved upon exit, so they will stay when they return. This also makes room for a reset system, where you can automatically revert to the default values.

You could check out remember-plugin for this. It would save in your browser's local storage (so the data would be device bound).

For the third one, you could probably give an example 'emoji list' with mana, then an example scenario that uses them.