DaLeroy |
Hi guys I'm creating a game in SCI Studio and it's doing weird things. I've added a number of custom words to the vocab.000 file. One of these is 'potion', set as a noun. If I set up the follow if statement (if(Said('use/potion')) Print("It works") ) The program returns an error message 'Bad Said Spec' and a list of heaps of numbers. I press enter, and the next message is 'Oops, you tried something we didn't expect' and the program quits. If I type look in the program, it sometimes does the same thing. However, on other rooms, I have setup lots of Said statements and they all work fine. I created a new game, added the 'potion' word to the vocab and used the same Said command, and it worked fine. I then extracted that vocab file and inserted it into my game, but the same error message happens. Any idea what the heck is going on here? *UPDATE* Once it's crashed once, it seems to crash no matter what I type in (after I've loaded it up again). It happens on multiple computers to. It doesn't make a difference if the Said statment is in the main or a seperate room file. |
Eigen |
You should check your Main.sc and your current room for other (if(Said('use/ ')) This could couse the error. -Eigen |
Brian_Provinciano | You need to recompile all the scripts if you change the vocab as they use it too. If it's rearranged or anything, then the uncompiled scripts' said commands will be pointing to different words. |
DaLeroy |
Brian Provinciano wrote: Fixed it!!! :) I recompiled all scripts...and fixed up my code. I had some brackets missing in some of my if statements and also used Said("blah") instead of Said('blah') in some places ::) All good now!! Thanks guys! |