Cryptonomic |
I notice that this function does not seem to work as indicated in the tutorial, at least in one instance. In chapter 16, I am going through the examples. I use: (if(Said('look/at/me')) Print("You look sort of pixellated.") ) This just prints the text "You are in an empty room", which is the text that is actually part of the default: (if(Said('look')) Print ("You are in an empty room") ) However, I notice if I do the following: (if(Said('look,examine / me')) Print("You look sort of pixellated.") ) it works just fine. Also, even my modified version does not work if you put it after the default 'look' condition. It only works if you put it before the default 'look' condition. If you my if-condition after the default block, it just prints the "You are in an empty room." (Note also that my original condition of 'look/at/me' does not work, regardless of whether you put it before or after the default 'look' condition. Interestingly, even if you comment out the default 'look' condition, the 'look/at/me' condition still does not work. In that case, it just says: "You've left me responseless.") |
Cryptonomic |
Has anyone determined why some of these things in my previous post do not work? I ask because I am writing a new SCI tutorial and it is hard to explain why some things simply do not work. None of this is really covered, hence the new tutorial. I am most curious why the following does not work: (if (Said('look/at/me')) Print ("You look sort of pixellated.") ) I am curious about that particularly since the tutorial has an example almost exactly like this, the only difference being that it says (Said('look/at/tree'). By the way, I know there are different ways to get "look at me" to work, but according to the Help file and to the tutorial the above way should work. Since it does not, at least for me, I am curious what I am doing wrong or what I am missing. |
DaLeroy |
Hi I've also noticed the EXACT same thing as you. Was wondering why this doesn't work. Any ideas Brian? Leon Cryptonomic wrote: |
Eigen |
And how can I check if player says look/car and look/in/car .If I type in 'look in car' it prints the 'look car' message. Here's how I do it: (if(Said('look>')) (if(Said('/car')) Print("It's a car.") ) (if(Said('/in/car')) Print("You see a pair of keys in there.") But this doesn't seem to work. -Eigen |
DaLeroy |
Some additional info/problem... I also cannot get (if(Said('ask/about/dagger')) to work. It doesn't understand this. Eigen: Does it work if you put (if(Said('look>')) (if(Said('/in/car')) Print("You see a pair of keys in there.") (if(Said('/car')) Print("It's a car.") ) |
Eero R | Um, all the words like "at", "in" and "about" are maybe ignored my engine, like in AGI games... Dunno though, nothing about this in tutorial... |
humanity | I've actually been fighting with that this evening. My if-said "ask/about,for/diploma" statement wasn't working, until I edited the vocab resource, changing the type of these words from a subordination to a preposition. This caused it to work. I'm not sure if it will cause problems later. |