&savegameinfo
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.
&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);
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);
: &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 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.
: : &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.
: 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.
: 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().
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().
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);
//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);
: 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.
: //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.
: : 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.
: 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.
: 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
What for? It is just a filename of a saver
: : 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.
: What for? It is just a filename of a saver
i mean the info that you get from &savegameinfo, like the time/level.









