FutureProg functions
bestkeywordroom
Text bestkeywordroom(Character source, Item target)
Contexts: computer function, computer program, standard futureprog
This function allows you to determine what the 'best' keyword is for a target from a source. In this case, best implies a unique keyword that will allow the source to target the target through all regular commands. This version of the command considers only the room contents and not the player's inventory. If there is no best keyword, i.e. if this thing can't be targeted, then the returned text will be null.
source: The source for whom you want to identify the keyword
target: The target whose keyword you want to identify
Contexts: computer function, computer program, standard futureprog
This function allows you to determine what the 'best' keyword is for a target from a source. In this case, best implies a unique keyword that will allow the source to target the target through all regular commands. This version of the command considers only the room contents and not the player's inventory. If there is no best keyword, i.e. if this thing can't be targeted, then the returned text will be null.
source: The source for whom you want to identify the keyword
target: The target whose keyword you want to identify