User Tag List

Results 1 to 6 of 6

Thread: Mixed strings and numbres

  1. #1
    Clicker Multimedia Fusion 2Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    esp's Avatar
    Join Date
    Aug 2015
    Posts
    98
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Mixed strings and numbres

    Hello guys !

    I have a global value , a string and a value in an active object .
    In the string i have stored the name of the global value .
    Now what I'm trying to do is to automatize the process of setting the object's value with the value of the global value (I need this for multiple object's ) so what i did is :
    I set the object to a group
    And tryed to set the object's value with the global value , but in order to automatize i used to extract the name of the global value by the string of the group and i get this syntax error !
    Is there any way to do what i'm trying to do ?

    Mixed.jpg

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try to enclose the 'AlterableStringC' in "Str$( )".
    Not sure if it will work.

  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)
    Global Value( Val(STRING) ) will work in this scenario, but only if the string is a number.

    As far as I know, global values can't be retrieved from strings by their letters, but you can get them by their numbers, starting at 1.

    Global Value( Val("1") ) will give you Global Value A. So change the string from using A/B/C/D to 1/2/3/4 etc.

    I would ditch the string and use a fastloop instead. That way you can set each alterable value by using an expression and the loopindex, then just call the loop the amount of times as many values you need. I attached an example, since it's kind of hard to explain and surely hard to understand: automate global values4.mfa

    Look in the parameters active. Here you can set which global value is your starting point, and which is your end point. You can also set what the starting alterable value is for the actives. These values can be set each time you want to fill alterable values, but make sure you set them before you call the loop.

    EDIT: You might notice that I add 1 to the loopindex when choosing the Global Value, but not when choosing the Alterable Value: Apparently Global Values are 1-based, but Alterable Values are 0-based. I had to re-write this post several times after realizing that.

  4. #4
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    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)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    haha nice casleziro, heres hoping EVERYTHING has a 0 index in Fusion 3.

  5. #5
    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)
    Yeah that would be very nice

  6. #6
    Clicker Multimedia Fusion 2Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    esp's Avatar
    Join Date
    Aug 2015
    Posts
    98
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by casleziro View Post
    Global Value( Val(STRING) ) will work in this scenario, but only if the string is a number.

    As far as I know, global values can't be retrieved from strings by their letters, but you can get them by their numbers, starting at 1.

    Global Value( Val("1") ) will give you Global Value A. So change the string from using A/B/C/D to 1/2/3/4 etc.

    I would ditch the string and use a fastloop instead. That way you can set each alterable value by using an expression and the loopindex, then just call the loop the amount of times as many values you need. I attached an example, since it's kind of hard to explain and surely hard to understand: automate global values4.mfa

    Look in the parameters active. Here you can set which global value is your starting point, and which is your end point. You can also set what the starting alterable value is for the actives. These values can be set each time you want to fill alterable values, but make sure you set them before you call the loop.

    EDIT: You might notice that I add 1 to the loopindex when choosing the Global Value, but not when choosing the Alterable Value: Apparently Global Values are 1-based, but Alterable Values are 0-based. I had to re-write this post several times after realizing that.
    Thank you very much but unfortunately i really don't understand fastloops -____- i'm going to train my self and learn them but at the moment i solved with the numbers !
    I'm just using this for a dialogue system !

Similar Threads

  1. [Error] Mixed strings and numbers!!
    By matn212 in forum Fusion 2.5
    Replies: 0
    Last Post: 4th July 2015, 10:06 PM
  2. [Error] Mixed strings and numbers
    By Muldoon in forum Fusion 2.5
    Replies: 1
    Last Post: 1st February 2014, 02:51 PM
  3. Mixed Strings & Numbers
    By Eugene in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th September 2008, 03:37 PM
  4. Mixed Strings and Numbers Bug?
    By artician in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 17th June 2008, 01:43 AM
  5. Mixed Strings and Numbers (bug?)
    By artician in forum File Archive
    Replies: 1
    Last Post: 16th June 2008, 11:25 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
  •