User Tag List

Results 1 to 10 of 10

Thread: Adding Strings with Lua

  1. #1
    No Products Registered

    Join Date
    Aug 2006
    Location
    Westcountry, UK
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Adding Strings with Lua

    In MMF2 you can add strings simply by placing an add sign inbetween. e.g. "Hello" + "World" = "HelloWorld"

    When setting a public variable you can enter a string but you cannot add multiple strings or other variables.

    How do you add strings with Lua?

    (please forgive me if I am being stupid)

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Adding Strings with Lua

    use . so "my string"."other string"

  3. #3
    No Products Registered

    Join Date
    Aug 2006
    Location
    Westcountry, UK
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Adding Strings with Lua

    cool thanks

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Adding Strings with Lua

    a single dot is php In lua it's double dots (..)
    "string"..value.."more string"

  5. #5
    No Products Registered

    Join Date
    Jun 2006
    Location
    Texas
    Posts
    1,002
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Adding Strings with Lua

    :P that's why it is important to look that stuff up ^^. I knew it was one of those two.

  6. #6
    No Products Registered

    Join Date
    Aug 2006
    Location
    Westcountry, UK
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Adding Strings with Lua

    I tried using "." but it just gave me the error message "attempt to call a string value" e.g.

    run script: a1="a"."b"

    any help?

  7. #7
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Adding Strings with Lua

    Quote Originally Posted by raytrace
    I tried using "." but it just gave me the error message "attempt to call a string value" e.g.

    run script: a1="a"."b"

    any help?
    run script: a1 = "a" .. "b"
    .:::.Joshtek.:::.

  8. #8
    No Products Registered

    Join Date
    Aug 2006
    Location
    Westcountry, UK
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Adding Strings with Lua

    thanks

    ( How do two items manage to appear above my post after i've posted it?! )

  9. #9
    No Products Registered

    Join Date
    Aug 2006
    Location
    Westcountry, UK
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Adding Strings with Lua

    2) Does anyone know when setting a variable (string) how to stop the "/" from being removed?

    EDIT: Don't Worry, I discovered "C:\folder1/folder2/folder3\file" is an exceptable means of writing a location

  10. #10
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Adding Strings with Lua

    Quote Originally Posted by raytrace
    2) Does anyone know when setting a variable (string) how to stop the "/" from being removed?

    EDIT: Don't Worry, I discovered "C:\folder1/folder2/folder3\file" is an exceptable means of writing a location
    You can also try \\ instead of \.
    .:::.Joshtek.:::.

Similar Threads

  1. Adding 1
    By Jibs in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 6th November 2011, 08:57 PM
  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. 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •