Doing Perchance.org things…

Links

  • 3 Posts
  • 22 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle








  • 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.











  • I’d recommend waiting for a couple of seconds before reloading/closing the page to make sure the image is ‘converted/saved’ on the chat. I tried clicking the keep then immediately reloading the page (even closing the page as soon as I clicked ‘keep’), but it managed to keep the image. Not sure what other factors might affect it saving.

    If you could provide a video demo of the problem with the console open, it would be helpful to see if there are problems with the code.