User Tag List

Results 1 to 2 of 2

Thread: Increase chances of item

  1. #1

    Fusion 2.5Android Export ModuleiOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Dec 2013
    1 Post(s)
    0 Thread(s)

    Increase chances of item

    I'm trying to make a capsule machine similar to the trophies in Smash Bros: Melee where the more coins you pay, the better the chance you'll get a trophy that you don't already have.

    So basically it'll be like:

    You own:
    Trophy 1
    Trophy 2
    Trophy 3

    You want:
    Trophy 4

    And if you insert one coin, you have a low chance of getting Trophy 4, but the more you insert, the higher your chance of getting that trophy (or any you don't already have). I just don't know how to go about this or the maths involved. Any help would be appreciated.


  2. #2
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    1 Post(s)
    0 Thread(s)
    Well theres a few methods.
    Logically, any random picking through the list says that the overall chance to get a trophy you don't have increases the more coins you use. On each individual roll it gets lower, but the overall chance gets higher.

    Now say you want each individual roll to be weighted according to how many coins you've inserted in a spree. Here are two easy ways:
    #1: Simply reroll it.
    Roll it once, check to see if the player has that trophy already, and then roll it again and throw out the result of the first roll.
    If you do this N times for N coins, you might be getting odds much better than you wanted. Instead, you could limit the number of rerolls, say for example using a logarithmic curve that increased number of coins = more rolls, but growing slower and slower.

    #2: Choose from a weighted list. Make a list that has the names of all the trophies currently available. Whenever the player inserts a coin, choose a trophy he doesn't own at random and add another instance of it to the list. Whenever he gets a trophy, erase all but one instance of that trophy from the list again. So whenever a trophy is chosen, those he doesn't have have more instances on the list than those he does, and he'll get them more often.

Similar Threads

  1. Does having an item spawn on multiple frames have to increase the file size?
    By UltraHammer in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 31st March 2013, 02:17 AM
  2. WaitFor + Chances Object
    By Stephen in forum Released Extensions
    Replies: 3
    Last Post: 31st January 2013, 09:19 PM
  3. X chances out of Y at random HELP PLZ
    By gordonquinton11 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th November 2011, 10:31 PM
  4. WaitFor + Chances Object
    By RickyRombo in forum Extension Development
    Replies: 33
    Last Post: 11th September 2010, 03:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts