FutureProg functions

bestkeyword

Utilities · computer function, computer program, standard futureprog

Text bestkeyword(Character source, Character 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. 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

Text bestkeyword(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 both the player's inventory and the room contents. 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

← Back to FutureProg functions