Common Includes: Difference between revisions

From Sinfar
(Created page with "Directory of common includes which may be useful for scripters inc_debug inc_chatcmd x0_i0_stringlib inc_x_cstmfac pc_inc_teleport")
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Directory of common includes which may be useful for scripters
Directory of common includes which may be useful for scripters


inc_debug
=== inc_debug ===
void Alert(string sString);


inc_chatcmd
* Send a debug message (See BuildDebugMessage()), to all builders that can modify this ERF and print this message in the log associated with the script


x0_i0_stringlib
void Debug(string sString, object oBuilder=OBJECT_SELF);


inc_x_cstmfac
* Send a debug message (See BuildDebugMessage()), to oBuilder. If oBuilder is not a PC then the function will try to fun the best target: Master, Nearest Object
* This function is slow and should only be use for debugging purpose.


pc_inc_teleport
string GetObjectDebugInfo(object oObject)
 
* Builds a string of relevant information about a PC, creature or other object. Useful in a Log function, for example.
 
=== inc_chatcmd ===
 
=== x0_i0_stringlib ===
 
=== inc_x_cstmfac ===
 
=== pc_inc_teleport ===
 
 
[[:Category:Scripting]]

Latest revision as of 19:40, 27 April 2025

Directory of common includes which may be useful for scripters

inc_debug

void Alert(string sString);

  • Send a debug message (See BuildDebugMessage()), to all builders that can modify this ERF and print this message in the log associated with the script

void Debug(string sString, object oBuilder=OBJECT_SELF);

  • Send a debug message (See BuildDebugMessage()), to oBuilder. If oBuilder is not a PC then the function will try to fun the best target: Master, Nearest Object
  • This function is slow and should only be use for debugging purpose.

string GetObjectDebugInfo(object oObject)

  • Builds a string of relevant information about a PC, creature or other object. Useful in a Log function, for example.

inc_chatcmd

x0_i0_stringlib

inc_x_cstmfac

pc_inc_teleport

Category:Scripting