User Tag List

Results 1 to 3 of 3

Thread: INI Group / Item Value Only A Text Expression?

  1. #1
    Clicker Fusion 2.5Android Export Module

    Join Date
    Oct 2013
    Location
    United States
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    INI Group / Item Value Only A Text Expression?

    Is there a reason when using the INI object, you can't set the group or item name to a variable?

    For Example;

    Pressed "S" Set item value Alternate Variable A "Active Object1" to Item Global Variable A

    You get "Please Enter A Text Expression"

    Is there a way this could be done using INIs? Or would MMF 2.5 just get confused?

    I can't use arrays; I don't think you can set the array as a specific file like you can with INIs.

    For some insight, I am building an application in which the user has the possibility to create
    upto 250 objects on the screen. Each of those objects has a variable that must be saved that indicates
    an item part (the variable is 0-65). Right now, I have it set up so it creates an item for all 250 potential
    objects, and sets the value for each object. This is 250 events to save, and 250 events to load. The INI file
    holds this data, plus a couple strings provided by the operator. The files are shared by employees, so I need to
    be able to specify a file name and be able to share the file. Right now it works, but in the near future I am going to have to make it work with close to 1000 objects. There has to be an easier way to achieve this.


    Thanks.

    Thanks.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    oruga's Avatar
    Join Date
    Feb 2012
    Posts
    366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can set the group item or name to a variable, but as it is a name it's gotta be a string. So just convert that variable to a string first.

    So instead of Global Value A a as the item or group name, it should be str$(Global Value A)

  3. #3
    Clicker Fusion 2.5Android Export Module

    Join Date
    Oct 2013
    Location
    United States
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Worked like a charm! Awesome. Thank you.

Similar Threads

  1. The difference between text in expression editor and text in strings?
    By RobertRule in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 21st July 2013, 10:13 PM
  2. [Request] INI - Change Group/Item Name
    By Bipolar_Games in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 14th October 2012, 06:20 PM
  3. activate group via expression?
    By oasuke in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 26th January 2012, 02:11 AM
  4. Activate group {name} with expression?
    By Kingoftaurus in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 27th May 2010, 01:09 AM
  5. setting ini path, group, item from variables
    By ajp in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 10th September 2009, 10:33 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
  •