It includes three basic commands as examples. The console is resizable, the output can be scrolled with the mouse scroll wheel, and the console is opened by pressing ~
To include a new command, go into oConsole's create event and find this:
//help file vars COMMAND_NUM = 3; i = 0; Command[i,0] = "help"; Command[i,1] = "help @command"; ++i; Command[i,0] = "say" Command[i,1] = "say @message"; ++i; Command[i,0] = "spawn"; Command[i,1] = "spawn @object @x @y"; ++i; /*Command[i,0] = ""; Command[i,1] = ""; ++i;*/Copy the template at the bottom, paste it, then put in your new command's name and a list of arguments as below. Don't forget to increment the constant COMMAND_NUM!
Then open up the execute() command and create a new case statement before the default case. Utilize whatever arguments you would want in the command and do stuff with it.
Credit is required and the name 'Promptel' must be preserved in the console's title bar. Otherwise, this is free to use in any project, commercial or not ;3
Edited by bloxxin, 09 September 2015 - 01:24 AM.