User Tag List

Results 1 to 3 of 3

Thread: Count the number of objects with the same Alterable String (using qualifier)

  1. #1
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    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)
    SergioAndre's Avatar
    Join Date
    Mar 2009
    Location
    Argentina
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Count the number of objects with the same Alterable String (using qualifier)

    Hi guys,

    I need some help, my head is burned right now and I haven't been able to think a way to achieve what I need.

    I want to make that if the Alterable String of an Active Object is equal to other objects in a list, count only the number of objects with the same Alterable String. All objects in the list must have the same "Qualifier".
    What I want is to count all the objects with a specific Alterable String using the "Qualifier" for all objects in the list, don't count the object itself (that's very easy). I want to make it as simple as possible without using any extensions.

    I attach an image to make it clearer and an example if you want to do tests.

    Thanks!
    Images attachées Images attachées
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    798
    Mentioned
    56 Post(s)
    Tagged
    0 Thread(s)
    I modified your example a little - it's working now.

    Here's an explanation:

    * Always
    Counter : Set Counter to 0 //reset the counter each time so it starts fresh
    Start loop for each one of Group.Shapes, loop name "ObjectCount" //start the loop

    * On each one of Group.Shapes, loop name "ObjectCount" //running the loop
    + Item ID of Group.Shapes = Item ID( "Active" ) // test your condition here
    Counter : Add 1 to Counter // for each one that is true it will add 1 to the counter
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    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)
    SergioAndre's Avatar
    Join Date
    Mar 2009
    Location
    Argentina
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Works great, Thanks Janette5!

Similar Threads

  1. Count of objects where Alterable Value = n
    By Keith in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 27th December 2011, 10:24 PM
  2. Object Selection and Count Number of Objects ...
    By Crash86 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 27th November 2011, 07:14 PM
  3. [Request] Count Number Specifc Objects -- MTG Game
    By Pedro Almeida in forum Extension Development
    Replies: 7
    Last Post: 16th January 2009, 04:00 PM
  4. Count the number of Alterable strings
    By Attan in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd October 2007, 09:32 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
  •