User Tag List

Results 1 to 6 of 6

Thread: Hashtable of list of strings - request

  1. #1
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jun 2006
    Posts
    874
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hashtable of list of strings - request

    Hi,
    I think this would be very easy to made (like in C# just Dictionary<string,List<string>>) and very useful. Currently there is virtually no way how to make it. For example, in my game I have NPC selling variable number of items. With this extension, I could simply iterate through the all strings under key (NPC ID). Or say you want to store variable number of information (also it can be parsed and contain anything) for many objects - again, you could add and read items from lists under unique identifier. The key thing is not fixed lenght (thus the list and not array).
    Magic deque cannot be used as the array position is too limited value-wise.
    The key could be int or string, probably string would be more useful but a bit slower (do not think we would notice difference unless there are thousands of elements)

    Actions:
    Add element under key
    Delete element under key
    Delete element under key by index
    Insert element at position //could be useful
    Clear list for key

    Condition:
    Does list under key contain an element?
    Is the list for given key empty?

    Expressions:
    Get count of elements under key
    Get element under key by index
    Get number of keys
    Find element under key //Returns index

    I could pay something for this, its very easy one. I cannot write it myself as I know just C# and have no time to study MMF2 SDK.

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    The Internal List Object Beta 3 allows you to have multiple lists (with names) that have multiple items. You could use the list names as the NPC names and the items as the items they sell. Will this object fit your needs or will you require a separate specialized object?
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jun 2006
    Posts
    874
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LB, thanks for information, I looked through the list of extensions but did not find this one. I guess that is exactly what I need. Thanks again!

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can also use the List object by itself and use the index as the key. This is of course slower than the Internal List Object (which is why it was built), but if you have no other option you can do this.

  5. #5
    Clicker Fusion 2.5Fusion 2.5+ DLC

    Join Date
    Jun 2006
    Posts
    874
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    netninja: no you cant as this would be just one list. The problem is related to variable count of lists with variable items. Also you need to select particular list (or create if does not exist) and work with its items. This is not possible in MMF as you cannot select objects by e.g.reference and work just with that reference that points to any object of given type.
    Simple example:
    You have an online game and for each player you want to keep list of actions they have done. So the list needs to grow and each list can contain different number of items.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Aug 2006
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In case you don't know you can code C# with the DotNet extension so that might be worth a try also. I have been using it recently myself for a few form elements that are not available as extensions, the only downside is the object doesn't seem to have been updated in a long time now but it seemed to work well for what i did.

Similar Threads

  1. List Object Feature request
    By redpandagames in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 2nd April 2013, 07:49 PM
  2. Request - Custom List Object
    By Game_Master in forum Extension Development
    Replies: 4
    Last Post: 2nd August 2010, 10:37 PM
  3. [Request] Column List
    By Zido in forum Extension Development
    Replies: 1
    Last Post: 11th November 2009, 09:05 AM
  4. [Request] Non-Window List object
    By LIJI in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 15th September 2007, 10:43 AM
  5. [Request] List Object
    By RaiFox in forum Extension Development
    Replies: 14
    Last Post: 18th February 2007, 03:49 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
  •