User Tag List

Results 1 to 2 of 2

Thread: Append Ini Data To String?

  1. #1
    No Products Registered

    Join Date
    Dec 2012
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Append Ini Data To String?

    I have a String object that switches between different paragraphs, one for each character in my game. Say they're called Bob (paragraph 1), Steve (2), Jim (3) and Mr Snugglesworth III (4) respectively. What I'm trying to do is get data from the .ini file (INI++ v1.5 object, if that matters) that stores the highest score for each character, and append that to the String object. So if you had picked Bob and were going to play, say, the second level, the engine would look in the .ini for LEVEL2SCORE (group) for the relevant scores (items) and post the (values).

    LEVEL 2 (unrelated string)
    "BOB'S BEST SCORE - [value]
    "HIGHEST SCORE - [value] by [item]"

    Where [item] would represent the name of the character who owned that particular score. It could be Jim, Snugglesworth, or even Bob for redundancy's sake.

    I post this thread because I just can't figure out how to append .ini data to String objects, without getting lots of error messages I can't seem to work around. Thanks in advance!

  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)
    By ini data, do you mean ini values. Do you get ini strings to work?
    In order to display a value in a string, you need to wrap it inside str$().

    Example: "BEST SCORE - " + str$(value)

Similar Threads

  1. Append a string in a text file
    By Ls2 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 4th October 2013, 08:53 PM
  2. Append string
    By Jack_Bauer in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 29th January 2009, 10:40 PM
  3. append text to file
    By obiwan in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 9th June 2007, 12:57 PM
  4. Binary Object - Append strings and get them
    By Looki in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 23rd March 2007, 07:00 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
  •