User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14

Thread: Logic problem that I can't figure out.

  1. #11
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Two reasons:
    1.) I forgot to change the midpoint of the string from 4 to 12.
    2.) More importantly, I assumed the numbers were going to be consecutive, from 1 to 24. This method isn't going to work if you have the same number appearing more than once on the same reel (not without another nested loop anyway).

  2. #12
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,421
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    aww... ok
    Well... I can give them each a new number, and link them up elsewhere.
    so, the 4 - needs to be 12 - then ?

    Changed the 3 strings to

    "10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,2 6,27,28,29,30,31,32,33,34"
    "20,11,10,13,14,30,31,32,33,34,12,25,26,27,28,29,1 5,16,17,18,19,21,22,23,24"
    "34,33,32,31,30,29,28,27,26,25,24,23,22,21,20,19,1 8,17,16,15,14,13,12,11,10"

    I had the value 10 again

    and the result was -14
    nudge 1 = 10
    nudge 2 = 10
    nudge 3 = 8

    tried removed the "0" as well, but no difference.
    Guess I don't know what this line does
    "nudge main value" is a set number. i.e. 10, so it's like Abs(12 - ( Find("10,11,12,13,14,15,16,17,18,19,20,21,22,23,24 ,25,26,27,28,29,30,31,32,33,34", "," + Right$( "10", 2 ), 0 ) / 3 ) )

    Abs(12 - ( Find(string$( "r1" ), "," + Right$("0" + Str$(nudge main value ), 2 ), 0 ) / 3 ) )
    or
    Abs(12 - ( Find(string$( "r1" ), "," + Right$( Str$(nudge main value ), 2 ), 0 ) / 3 ) )

  3. #13
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    The way it works, it starts by setting NumToCheck to the highest possible value (which was assumed to be 24), and then works its way down until it finds a number that it can match three of, or it reaches zero.
    "12" is just a value that represents the middle of a reel.
    Another issue I can see right away, is that you have a comma after each value, when it needs to be before the value - either that or you change another line:
    Abs(12 - ( Find(string$( "r1" ), Right$("0" + Str$(nudge main value ), 2 ) + ",", 0 ) / 3 ) )
    ...otherwise it will be looking for the string "0," instead of "10" etc.

    If you don't have any "rules" on what the numbers can be, you might be better off just using brute force, and running 3 nested loops (one for each reel) to check every possible combination of nudge amounts.

  4. #14
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,421
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Guess I am really puzzled now..

    I created an MFA

    I set the value to 10

    and get all 1's and a 9
    (I had changed the abs from 12 to 1 to start from the beginning. and set to <=24 instead of <=8 so it looks at all of them.


    Also trying to figure out the brute force part, but no clue how to look for it
    Attached files Attached files

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Having a big problem and cant figure it out???
    By UnicornMan in forum iOS Export Module 2.5
    Replies: 8
    Last Post: 17th March 2015, 05:36 AM
  2. Problem, can any body help me out, cant figure out what to do.
    By Ryan9171 in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 18th March 2012, 08:37 PM
  3. What is the Logic Behind This? (negate object overlapping "logic")
    By Blue66 in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 10th January 2012, 11:54 PM
  4. please help me with logic
    By stevanooz in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 12th October 2006, 04:19 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
  •