Adding a Variable to a Group

You must understand the Game Editor concepts, before post here.

Adding a Variable to a Group

Postby thisisDemo » Tue Sep 10, 2013 11:49 am

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
thisisDemo
 
Posts: 5
Joined: Wed Jul 31, 2013 2:36 am
Score: 0 Give a positive score

Re: Adding a Variable to a Group

Postby skydereign » Wed Sep 11, 2013 7:20 am

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).
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Adding a Variable to a Group

Postby thisisDemo » Thu Sep 12, 2013 9:32 am

Thanks for the response sky
thisisDemo
 
Posts: 5
Joined: Wed Jul 31, 2013 2:36 am
Score: 0 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest

cron