Good Table Manners
smurfted
Member, PRO Posts: 586
So i've been busy editing Armelline's excellent table alphabetising program.
I've got my head around it and have got it doing what i want. I've also added a button to "save the table" which i was hoping would filter the new alphabetised table back through to the master table (back in the gamesalad editor). But unfortunately it didn't..
Does anyone know if its possible to edit the master table (the one you make in the GS editor)???
Comments
Any ideas?
Maybe tag @Armelline so he's aware of this thread.
Sadly I don't seem to be getting tag notifications right now for some reason, but luckily I stumbled upon this thread anyway!
You seem to be asking how to take the sorted table and make it the "default" table, outside of the game (as in while you're creating it). This could be done in Numbers or Excel if you originally imported the data.
If you inputted all the data directly into GS yourself, you'll need to output the table to the debug console. Ideally formatted as CSV. Then you can just import it back in again.
As to how, I'd probably make a text game attribute and then run a loop that does:
change attribute game.TableText to game.TableText..tableMergeValues(values for a single row).."\n"
Then just loop over the table running that for every row.
If you're just asking how to put the sorted table back into the master table in-game, just copy the table using Copy Table.
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support