Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739
Crazy Tronners Wiki - Trunk Scripting

Trunk Scripting

From Tronwiki
Jump to: navigation, search
(Classes)
(Classes)
Line 86: Line 86:
 
{{ClassFunction|set_callback(function func)|Callback function}}
 
{{ClassFunction|set_callback(function func)|Callback function}}
 
{{FunctionParameter|func|the function you declare}}
 
{{FunctionParameter|func|the function you declare}}
 +
  
 
{{ClassSetting|Output|}}
 
{{ClassSetting|Output|}}
Line 97: Line 98:
 
   append(Output o)
 
   append(Output o)
 
   bool is_empty()
 
   bool is_empty()
 +
  
 
{{ClassSetting|Color|}}
 
{{ClassSetting|Color|}}
Line 107: Line 109:
 
   x
 
   x
 
   y
 
   y
 +
  
 
{{ClassSetting|ConfItem|}}
 
{{ClassSetting|ConfItem|}}
Line 115: Line 118:
 
   set(string s)
 
   set(string s)
 
   get(string s)
 
   get(string s)
 +
  
 
{{ClassSetting|AccessLevelSetter|}}
 
{{ClassSetting|AccessLevelSetter|}}
 
   tAccessLevelSetter(ConfItem item, AccessLevel level)
 
   tAccessLevelSetter(ConfItem item, AccessLevel level)
 +
  
 
{{ClassSetting|ConfItemScript|}}
 
{{ClassSetting|ConfItemScript|}}
 
   ConfItemScript(string title, function proc);
 
   ConfItemScript(string title, function proc);
 +
  
 
{{ClassSetting|LadderLogWriter|}}
 
{{ClassSetting|LadderLogWriter|}}
Line 129: Line 135:
 
   static set_all(bool enabled)      //!< enable or disable all writers
 
   static set_all(bool enabled)      //!< enable or disable all writers
 
   set_callback(proc)        //!< bind a procedure from scripting language to this ladder log writer.
 
   set_callback(proc)        //!< bind a procedure from scripting language to this ladder log writer.
 +
  
 
{{ClassSetting|PlayerConf|}}
 
{{ClassSetting|PlayerConf|}}
Line 136: Line 143:
 
   PlayerConf player_config(int p)
 
   PlayerConf player_config(int p)
 
   bool is_in_game(int p)
 
   bool is_in_game(int p)
 +
  
 
{{ClassSetting|AccessLevelHolder|}}
 
{{ClassSetting|AccessLevelHolder|}}
 
   AccessLevel get_access_level()
 
   AccessLevel get_access_level()
 
   set_access_level(AccessLevel level)
 
   set_access_level(AccessLevel level)
 +
  
 
{{ClassSetting|Player|}}
 
{{ClassSetting|Player|}}
Line 200: Line 209:
 
   Player set_name(string name)            //!< Sets this player's name. Sets processed names (colored, username, nameFromCLient) as well.
 
   Player set_name(string name)            //!< Sets this player's name. Sets processed names (colored, username, nameFromCLient) as well.
 
   Player set_user_name(string userName)        //!< Sets this player's name, cleared for system logs. Use for writing to files or comparing with admin input. The other names stay unaffected.
 
   Player set_user_name(string userName)        //!< Sets this player's name, cleared for system logs. Use for writing to files or comparing with admin input. The other names stay unaffected.
 +
  
 
{{ClassSetting|Team|}}
 
{{ClassSetting|Team|}}
Line 246: Line 256:
 
   unsigned short blue()
 
   unsigned short blue()
 
   string name()
 
   string name()
 +
  
 
{{ClassSetting|SpawnPoint|}}
 
{{ClassSetting|SpawnPoint|}}
Line 254: Line 265:
 
   real danger()
 
   real danger()
 
   clear()
 
   clear()
 +
  
 
{{ClassSetting|Arena|}}
 
{{ClassSetting|Arena|}}
Line 266: Line 278:
 
   static real size_multiplier()
 
   static real size_multiplier()
 
   remove_all_spawn()
 
   remove_all_spawn()
 +
  
 
{{ClassSetting|Cycle|}}
 
{{ClassSetting|Cycle|}}

Revision as of 11:06, 8 January 2010

Personal tools