Selecting words from a list

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Ok... I have read lots on the list box, and string splitting etc etc but unless I am missing something then they dont seem to be able to do a simple word selection from a list.

    Here is what I am trying to do:

    First off.... we need a list of words, something like this:

    kind
    foolish
    weight
    sort
    level
    peace
    flower
    sad
    rot
    redundant
    scene
    distinct

    (Each word is on its own line)
    Now once you have a list you save it in Notepad as a.txt file.

    So now...........In the above example, there are 12 words...So I need to pick a rnd number 1 to 12 then use that to select a line and then read the word and put it on the screen.

    In other languages its easy to do, but I cant wrap my head around f2.5 and how it (or an object) can access the list.

    So.......a little help please. Can anyone tell me what/how to do this? Or what object to use?

    If you have an example file that would be brill too... but if not, then any help would be great.

    Thanks! :D

  • Unless I'm not getting your message here, this is quite straightforward to do in Fusion 2.5.

    In the frame editor:
    Insert a List object.

    In the event editor:
    Create an event that loads the list. Under the List icon, right click on the white square in the correct event, and select Files -> Load list file. Then select the .txt file to load.
    If it is a hardcoded list, you could type in the list manually in the list object itself instead by double clicking it in the frame editor.

    To pick a random word, use the expression: List Line Text$( "List", Random(3)+1 )
    You many set 1-based index off in the list object's properties. In that case skip the +1, as the first word will be line 0.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!