- Joined
- Jun 25, 2008
- Messages
- 2,348
How Is it implemented? Do you have to manually add each trigger or it does it all?
Last edited:
//! novjass
Here are some available functions for JASSers:
function DebugTrigger_SetTraceTrigger(trigger, boolean)
If the trigger is in the system, this enables the tracing of the trigger in the evaluation
of conditions.
Also, if udg_DebugTrigger_Trace_DISABLE is true, the boolean flag determines the state of the
trigger such that setting it to true would enable it, and the inverse is true.
function DebugTrigger_SetWatchTrigger(trigger, boolean)
If the trigger is in the system, this enables the watching of the trigger. This is enabled by
default. When tracing is enabled, a trace message will be displayed.
function DebugTrigger_WatchTrigger(trigger, string)
If the trigger is in the system, an error will be displayed. Otherwise, if the name of the
trigger, which the string represents, has already been cached, the system will display
a notification, printing the new name of the trigger.
The variable types enclosed in parentheses are the arguments of the function.
//! endnovjass
//! novjass
DebugTrigger_EnumPlayer
An extra variable that has no other practical purpose after initialization.
Consider this a free variable to use.
DebugTrigger_ListenerCountKey = 0
The key to the hashtable that stores the number of iterations a trigger
has made.
DebugTrigger_ListenerKey = 0
The key to the hashtable that stores the flag that determines whether
subsequent trigger iterations will be counted.
DebugTrigger_ListenerTrace = 0
The key to the hashtable that stores the flag that determines whether
subsequent trigger iterations will display information.
DebugTrigger_StringKey = 0
The key ... that stores the indices of hashed strings.
DebugTrigger_SubString[] = <Empty String>
A string array variable that is used whenever <gen> Debug Trigger
Core catches a player chat event. Indices used are 0, 1, and 2.
DebugTrigger_TriggerHandle = 0
The key ... that stores the triggers, bound to their indices.
DebugTrigger_TriggerIndex = 0
The key ... that stores the indices of the triggers, bound to their
Handle id or Key of, in GUI.
DebugTrigger_TriggerList = 0
A static linked list that stores all the indices relevant to the system
(e.g, indices generated by another system that are used to store
registered triggers)
DebugTrigger_TriggerKey = 0
The key ... that acts as the allocator variable.
DebugTrigger_TriggerNameKey = 0
The key ... that stores the name of each and every trigger.
DebugTrigger_TriggerNameCount = 0
The key ... that stores the number of times the same trigger name
has been used.
//! novjass