Here is part of my code and check the str_for_key in both actions.


Code:
action WepShoppe_loadLvL() // attach this action to an entity at the weapons shoppes door 

{
       
       while (vec_dist (player.x, my.x) > 100)  // wait until the player comes close to this entity

       {         
               wait (1);        
       }
       
       level_load (WepShoppe_wmb); // now load the wepshoppe level
       mouse_mode = 4; // set courser on for this lvl
       mouse_map = cursor_pcx;           
       str_for_key(key_weapon1, 11); // swich 2 into 11 on  key_board
       


action City1_loadLvL() // attach this action to an entity at the door in WepShoppe lvl to go back to main level

{
       while (vec_dist (player.x, my.x) > 100)  // wait until the player comes close to this entity
       {
               wait (1);        
       }   
       str_for_key(key_weapon1, 2); // swich 11 back into 2 on keyboard       
       level_load (City1_wmb); // now load the main level
       mouse_mode = 0;  //turn off mouse courser       
}



I know it does not solve the problem completely but after 2 weeks working on this I said its close enough. laugh


Honesty will get you far, were dishonesty will get you only so far in life.