User Tag List

Results 1 to 6 of 6

Thread: How to do an AND (like an or)

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Aug 2011
    Location
    Beverly Hills, CA USA
    Posts
    508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to do an AND (like an or)

    How could I do an AND like the OR unfiltered? I would like to compare alterable values on instances of the same object without having to create a plethora of events.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't understand what you're trying to achieve.
    By default adding an extra condition effectively does an AND (shown as + in editor), eg:

    Mouse is over Active
    + User clicks with left button

    This will only happen when both events are true. I suppose it could be written as:

    Mouse is over Active
    AND User clicks with left button

    I haven't used the OR operator (filtered) before.
    The few times I've tried using the OR operator (logical) hasn't worked properly on iOS (but has in MMF2 on PC)

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Aug 2011
    Location
    Beverly Hills, CA USA
    Posts
    508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OR lets me do this:

    Coin Object where Alterable Value = 100
    Or
    Coin Object where Alterable Value = 200

    It would be great to do:

    Coin Object where Alterable Value = 100
    AND
    Coin Object where Alterable Value = 200

    And impact both objects.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    i've so many times wished i could handle multiple instances in the same event but the truth is you have to use disparate events to manage it...

    if i'm wrong, i'm anxious to learn to be right, so please teach me too if you figure out a way

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    About the best I can come up with at the moment is to have a condition per value and set a flag, then check to see if the flag is set and do your actions on all these instances at once, e.g.:

    Always: Clear Flag 0 of ("Coin Object")

    Coin Object where Alterable Value = 100: Set Flag 0 of ("Coin Object")

    Coin Object where Alterable Value = 200: Set Flag 0 of ("Coin Object")

    ...

    If Flag 0 of ("Coin Object") is set: <Do actions on Coin Object>


    Perhaps Francois, Yves or Andos could explain if this is a possible addition to MMF2?

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    AyreGuitar's is closest to the kind of thing I'd do, yeah. Generally if I can't use math for it (i.e. Alterable Value MOD 100 = 0 and, if necessary, Alterable Value < 201) I use a secondary event where it alters a flag or sets another value.

Posting Permissions

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