User Tag List

Results 1 to 10 of 10

Thread: Possible to choose alterable value?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,151
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    Question Possible to choose alterable value?

    I am trying to do an event where you click on an "upgrade" icon and get a value added to the right alterable value. For example if you click on "Magic" you get 50 extra magic, and if you click on Health you get 50 extra health. The problem is that I would like to have all this in a single event with a qualifier instead of having to have a event for every single button, but I can't find any way to choose what alterable value to send the points to in a flexible way, is this possible?
    I have an simple example here that may show better what I am trying to do. The problem is the event sending the value to the "Health" value. I would like to send it to Magic for example if it was the magic button that was clicked.
    Attached files Attached files

  2. #2
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try doing it this way.
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,151
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Corlen View Post
    Try doing it this way.
    Thanks it works! But how does it work? :S

  4. #4
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I spread an alterable value in the qualifier group's variable C (which makes the variable you selected of each object effected have a unique value that increases by 1 for each object) then added alterable value B of the qualifier group to a variable in the hero object, determined by the qualifier group's variable C. You can specify a variable or something else to determine the variable to use by clicking the edit button next to the "choose variable" drop down box.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,151
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Why do you "always" spread the value?

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,151
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Ok there is another problem now.. :/ I see that it spreads a value that represent the 3 first values. But what if i create some more values and later I have one value 9 that I also want to add to? I really hate that you cant reorder values or remove values higher up the list when you have created them. Is there a reason for this? It makes it very hard to have some sort of order in your values if you have not thought about everything from the start

  7. #7
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not entirely sure how MMF2 spread values... it used to increase the value for the newest instance of an object, but now it does some conglomerated process that is dependent on X and Y positions or something. I'm not sure why Clickteam decided to do this.

    To answer your question though, if you create more objects under the qualifier you had there, it will continue to spread the value between them all. The number you put in for the spread value dialogue is the number it starts spreading from.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Eliyahu's Avatar
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why even spread the value? Just assign each box a value at edittime to use for the alterable value's index, rather than trying to spread it.

  9. #9
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That could work, yeah. I forgot that you can do that.

  10. #10
    Clicker 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
    Oct 2016
    Posts
    42
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    7 years later and I found this useful - thanks!

Similar Threads

  1. A code to choose everything?
    By PandaExplosion in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 11th July 2010, 11:55 PM
  2. How to choose the nearest object?
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 2nd February 2010, 12:22 AM
  3. Choose Your Own Adventure.
    By Nickydude in forum Multimedia Fusion 2 - Technical Support
    Replies: 32
    Last Post: 3rd December 2007, 04:08 AM
  4. Alterable Strings and Alterable Values limit :(
    By Pedro Almeida in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 13th October 2006, 06: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
  •