User Tag List

Results 1 to 3 of 3

Thread: Getting the numeric value of a string's text length in an event?

  1. #1
    Clicker 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)
    ClaraMakes's Avatar
    Join Date
    Nov 2018
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting the numeric value of a string's text length in an event?

    Sorry if this doesn't make much sense or if it's in the wrong place, I'm somewhat new to using some features in Clickteam.

    Let's say I have an ini file with a custom name the player saves into it, and a string displaying said custom name.
    How do I make an event specifically repeat for every character in their custom name?

    I don't mean in a Len("String") kind of way, it needs to be dependent on the exact length of a player's chosen name.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS 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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,313
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    To get the length of the text of a string object named String, you need to use the expression len(string$( "String" )). You can also get the length directly from the ini like this: len(GroupItemString$( "Ini", "MyGroup", "MyItem"))
    Is this what you're after?

    If not, I think you have to clarify what you mean. Could you then perhaps explain what you want to do without being too technical?

  3. #3
    Clicker 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)
    ClaraMakes's Avatar
    Join Date
    Nov 2018
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's exactly what I was looking for, thanks!

Similar Threads

  1. Spread a string into numeric values
    By marius in forum Fusion 2.5
    Replies: 2
    Last Post: 23rd February 2016, 07:06 PM
  2. String, the length before a newline problem. Could use help :)
    By Radical in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 11th November 2013, 08:43 PM
  3. Maximum length of Global String?
    By DistantJ in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 16th July 2012, 10:28 AM
  4. String length causing disconnection
    By Phi in forum Lacewing
    Replies: 10
    Last Post: 16th July 2010, 01:43 PM
  5. Numeric value to Text Blitter or Formated text
    By Kris in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 31st January 2008, 05:04 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
  •