call up a console somewhat like Quake or Halflife, in the main loop do this
if keystate(keycode) then gosub get_a_console_command
and then have a small snippet like this (this is just an example)
get_a_console_command:
input a$
if a$="impulse 101"
bullets=500
grenades=20
for i=1 to 9
gun(i)=1
next i
health=100
armour=100
endif
if a$="ghost"
gravity=0
hit_enabled=0
endif
if a$="win this level"
level_complete=1
playerx=245
playery=120
playerz=32
key=1
endif
return
enables you to enter three commands you may recognise
, when you press the key allocated to the console, the game will pause and the cursor come up, you type in the command and press return and the appropriate values in the game get altered, hope thats what you meant.
The reason I used a gosub rather than a function in this example is that all those variables will most likley be global and you dont want to just alter them inside the function, or when you return to the main game loop they will not have been reset, so this is the easy way to do it, cheers.
Mentor.
Get Pro sorted, I am a customer not a BETA tester.