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
I think I commented on this on your Reddit post?
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.