You would write this inside your main game loop. You can add as many commands as you want. Just use more ELSEIFs.
IF BUTTON(2) AND #Y THEN
CEXIT=FALSE
WHILE !CEXIT
LINPUT "COMMAND: "; C$
IF C$=="EXIT" || C$=="CLOSE" THEN
CEXIT=TRUE
ELSEIF C$=="GODMODE" THEN
HP=10000
PRINT "HEALTH SET TO 10K"
ELSE
PRINT "UNKNOWN COMMAND"
ENDIF
WEND
ENDIF
1そうだね プレイ済み