Difference between revisions of "Manual:DIL Manual/getcolor()"

From DikuMUD Wiki
Jump to navigation Jump to search
(XML import)
 
(XML import)
 
Line 1: Line 1:
 +
<span id="bfgcolor"></span>
  
 +
'''Function:  '''<i><!--CODE--> string getcolor (ch : unitptr, ks : string) ;</i><!--ENDCODE-->
  
 +
<!--TERM-->  '''ch'''
 +
<!--DEFINITION-->        character you are deleting the color from
 +
<!--TERM-->  '''ks'''
 +
<!--DEFINITION-->        key string for the color
 +
<!--TERM-->  '''returns'''
 +
<!--DEFINITION-->        returns the color in a string
 +
 +
This function returns what color a player has for a key in the players list.
 +
'''Function:  '''<i><!--CODE-->string := getcolor(pc, "clan_who");</i><!--ENDCODE-->
 
<span id="bfgcolor"></span>
 
<span id="bfgcolor"></span>
  

Latest revision as of 22:38, 4 December 2025

Function:   string getcolor (ch : unitptr, ks : string) ;
  ch
         character you are deleting the color from
  ks
         key string for the color
  returns
         returns the color in a string
This function returns what color a player has for a key in the players list.
Function:  string := getcolor(pc, "clan_who");

Function:   string getcolor (ch : unitptr, ks : string) ;
  ch
         character you are deleting the color from
  ks
         key string for the color
  returns
         returns the color in a string
This function returns what color a player has for a key in the players list.
Function:  string := getcolor(pc, "clan_who");