Jump to content


Photo

Promptel - Debugging Console Engine


  • Please log in to reply
1 reply to this topic

#1 bloxxin

bloxxin

    GMC Member

  • GMC Member
  • 63 posts
  • Version:GM:Studio

Posted 07 September 2015 - 08:56 PM

I made a debugging console engine of sorts. Just plop in the included object and two script and viola!

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

6etCGVe.png

Download

Edited by bloxxin, 09 September 2015 - 01:24 AM.

  • 0
T45JdTw.png

#2 Humayun

Humayun

    GMC Member

  • GMC Member
  • 52 posts
  • Version:GM:Studio

Posted 01 December 2015 - 06:03 AM

Its good and very nice. It helps me in many ways, I also like suggested commands.

 

Good Luck  :rolleyes:


  • 0