exit and load game code

Started by Candle, Sun 11/04/2004 22:55:59

Previous topic - Next topic

Candle

I have a menu and  I did know what the code was but I can't remember it for the life of me .
I just need to load a game and exit the game code ..

strazer

#1
"exit the game code"?
I don't know what you mean exactly, maybe you can explain further?

- To abort a running game, press ALT+X.
- Script code to quit a game is QuitGame(0);
Edit:
- Script code to abort the rest of a function is return; (mentioned in this page)

Candle

I have a exit hotspot a load hotspot and a start hotspot on my menu room .
The exit one you just gave me works but the Load(); gives me an error ?
IS that the right code to call a save game to play ?

strazer

You can call the built-in restore dialog with RestoreGameDialog();

I haven't done my own dialogs for this yet, so I can't tell you how to do that.
But it's a popular topic and I'm sure several threads can easily be found with the forum search function.

Candle

Thank you thank you , thats the one I couldn't remember .. damn memory is going to hell on me and I forget so much stuff now  .

SMF spam blocked by CleanTalk