The Dink Network

&savegameinfo

July 28th 2002, 11:04 PM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
i am puzzled. how does &savegameinfo in a choice statement work? i dont follow... i want to get the game info for a saved game for a say command. is this possible? like... say("&savegameinfo",1); cept that that doesnt work.
July 29th 2002, 12:11 AM
old.gif
&savegameinfo is made to check existing savegames, you cannot use it to show the info of a savegame,

choice_start();

"&savegameinfo" this will show savegame 1

"&savegameinfo" this will show savegame 2

"&savegameinfo" this will show savegame 3

"&savegameinfo" this will show savegame 4

choice_end();

you can try: say("&savegameinfo", 1);
July 29th 2002, 12:17 AM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
: &savegameinfo is made to check existing savegames, you cannot use it to show the info of a savegame,

no game_exist() does.

: choice_start();

: "&savegameinfo" this will show savegame 1

: "&savegameinfo" this will show savegame 2

: "&savegameinfo" this will show savegame 3

: "&savegameinfo" this will show savegame 4

: choice_end();

doesnt that show the info of a savegame?

: you can try: say("&savegameinfo", 1);

i did. it does not work.
July 29th 2002, 12:22 AM
old.gif
: : &savegameinfo is made to check existing savegames, you cannot use it to show the info of a savegame,

: no game_exist() does.

: : choice_start();

: : "&savegameinfo" this will show savegame 1

: : "&savegameinfo" this will show savegame 2

: : "&savegameinfo" this will show savegame 3

: : "&savegameinfo" this will show savegame 4

: : choice_end();

: doesnt that show the info of a savegame?

: : you can try: say("&savegameinfo", 1);

: i did. it does not work.

no, both do:

choice_start();

"&savegameinfo"

choice_end();

if the savegame 1, exists, then it will show the info, if it doesnt and you click on it, then it will say: try to load a existing savegame.

but when you select a existing savegame, it will check again and load it.

July 29th 2002, 01:14 AM
sob_scorpy.gif
Tyrsis
Peasant She/Her Russia
 
: i am puzzled. how does &savegameinfo in a choice statement work? i dont follow... i want to get the game info for a saved game for a say command. is this possible? like... say("&savegameinfo",1); cept that that doesnt work.

You may insert variables into say(), but they are local or global variables, which are numbers.

&savegame and &buttoninfo are specific, internal variables of dink engine. They aren't numbers.

You can't use them except in choice().

July 29th 2002, 07:15 AM
fish.gif
Simeon
Peasant He/Him Netherlands
Any fool can use a computer. Many do. 
Freaks. Here's the truth of this DinkC mystery (for you two then) :

//This is the choice menu when you want to load a savegame. If a

//savegame exists, it'll show the info of the savegame. However,

//choosing one of the options in this menu won't load the savegame

//without the correct &result

choice_start();

"&savegameinfo"

"&savegameinfo"

"&savegameinfo"

"&savegameinfo"

"&savegameinfo"

"&savegameinfo"

"&savegameinfo"

"&savegameinfo"

"&savegameinfo"

"&savegameinfo"

"Nevermind"

choice_end();

//The following (in the Escape menu) will check if the game exists

//See, it gives the value of the result from the choice menu above

//and then it checks with game_exist if the game exists. If this

//returns 0, the game doesn't exist.

if (game_exist(&result) == 0)

{

//Actions here to say the game doesn't exist

}

//The following will load the game if it exists. It'll load the game

//from the &result from the choice menu. So if you choose savegame 3,

//&result will be 3 and this command will load savegame 3

load_game(&result);

//Oh, and this saves a game - the player chooses where to save the

//game and then the game will be saved:

save_game(&result);
July 29th 2002, 11:13 AM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
: Freaks. Here's the truth of this DinkC mystery (for you two then) :

: //This is the choice menu when you want to load a savegame. If a

: //savegame exists, it'll show the info of the savegame. However,

: //choosing one of the options in this menu won't load the savegame

: //without the correct &result

: choice_start();

: "&savegameinfo"

: "&savegameinfo"

: "&savegameinfo"

: "&savegameinfo"

: "&savegameinfo"

: "&savegameinfo"

: "&savegameinfo"

: "&savegameinfo"

: "&savegameinfo"

: "&savegameinfo"

: "Nevermind"

: choice_end();

: //The following (in the Escape menu) will check if the game exists

: //See, it gives the value of the result from the choice menu above

: //and then it checks with game_exist if the game exists. If this

: //returns 0, the game doesn't exist.

: if (game_exist(&result) == 0)

:  {

:  //Actions here to say the game doesn't exist

:  }

: //The following will load the game if it exists. It'll load the game

: //from the &result from the choice menu. So if you choose savegame 3,

: //&result will be 3 and this command will load savegame 3

: load_game(&result);

: //Oh, and this saves a game - the player chooses where to save the

: //game and then the game will be saved:

: save_game(&result);

um, yes i know all this... but it doesnt help me. please refer to my original question.
July 29th 2002, 11:16 AM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
: : i am puzzled. how does &savegameinfo in a choice statement work? i dont follow... i want to get the game info for a saved game for a say command. is this possible? like... say("&savegameinfo",1); cept that that doesnt work.

: You may insert variables into say(), but they are local or global variables, which are numbers.

: &savegame and &buttoninfo are specific, internal variables of dink engine. They aren't numbers.

: You can't use them except  in choice().

thats what i figured... and that sucks. i wish there were a way to store &savegameinfo into an integer variable or something... but i figured it should work for other things than in a choice statement.

July 29th 2002, 11:32 AM
sob_scorpy.gif
Tyrsis
Peasant She/Her Russia
 
: thats what i figured... and that sucks. i wish there were a way to store &savegameinfo into an integer variable or something... but i figured it should work for other things than in a choice statement.

What for? It is just a filename of a saver
July 29th 2002, 02:29 PM
girl.gif
joshriot
Peasant They/Them United States
keep it real 
: : thats what i figured... and that sucks. i wish there were a way to store &savegameinfo into an integer variable or something... but i figured it should work for other things than in a choice statement.

: What for? It is just a filename of a saver

i mean the info that you get from &savegameinfo, like the time/level.