User Tag List

Results 1 to 5 of 5

Thread: Pick up object with text

  1. #1
    No Products Registered

    Join Date
    Oct 2007
    Location
    Norway, Oslo
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Pick up object with text

    Hi!
    How can I pick up an object with just writing for example "pick up bowl"? Like King's Quest.

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pick up object with text

    You have to teach the computer to parse English.

    It's not easy.

  3. #3
    No Products Registered

    Join Date
    Oct 2007
    Location
    Norway, Oslo
    Posts
    379
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pick up object with text

    But how do I do that? Is it a textbox where I can write something in the game?

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

    Re: Pick up object with text

    Quote Originally Posted by Rabagast
    But how do I do that? Is it a textbox where I can write something in the game?
    The Edit object allows you to type in the game.


    Quote Originally Posted by Rabagast
    How can I pick up an object with just writing for example "pick up bowl"? Like King's Quest.
    This is a bit more complex.

    You need to make a procedure that takes the user's string and compares each word with keywords in your game. I have not done anything like that, and I don't know the best method to use, but I think I would have done something like this:

    1: The player writes: pick up bowl

    2: The game test each word against keywords in the current room or level

    3: The game finds the word bowl and the epxression pick up

    4: The game checks in the action list where 'bowl' and 'pick up' is used.

    5: The game finds one action that has 'bowl' and 'pick up' and executes that action.


    Then it is up to you to figure out how to deal with keyword, action lists, actions etc... Using arrays or list-objects together with fastloops is probably a good choice.

  5. #5
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Pick up object with text

    Your best bet would be to use LUA.
    LUA is used in the gaming industry mainly as a scripting language.

    What you would do would be create functions such as 'pick up' 'move' etc and then set up the variables accordingly.
    Its not going to be easy, but would be easier than programming it in MMF itself.

    if interested visit www.lua.org and learn the langauge. Then download xlua extension and have fun

Similar Threads

  1. Pick up object and shooting
    By Mycale in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 30th August 2009, 12:04 PM
  2. Pick an object ...?
    By MattEsch in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 24th August 2008, 05:04 PM
  3. Pick object at random, among a selected few
    By Popcorn in forum File Archive
    Replies: 1
    Last Post: 6th December 2007, 05:51 PM
  4. Pick object by...
    By haora in forum File Archive
    Replies: 0
    Last Post: 18th August 2007, 06:59 PM
  5. Pick an object at random?
    By Clicktastic in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th August 2006, 01:31 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
  •