User Tag List

Results 1 to 8 of 8

Thread: Strings with code.

  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)

    Join Date
    Aug 2007
    Posts
    143
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Strings with code.

    Is there a way to make there be code in a string.

    example. "hello playername$( "Player 1" ) how may i help you."

  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,367
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Strings with code.

    Yes. You can combine strings and values by putting the value inside str$()

    Like this:

    "Hello" + str$(playername$("Player 1"))+". How may I help you?"

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Jul 2007
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Strings with code.

    Yes, you would put:
    "Hello, "+playername$("Player 1")+". How may I help you?"

    If the thing you wanted to insert was a number, like their score for instance, you would do this:
    playername$("Player 1")+"'s score was "+Str$(score( "Player 1" ))+"."

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Strings with code.

    Although playername$("Player 1") isn't a value, so it would simply be:

    "Hello " + playername$("Player 1") + ". How may I help you?"

  5. #5
    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)

    Join Date
    Aug 2007
    Posts
    143
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Strings with code.

    thanks

  6. #6
    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,367
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Strings with code.

    Thanks Jamie, I think I must have hit my head right before I answered that one

  7. #7
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Strings with code.

    thought he meant an eval() function like in PHP, so you can have a string with MMF expressions to evaluate... quite cool wishlist

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Feb 2007
    Location
    Queensland, Australia
    Posts
    317
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Strings with code.

    Expression Evaluator Object >_>?

Similar Threads

  1. Finding specific strings or actions in the code - is there an easy way?
    By Yos in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 15th October 2012, 10:37 AM
  2. Scan Global Strings and Other strings
    By Ausomeman in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th May 2010, 04:01 PM
  3. Strings
    By whiptcream13 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 31st August 2008, 09:14 AM
  4. Using Global Strings embedded in larger strings
    By Mudstick in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 12th May 2008, 01:23 PM
  5. V-Code Generator Source Code
    By LB in forum File Archive
    Replies: 1
    Last Post: 10th March 2008, 08:52 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
  •