User Tag List

Results 1 to 4 of 4

Thread: ASK chances condition (1 action that can trigger more than 1 event with different %)

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module

    Join Date
    Jun 2019
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ASK chances condition (1 action that can trigger more than 1 event with different %)

    good evening, i want to ask a question.
    so my problem is like this:
    the plan is when i am pressing red button, there is a chance normal enemy will spawn or boss will spawn.
    and i want the chances to be different, like 80% normal enemy will spawn and 20% boss will spawn.
    i tried using x chance out of y at random with 2 event like this

    -user click with left button on "red button"
    -8 chances out of 10 at random
    ) enemy will spawn


    -user click with left button on "red button"
    -2 chances out of 10 at random
    ) boss will spawn


    at first i thought it was fine, then when i am tried it again and again i realized sometimes the event can overlap and spawn enemy with boss
    i am new as you can tell, maybe there is a better option to make 1 action that can trigger 2 event with different percentage like my explanation above
    any help will be much appreciated

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    If you use a value and set the value 8 out of 10 times then you can control that only 1 enemy is created - the rest you were doing right.

    I've attached an example for you - it's easier than explaining it.
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    679
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Here is an example on how to use a string object as a random "pool". You populate this pool by editing the string. It's quite flexible, just make sure you don't use numbers greater than 1 place, i.e having "1" and "10" or "11" in the same string will cause problems. You can use letters along with numbers if you wish.
    Attached files Attached files

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module

    Join Date
    Jun 2019
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Janette5 View Post
    If you use a value and set the value 8 out of 10 times then you can control that only 1 enemy is created - the rest you were doing right.

    I've attached an example for you - it's easier than explaining it.
    Quote Originally Posted by casleziro View Post
    Here is an example on how to use a string object as a random "pool". You populate this pool by editing the string. It's quite flexible, just make sure you don't use numbers greater than 1 place, i.e having "1" and "10" or "11" in the same string will cause problems. You can use letters along with numbers if you wish.

    both works like a charm!
    thanks for your time @Janette5 and @casleziro and also giving me the examples with good notes and explanation.
    hope the best for you both

Similar Threads

  1. Need help finding condition to trigger a call in Xcode!
    By Mason4837 in forum iOS Export Module 2.5
    Replies: 1
    Last Post: 25th June 2014, 10:28 PM
  2. Trigger event on Windows shutdown?
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 3rd July 2013, 10:46 AM
  3. Trigger Event When Objects in Group Share Same Value
    By Sky in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 5th June 2013, 11:18 AM
  4. trigger event when all enemies are same state
    By ionside in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 20th January 2010, 10:07 AM
  5. How would you trigger an event after a fastloop?
    By BREK in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th April 2009, 11:57 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
  •