Thanks hockeykid.
First of all I don't consider this a game engine. It modifies the game engine to include RPG stuff which I consider separate from the game loop at this time.
When I initially started designing this I really wanted to be able to talk to an NPC and allow the game to continue looping at the same time. I tried several different possibilities, however, the frame rate took a real dive. I was about to give up on the whole project when I thought that hey, this is
not for a dedicated shooter game, it is RP. Therefore, it isn't so bad to stop action until the necessary RP stuff is finished. As soon as it is finished then whatever actions need to be taken care of will be done immediately after anyway. Also, I don't think I want to be shot at and my health taken away while I'm talking with an NPC or looking at my inventory.
The variable idea is a good idea which at that time I hadn't thought of. This would probably take care of some of the frame rate loss as it wouldn't always execute until it is told to execute. Unfortunately, I will not do anything with that because I want to release what I have.
I have health problems that are not going to go away. These problems have to do with memory and my thinking ability. I feel the Lord has blessed me to be able and do what I am able to do so far. However, it keeps getting more difficult and it is taking longer to work through even the simplest problems.