Axe Software Forums
  Quest Developer Forum
  a question to alex & other ppls ------ >


Author Topic:   a question to alex & other ppls ------ >
carlii posted 31-12-2001 10:24 GMT     
If you load a saved game, does Quest also start the 'Start of Game' script?
Pikaflare posted 31-12-2001 18:22 GMT          
Yes, but you could use $loadmethod$ if you want something like variables tobe initated only when starting anew game. Like this:
if ($loadmethod$ = normal) {
; everything you want loaded
}

I just included that in case you haven't thought of it. I hope this is what you meant.

Maxpowr

Tyrant posted 31-12-2001 21:17 GMT          
On another note, does anybody know if saved games save the contents of string variables? I would assume they would, but I haven't tried it yet. That would save me the time of having to ask what the player's name is everytime they start the game.
Alex posted 01-01-2001 12:25 GMT          
Well of course saved games save the contents of string variables! Things would get pretty hairy otherwise :)
carlii posted 01-01-2001 12:44 GMT          
Pikaflare, how would I put that code into QDK?
Computer Whizz posted 01-01-2001 04:54 GMT          
Alex - is there a limit on the save game file size?
I don't want to put in too many variables and find that the player can't save ;)

Computer Whizz

Alex posted 01-01-2001 18:21 GMT          
The only limit in Quest is the maximum size of an integer, which is 32767 under Windows 95 et el. So as long as you have fewer variables than that, you should be OK :)
Pikaflare posted 02-01-2001 22:28 GMT          
Simply add something like that to your Start game script. $loadmethod$ can be 'normal' or 'loaded'
if ($loadmethod$ = normal) {
everything you want done if the game isn't loaded from a saved game.
}

It's all in the help file. If you still need help hopefully one of us will be here.

Maxpowr