User Tag List

Results 1 to 3 of 3

Thread: Custom Command Line help

  1. #1
    Clicker

    Fusion 2.5 Developer
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)
    BtheDestroyer's Avatar
    Join Date
    May 2013
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Custom Command Line help

    I'm trying to make a command line type applet for my game that takes a string that is inputted by the player, and is then parsed into sections. I am trying to use the String Parser object but it's more trouble than it's worth.
    For an example, I want the user to input door.open(A) and then have the door with the ID A open. What I want to happen is to check that the first part (before the period) is "door", if it is then activate the event group titled "input: door". In the group "input: door" an event checks that the second part (after the period and before the opening parentheses) is "open". Up until here I'm fine, but the next part I am having trouble with, I want to get the string INSIDE OF THE PARENTHESES. If you can figure out how to do this, I would GREATLY appreciate it!

  2. #2
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform 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)
    BartekB's Avatar
    Join Date
    Aug 2013
    Posts
    667
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Door Example.mfa

    Hope you'll understand the example, I might make it commented. But for now I'm too tired to do it

    EDIT: Made a mistake, but it doesn't have how the console works. Just shows additional line on text that you opened and closed the door when you type in door.close(A or B)
    - BartekB, a.k.a Uppernate
    Join the Click Converse Discord! - https://discord.gg/R3WuvF3mHr

  3. #3
    Clicker Fusion 2.5 DeveloperSWF Export ModuleXNA Export Module
    Chloe's Avatar
    Join Date
    Sep 2012
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wouldn't bother with the formatting, to be honest. I would just change the string to "door.open.A", set the delimiter to "." then say 'get element #' obviously element 1 for door, element 2 for open and element 3 for A.

Similar Threads

  1. MMF command line help?
    By FlameEX in forum Multimedia Fusion 2 - Technical Support
    Replies: 29
    Last Post: 18th January 2011, 05:43 PM
  2. Command Line
    By dragonguy in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 22nd December 2008, 04:48 PM
  3. Command line app
    By DJFuego in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th October 2008, 12:16 PM
  4. Is it possible with Command Line?
    By KICadm in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 30th August 2008, 05:00 PM
  5. Run Exe with command line
    By Looki in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 31st March 2007, 03:32 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
  •