Major update
Created top hak for crafting dialog. Moved Bioware creature abilities to top hak. Fixed DMFI wand handouts. Added DMFI language handouts. Added CCOH 6. Disabled PC corpse system. Modified new player startup system. Full compile. Updated release archive.
This commit is contained in:
55
_module/nss/mk_inc_debug.nss
Normal file
55
_module/nss/mk_inc_debug.nss
Normal file
@@ -0,0 +1,55 @@
|
||||
|
||||
void MK_DEBUG_TRACE(string s);
|
||||
|
||||
int MK_DEBUG_GetDebugMode();
|
||||
|
||||
object MK_DEBUG_GetPC(object oPC = OBJECT_SELF)
|
||||
{
|
||||
if (GetIsPC(oPC))
|
||||
{
|
||||
return oPC;
|
||||
}
|
||||
oPC = GetMaster(oPC);
|
||||
if (GetIsPC(oPC))
|
||||
{
|
||||
return oPC;
|
||||
}
|
||||
return GetFirstPC();
|
||||
}
|
||||
|
||||
int MK_DEBUG_GetDebugMode()
|
||||
{
|
||||
return GetLocalInt(GetModule(), "MK_DISPLAY_DEBUG_MESSAGES");
|
||||
}
|
||||
|
||||
void MK_DEBUG_TRACE(string s)
|
||||
{
|
||||
if (!MK_DEBUG_GetDebugMode()) return;
|
||||
object oPC = MK_DEBUG_GetPC(OBJECT_SELF);
|
||||
if (GetIsObjectValid(oPC))
|
||||
{
|
||||
SendMessageToPC(oPC, s);
|
||||
}
|
||||
/**/
|
||||
}
|
||||
|
||||
/*
|
||||
void MK_DEBUG_SetCustomToken(int nCustomTokenNumber, string sTokenValue)
|
||||
{
|
||||
SetCustomToken(nCustomTokenNumber, sTokenValue);
|
||||
MK_DEBUG_TRACE("SetCustomToken("+IntToString(nCustomTokenNumber)+",'"+sTokenValue+'")");
|
||||
}
|
||||
*/
|
||||
|
||||
void MK_DEBUG_SpawnScriptDebugger()
|
||||
{
|
||||
if (!MK_DEBUG_GetDebugMode()) return;
|
||||
SpawnScriptDebugger();
|
||||
}
|
||||
|
||||
/*
|
||||
void main()
|
||||
{
|
||||
|
||||
}
|
||||
/**/
|
Reference in New Issue
Block a user