                     Ŀ
                         V2 Console Command Summary    
                     
Current as of 5.9.99

Using the Command Console
    
The command console is summoned by the ~ (tilde) key. Pressing the same key
a second time hide the console as well. If ~ does not bring the console down,
the game designer has disabled it via the AllowConsole(0); call.

You basically use it by just typing commands into it. The actual commands will
be detailed below. However, in addition to typing commands, it also supports
the following features:

  The UP/DOWN keys are a 10-entry Last Command Memory.
  The PGUP/PGDN keys allow you to use the scrollback features.
  TAB is command-name completion.

Console Command Reference
    
Ŀ
 ACTIVEENTS  Parameters: None                                         
 Usage: ACTIVEENTS                                        
 Description: Lists the index numbers of all active (onscreen)         
  entities.                                                            

Ŀ
 BROWSETILES  Parameters: None                                        
 Usage: BROWSETILES                                      
 Description: Displays the tileset currently loaded. Inside the browse 
  interface, the up/down keys scroll through the tiles if there are    
  more than fit on the screen. The A key toggles tile animation, Q     
  exits the browse interface.                                          

Ŀ
 CAMERATRACKING  Parameters: [on/off]                                 
 Usage: CAMERATRACKING [0/1]                          
 Description: If CAMERATRACKING is executed with no parameters, the    
  status (0 or 1) will be returned. If 0 or 1 is specified as the 1st  
  parameter, that will set a new value for cameratracking. This        
  variable controls whether or not the camera follows the player       
  around at all times.                                                 

Ŀ
 CD_OPEN   Parameters: None                                           
 CD_CLOSE  Usage: CD_OPEN                                             
 Usage: CD_CLOSE                                            
 Description: Opens or closes the CD tray door, respectively.          

Ŀ
 CD_PLAY  Usage: CD_PLAY <tracknum>                                   
 CD_STOP  Usage: CD_STOP                                              
 Description: CD_PLAY begins CD audio playback at the        
 specified track number. CD_STOP stops all CD audio playback.          

Ŀ
 CONSOLEBG  Parameters: None                                          
 Usage: CONSOLEBG <imagename>                              
 Description: Sets the specified image as the console background. The  
  image can be in PCX, GIF or BMP format, but must be 320x240.         

Ŀ
 CPU_USAGE  Parameters: [on/off]                                      
 Usage: CPU_USAGE [0/1]                                    
 Description: Turns on or off the CPU usage monitor. When it's on, it  
  displays an FPS report and shows CPU usage in the categories of      
  rendering, pageflipping, and game ai (etc).                          

Ŀ
 CURPOS  Parameters: None                                             
 Usage: CURPOS                                                
 Description: Returns the current coordinates of the player.           

Ŀ
 ENITITY  Parameters: [index]                                         
 Usage: ENTITY [ent num]                                     
 Description: Returns the current coordinates of the given entity.     

Ŀ
 ENITITYSTAT  Parameters: None                                        
 Usage: ENTITYSTAT                                       
 Description: Gives a report on the current entity stats.              

Ŀ
 EXIT  Parameters: None                                               
 Usage: EXIT                                                    
 Description: Exits to DOS.                                            

Ŀ
 LISTCMDS  Parameters: None                                           
 Usage: LISTCMDS                                            
 Description: Lists all registered console commands.                   

Ŀ
 LISTMOUNTS  Parameters: None                                         
 Usage: LISTMOUNTS                                        
 Description: Lists all currently mounted packfiles.                   

Ŀ
 MAP  Parameters: [MAP name]                                          
 Usage: MAP [MAP name]                                           
 Description: MAP with no parameters gives a statistics report about   
  the currently loaded MAP. Otherwise, it will attempt to map switch   
  to the map file specified.                                           

Ŀ
 MOUNT  Parameters: [Packfile]                                        
 Usage: MOUNT [packfile name]                                  
 Description: MOUNT will mount the specified packfile and add it to    
  VERGE's packfile search list.                                        

Ŀ
 PACKINFO  Parameters: [Packindex]                                    
 Usage: PACKINFO [packindex]                                
 Description: Packinfo returns a list of files and in a given packfile.
  To view the first packfile mounted, you would type "packinfo 0".     

Ŀ
 PHANTOM  Parameters: [On/Off]                                        
 Usage: PHANTOM [0/1]                                        
 Description: Turns on or off Phantom mode (no clipping)               

Ŀ
 PLAYER  Parameters: [Entity index]                                   
 Usage: PLAYER [idx]                                          
 Description: Sets the player to the given entity number.              

Ŀ
 PLAYERSPEED  Parameters: [speed]                                     
 Usage: PLAYERSPEED [1-7]                                
 Description: Sets the player speed                                    

Ŀ
 SHOWOBS  Parameters: [on/off]                                        
 Usage: SHOWOBS [0/1]                                        
 Description: If this is turned on, grid will be drawn on top of the   
 render process denoting where the obstruction are on the map.         

Ŀ
 SHOWZONES  Parameters: [on/off]                                      
 Usage: SHOWZONES [0/1]                                    
 Description: If this is turned on, grid will be drawn on top of the   
  render process denoting where the zones are on the map, color coded. 

Ŀ
 SPEEDDEMON  Parameters: None                                         
 Usage: SPEEDDEMON                                        
 Description: This command will enable the "2x speed" cheat to allow   
  the player to move twice his normal velocity when the CTRL key is    
  held down.                                                           

Ŀ
 VER  Parameters: None                                                
 Usage: VER                                                      
 Description: Displays a V2 version report and build info.             

Ŀ
 WARP  Parameters: [tile-x, tile-y]                                   
 Usage: WARP [x] [y]                                            
 Description: Warps the player to the specified location.              


Special Commands: RV/SV
    
These two additional console commands are extremely useful in the development
and debugging of your Verge game, especially with advanced VC. These commands
stand for ReadVariable and SetVariable, respectively; they allow you to access
the value of any user declared (system.vc global) variable (ints only, not
strings). You can access both single ints and array components.

For example, to read the value of a variable named "gold" you'd simply do:
RV GOLD
and the value of the variable would be printed out. To set the value of "gold"
to a really big value, you'd type:
SV GOLD 1500000

To use array variables, you simply add another parameter which is the array
offset, ie:
RV FLAGS 105
Would return the value of flags[105]. Likewise, to set the value of flags[20]
to 0, you'd type:
SV FLAGS 20 0

Have an idea for a console command you'd like to see implemented? Mail me
at aen@verge-rpg.com and We'll consider your request.

- Verge2 staff
