SC2Mapster.com Wiki

SC2 API / Functions / TriggerDebugOutput

TriggerDebugOutput

void TriggerDebugOutput(int triggerDebug, text message, bool UI);

Display a debug message

Parameters

int triggerDebug
  • 0: Do not show in the trigger debug panel
  • Everything but 0: Show in the trigger debug panel
text message

Message to be displayed. If you want to display a string, you first have to convert it with the function StringToText(string s). It will only display the first 1015 characters.

bool UI
  • true: Display in the UI
  • false: Do not display in the UI

Examples

Example #1: Usage
// Display only in the trigger debug panel
TriggerDebugOutput(1, StringToText("Trigger Debug Only"), false);

// Display only in the UI
TriggerDebugOutput(0, StringToText("UI Only"), true);

// Display in both the UI and the trigger debug panel
TriggerDebugOutput(1, StringToText("Both Trigger Debug and UI"), true);
Example #2: Helper
void DebugAI (string s) {
        TriggerDebugOutput(1, StringToText(s), true);
}
DebugAI("Test");
  • triggerdebugmessage.PNG

You must login to post a comment. Don't have an account? Register to get one!

Facts

Date created
Mar 08, 2010
Last updated
Mar 18, 2010

Author