Using Smell

The Quest command for smell has the line: if (HasFullString(game.pov.parent, "smell")) {

if (HasFullString(game.pov.parent, "smell")) {
  msg (game.pov.parent.smell)
}
else {
  msg ("You smell nothing usual.")
}
```.
This throws an error if I have an attribute: ```smell``` with a string. I copied it and used ```HasAttribute``` and it works fine.
Is HasFullString legit?

The only smell command I can find is a verb, smell #object#; sniff #object#, which comes back with the default response
"You sniff, but " + object.gender + " doesn't smell of much."

In answer to your question though, I can't find HasFullString, I can find HasString though.


Type "smell" into the GUI filter.


"smell" comes up as a default verb for me too (Quest v5.8). Maybe you created a smell command?


It came up as a command, 'smell #object#' for me. I had to hit copy to make changes. On phone right now. Will look and see if I added it in a type somewhere. That would have the yellow line on it that makes you hit copy to change it, I believe.


Either way, it works now. was just wondering if HasFullString was right. Can't find it in the forums


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums