Loading arrays from external spreadsheet

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.
  • I want to load in an external spreadsheet in as an array for RPG monster stats and attacks and stuff, and I'm having trouble figuring out how. Preferably the spreadsheet stays as an external file, since I imagine that would make tweaking things during development much easier, plus as a bonus I think the player being able to go in and mod stuff is charming.

  • You may use a List View. It's a list with columns, and have also methods to save an load data, usually a plain text file, which can be easily edited with a text editor. The values should be separated from a char separator, usually tab, but you can also use a comma or a semicolon.
    You can set the columns also at design time.
    Here a screenshot of a List View in action:
    Please login to see this attachment.

    Perhaps you could copy the data from your spreadsheet and paste it into a text file. This way you can load all the data later in a List View, and have access to the value from within it.

    plus as a bonus I think the player being able to go in and mod stuff is charming

    Bare in mind that the player could insert values that you don't expect, for example chars instead of numeric values. You have to handle all this cases in your code, and this could be daunting.
    Instead I would provide a small mod editor from within your application, where the player does not enter any value, but moves value bars or presses "+" or "-" buttons. My two cents.

    I hope it helps and makes sense for you.
    Sergio

Participate now!

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