User Tag List

Results 1 to 3 of 3

Thread: picking the second word in a string

  1. #1
    Clicker Fusion 2.5Fusion 2.5+ DLCAndroid Export ModuleiOS 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)Universal Windows Platform Export Module (Steam)
    blurymind's Avatar
    Join Date
    Feb 2014
    Location
    Huddersfield, United Kingdom
    Posts
    497
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)

    picking the second word in a string

    Hi,
    I was wondering,
    What is the easiest way to pick the second word in a string, inside an ini object.
    I am guessing that one way would be to detect spaces inside the string .. But I am not sure how to do it in MMF

    I wish I could just do
    _*
    in the expressions

    I also have two words inside a text ini file's line. I need this in order to tell MMF which two avatars to spawn on the screen during a dialogue. I need to be able to pick up the first one and the second one from the line and know which is which in order to know on which side of the screen to draw the avatar

  2. #2
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    You can do it very easily with the String Parser object. You can set any character or string as a delimiter, delimiters are what separates words. Then give String Parser an index, and it can return any word in your sentence, from the 1st to the last. Just take a look at the object's Help. In my opinion String Parser is one of the most powerful extension available for Fusion.

  3. #3
    Clicker Fusion 2.5Fusion 2.5+ DLCAndroid Export ModuleiOS 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)Universal Windows Platform Export Module (Steam)
    blurymind's Avatar
    Join Date
    Feb 2014
    Location
    Huddersfield, United Kingdom
    Posts
    497
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    hi and thank you for this. I will try it out.

    Right now my dialogue.ini file has this avatar functionality implemented, but the problem is that each avatar is called in a separate line and the animation is called by ID and not by name. While these things might seem like details, having the ability to call the avatars from a single line would massively reduce the amount of writing that must be done in the ini file for avatars and will let me have a smaller file to scroll through.

    I couldnt figure out how to make fusion call the animations by name instead of ID, because the entire dialogue interpreting code is stored in the NPC behavior.

    I want to implement a system that is nice to work with. Not just one that works.

Similar Threads

  1. Change word color in a string
    By iOSC in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 1st October 2013, 10:40 AM
  2. Individual word by word string comparison?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 5th May 2013, 05:52 PM
  3. Searching for a word within a string?
    By colej_uk in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 8th January 2013, 09:04 PM
  4. Changing one word's color in string object
    By NLK in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 26th August 2008, 12:39 PM
  5. Search a string for a word. Help!!!!!
    By Tim in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 21st August 2008, 01: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
  •