1. Hello!

    First of all, welcome to MapleLegends! You are currently viewing the forums as a guest, so you can only view the first post of every topic. We highly recommend registering so you can be part of our community.

    By registering to our forums you can introduce yourself and make your first friends, talk in the shoutbox, contribute, and much more!

    This process only takes a few minutes and you can always decide to lurk even after!

    - MapleLegends Administration-
  2. Experiencing disconnecting after inserting your login info? Make sure you are on the latest MapleLegends version. The current latest version is found by clicking here.
    Dismiss Notice

Maplelegends Scrolling Sim

Discussion in 'Community' started by Hyoon, Apr 4, 2023.

  1. Hyoon
    Offline

    Hyoon Zakum Retired Staff

    1,384
    691
    465
    Dec 1, 2015
    10:17 AM
    Heyo Hyoon here,

    I don't play anymore, but here's a little project I made.

    https://scrollsim.netlify.app

    Have fun, enjoy.
    If you would like to make recommendations or found any bugs feel free to DM me.
     
    • Great Work Great Work x 16
    • Informative Informative x 1
  2. Kohi
    Offline

    Kohi Slime

    15
    7
    25
    Feb 2, 2020
    Male
    10:17 AM
    kohi
    Chief Bandit
    85
    I wa slooking for this specifically caus eI suepr wanted to scroll thank you so much <3<3<3
     
  3. LeonardoJF
    Online

    LeonardoJF Zakum

    1,899
    352
    460
    Jun 16, 2021
    Male
    Rio grande do Sul - BR
    11:17 AM
    ItzLeo
    Paladin
    200
    Favela
    it triggers me
     
    • Agree Agree x 1
  4. kiwiz
    Offline

    kiwiz Skelegon

    909
    562
    413
    May 7, 2018
    10:17 PM
  5. OP
    OP
    Hyoon
    Offline

    Hyoon Zakum Retired Staff

    1,384
    691
    465
    Dec 1, 2015
    10:17 AM
    Yeah for whatever reason it works if you open the link through discord.
     
  6. kiwiz
    Offline

    kiwiz Skelegon

    909
    562
    413
    May 7, 2018
    10:17 PM
    I meant the drag and drop. But it’s fine, don’t have to spend your time to do it.

    While at it, wana ask if I could use your success and fail animation for any possible future projects I might do?
     
  7. MGTOWMONEY
    Offline

    MGTOWMONEY Orange Mushroom

    37
    7
    43
    Mar 30, 2020
    Male
    9:17 AM
    MGTOW
    Warrior
    Hi, great app!

    I tried the 10% scroll, and it feels "off".
    I tested it multiple times with sample size of 50, and usually get 10+ (20%+).
    Can you double check the code and make sure 10% is actually 10%, not 20% or 30%?
     
  8. WickedLama
    Offline

    WickedLama Snail

    1
    0
    10
    Dec 24, 2017
    Male
    5:17 PM
    WickedLama
    Spearman
    50
    Hi,

    After inspecting the source, I think there's a bug in your code:
    upload_2024-1-1_15-21-55.png

    Math.floor(Math.random() * 11) can actually give you 11 values and not just 10 which are: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
    This means that checking if scrollChance is less than 2 actually gives you an increased chance for success, because BOTH 0 AND 1 will satisfy this. So you get a 2/11 rate instead of 1/10, which is actually 18% and not 10%.
    Same goes to every other scroll in the app (e.g. 30% is actually 36%~ due to this bug)

    You could lower the scrollChance number check by one everywhere, but probably an easier fix would be generating a randint from 1 to 10 which will make the checks actually resemble the correct rates, up to you :)
     
    Last edited: Jan 1, 2024
  9. Kirisame
    Offline

    Kirisame Selkie Jr.

    207
    76
    215
    Jul 5, 2018
    10:17 PM
    Peke
    Night Lord
    187
    Pigu
    Scrolled 3 capes, never been so lucky in real game SlimeSweat2
    [​IMG]
     

Share This Page