nullkalahar's Recent Forum Activity

  • Use a variable called "lootchance".

    Lets say you click a button, set "lootchance" to random(1,100)

    After that when you want the player to get loot, you add a condition checking what number "lootchance" is set to,

    if equal to or lower than 82.87 > Give player loot common

    If equal to or higher than 82.88 BUT lower than 93,24 > give player loot rare

    if equal to or higher than 93.24 but lower than 98.42 > give player super rare

    if equal to or higher than 98.42 but lower than 99.46 > give player Epic

    if equal to or higher than 99.46 but lower than 99.98 > give player Legendary

    if equal to or higher than 99.60> give player Super Legend

    Prob a better way of explaining and doing it, I'm drunk, hope it helps anyways, merry christmas.

    Thanks

    • Post link icon

    The Ajax plugin will generally allow you to utilize website apis. You can also include JavaScript libraries.

    If you can get a number as a string, you can definitely convert it to an integer or float.

    $3.98 is the value of 1 unit, in the txt above I should receive the value *2, but 0 came back.

    $3.98 is obtained through a googlesheet with a command to import the value of a cryptocurrency.

  • I'm trying to create a loot box that has 6 result options:

    Common 82.87%

    Rare 10.36%

    Super Rare 5.18%

    Epic 1.04%

    legend 0.52%

    Super Legend 0.04%

    How to do this ?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
    • Post link icon

    I'm trying to look up the value of a cryptocurrency for a little game that would simulate an nft game.

    I can look up the value of a googlesheet, but this one comes as a string and doesn't allow calculations with it (even though I use command to make int/float).

    Would it be possible to add the coingecko api or any other website to check the value?

    Tagged:

nullkalahar's avatar

nullkalahar

Member since 22 Dec, 2021

None one is following nullkalahar yet!

Trophy Case

  • 3-Year Club
  • Email Verified

Progress

4/44
How to earn trophies