A couple of more advanced questions...If anyone could help!

mezmriz65
14 Nov 2005, 20:10
Hey,

First, I am having trouble ending my game for some reason. When I have the game run the Finish Game command, the screen shows the end game stuff in the lower right hand corner but my loops keep running in the game screen. I have tried everything to end the game. Any help is appreciated.

In regard to Libraries, is it possible to create a section of a world in the QDK and then save it, procedures and all as a library file? And how would someone go about doing so? I have an area that I want to use in all my adventures that is rather complex and I don't want to have to recode it every time.

Lastly, I want to save a players stats (kills, which types of monsters killed, towns visited etc.) into a file and have it available every time he/she enters the world. How would one go about doing that? And is it possible to save stats for a NPC as well?

Thanks for your time and help!

Mezmriz

steve the gaming guy
14 Nov 2005, 21:22
It sounds like part of what's happening at the end of my game. It could be something simple like a procedure is finishing its process even though the game has ended. What I've seen is that if a procedure is long enough and somehow the game is ended before the procedure has finished, the game will seemingly end yet other things will continue to happen until the procedure is done.

mezmriz65
14 Nov 2005, 23:42
Glad to know I am not the only one...

It will not stop running the game no matter what I do. It is in the main combat loop. If all enemies are defeated the game should end but the loop keeps on running.

Anyway, thanks for your reply!

Mez

Arbutus
15 Nov 2005, 05:14
How about adding an end-game variable and checking that variable within the loop. If the game is over, break the loop.

About the game area library - interesting idea. Haven't tried it but I'm sure it's possible.