Hi Merry
You must be getting something wrong syntax wise, $getobjectname()$ works exactly like it is supposed to.. try running this code...
' "Game Name"
' Created with QDK Pro 4.0 Beta 2
define game <Game Name>
asl-version <391>
gametype singleplayer
start <Start Room>
game author <Your Name>
game version <1.0>
game copyright <© 2006 ...>
game info <Enter any additional information about this game here.>
command <find anywhere #obj#> {
msg <$getobjectname(#obj#; game)$>
}
command <find #obj#> {
msg <$getobjectname(#obj#)$>
}
end define
define options
debug on
panes on
end define
define room <Start Room>
look <Description Goes Here>
define object <blue_widget>
alias <widget>
look <it is a blue widget>
take
displaytype <Object>
article <it>
gender <it>
end define
end define
define room <limbo>
define object <gun>
alias <revolver>
look <Smith & Wesson.38>
end define
end define
define text <intro>
Enter intro text here
end define
define text <win>
Enter win text here
end define
define text <lose>
Enter lose text here
end define
You'll see that "find widget" returns the proper name of the widget be it in the room or in the inventory as it is supposed to do, but "find revolver" returns ! as the revolver is in another room.
'Find anywhere revolver' will return 'gun' (this code is using the 'game' parameter)
Obvious thought - you do realise that this function is purely used to get real object names for objects that have aliases?
Al