User Tag List

Results 1 to 4 of 4

Thread: % chance of something happening

  1. #1
    No Products Registered

    Join Date
    Feb 2010
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    % chance of something happening

    I don't knwo if im blind and I can't see something easy but for some reason I can't find this. Im making a platformer pokemon game, its kind of hard to explain. And if you have played those games you know that theres critical hits at a 6% chance. So how do I make it so at a 6% chance the amount of damage is doubled? Thanks in advance

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Re: % chance of something happening

    Start by setting DamageMultiplier to "1" beforehand, and then use either "compare two general values":

    + random(100) < CriticalHit%
    -> DamageMultiplier = 2

    Or the new "X chances out of Y at random" condition:

    + CriticalHit% chances out of 100 at random
    -> DamageMultiplier = 2

    And then obviously, you just multiply the normal damage by the damage multiplier.

  3. #3
    No Products Registered

    Join Date
    Feb 2010
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: % chance of something happening

    Ah ok I knew it was something simple like that, just couldnt figure it out. Thanks a lot.

  4. #4
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: % chance of something happening

    thebeast250. I have a pdf MMF2 Tech Manual on my site. It has lots os RPG formulas and other information.

    http://www.castles-of-britain.com/mmf2projects.htm

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

Similar Threads

  1. Why is this happening now?
    By KLiK-iT in forum Android Export Module Version 2.0
    Replies: 27
    Last Post: 20th December 2013, 11:59 PM
  2. what is happening to my alpha?
    By 1234cb in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 7th March 2013, 02:44 AM
  3. Why is this happening? Is this a bug?
    By ezzypixel in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 1st March 2013, 05:55 AM
  4. Keep the same movement happening
    By loglady in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 5th February 2013, 04:39 PM

Posting Permissions

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