FutureProg functions

bestkeywordroom

Utilitiescomputer function, computer program, standard futureprog

bestkeywordroom overload 1

Text bestkeywordroom(Character source, Item target)
Available in
  • 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.
ParameterTypeDescription
source Character The source for whom you want to identify the keyword
target Item The target whose keyword you want to identify