kts.GetPlayerName

Name

kts.GetPlayerName – get the name of a player

Synopsis

result = kts.GetPlayerName(player)

result = kts.GetPlayerName(knight)

Description

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.

Return Value

A string containing the name of the player is returned.

Errors

If the input is not either a valid Player or a valid Creature representing a knight, then an error is raised.

See Also

kts.GetAllPlayers

kts.GetPlayer