- Title: Cheat/Command console
- Description: Easy to implement console for your game
- GM Version: 8.0
- Registered: No
- File Type: .GMK
- File Size: 13kB
- File Link: Console English.gmk
- Required Extensions: None
- Required DLLs: None
I'm sure alot of you play games. Almost all of these games have consoles build in:
I've built exactly a console like it for your GM games. It auto-suggests commands and it's very easy to add commands.
How do I add commands?
In obj_console, in the create event there's a variable called consoleCommands and a script called initCommands(). For example you can have the following:
consoleCommands = " Put the command here|<Add a 'pipe' and put some information here if you want, End with a comma, exit|Shuts down the game, restart|Restarts the game, givememoney|\#"; commandCount = initCommands(consoleCommands);The script initCommands creates a array with your commands called cmd. commandCount tells you how big that array is
Then there's a script runCommand. Open this and add your stuff
Any questions? Just ask 'm!