kts.GetPlayerName – get the name of a player
result = kts.GetPlayerName(player)
result = kts.GetPlayerName(knight)
This function takes one parameter, which can either be a Player object (e.g. as returned from kts.GetPlayer), or a Creature object representing a knight. The name of the corresponding player is returned.
A string containing the name of the player is returned.
If the input is not either a valid Player or a valid Creature representing a knight, then an error is raised.