Page 1 of 1

Adding a Variable to a Group

PostPosted: Tue Sep 10, 2013 11:49 am
by thisisDemo
I searched the forums for a while, but couldn't find anything on how to add a variable to assign a variable to a group only using scripting(not the built in method).

I have declared in global:

int highScore;

but not sure how to ass it to a save group :/
Please help.. maybe its not possible without using the built in method. I don't know yet

This was from 2006, so not sure if anything has changed since then or not.
http://game-editor.com/forum/viewtopic.php?f=1&t=2233&p=11538&hilit=struct+to+group#p11538

Re: Adding a Variable to a Group

PostPosted: Wed Sep 11, 2013 7:20 am
by skydereign
thisisDemo wrote:Please help.. maybe its not possible without using the built in method. I don't know yet

There still is not a way to add a variable to a save group without using the gui. There probably never will be, as that means adding a keyword to C. That being said, in the future, I hope to add a serialization function to gE as a better way of handling saves. For now you'll have to save the variables you want out without saveVars (or use the gui).

Re: Adding a Variable to a Group

PostPosted: Thu Sep 12, 2013 9:32 am
by thisisDemo
Thanks for the response sky