User Tag List

Results 1 to 2 of 2

Thread: Variable Strings inside variables

  1. #1
    No Products Registered

    Join Date
    Sep 2006
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Variable Strings inside variables

    I am working on a game where the player can bring up the daily newspaper to read the headlines. I am using the text string object to print the headlines. What I need to do is
    if the player is in a certain city, one of a group of 2o specific headlines will appear, and if he is in another city
    another of a group will appear, this is for eight different cities. But the next day I want another of the twenty headline to appear, and each day rotate with another until
    all twenty headline appear, and then start over.
    Any ideas would be appreciated.

  2. #2
    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: Variable Strings inside variables

    Hey.

    Use list objects to store the headlines. One list object for each city and fill them with the headlines.

    To pick a random headline, simply pick a random line from the list object, and then delete that line. Use Random(Number of lines in the list object) so that the first day it will pick among 20, the next day 19 and then among 18 lines etc as there are fewer headlines to choose from.

    When the list is empty you have to fill it again with new or old headlines. Perhaps store all the headlines in another list or variable.

Similar Threads

  1. Global variable = alterable variable
    By Jibs in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st November 2011, 08:54 PM
  2. Confused about Global variables and strings
    By BrashMonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 30th August 2011, 07:36 AM
  3. TGF_MMF Notion Variable, “Système Variable”.
    By SpringUp in forum File Archive
    Replies: 2
    Last Post: 13th March 2009, 12:43 AM
  4. Display texts using variables as strings.
    By gamer4fun in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 29th May 2007, 04:24 AM

Posting Permissions

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