|
Axe Software Forums
Quest Developer Forum Synonyms
|
Author | Topic: Synonyms |
BigDaddy |
posted 17-12-2001 23:47 GMT
When I try to use synonyms in the game I get a runtime error 6. If I take the synonums out of the define synonyms block I dont get any errors and the game functions normally. |
Computer Whizz |
posted 18-12-2001 14:41 GMT
Do you have any sample code or a file? You should e-mail this to Alex, he should help you pretty quickly. Computer Whizz |
Alex |
posted 18-12-2001 23:38 GMT
BigDaddy emailed me his code and this is a copy of my reply: Your synonyms block consists of this line: necklace; pendant; golden eagle; eagle = golden necklace This means if a player types "LOOK AT NECKLACE", Quest will replace the word "NECKLACE" with "GOLDEN NECKLACE", as you expect. However, this still contains the word "NECKLACE", so Quest will replace that again with "GOLDEN GOLDEN NECKLACE", then "GOLDEN GOLDEN GOLDEN NECKLACE"... you end up with an infinite loop which is why Quest is crashing with the error. I suggest you replace the above line with: golden necklace; pendant; golden eagle; eagle = necklace and change your "golden necklace" object to a "necklace" object, with a prefix of "golden". Incidentally, Quest 3.1 will reduce the need for synonyms as you'll be able to define "necklace" as an alternative name for "golden necklace", right from the golden necklace's properties window. |