I’m trying to make a Patroller using this extension, and I set him to be Aimless (which means he wanders about at random), but I keep getting this error message.
*** Run-time problem P60: Attempt to set a variable to the wrong kind of object: you wrote ‘now Way is the best route from the CurrentRoom to the NextRoom, using even locked doors’, which sets the value to nothing - but that doesn’t have the kind ‘direction’.
Does anyone have any suggestions?
BTW, I’m new at this. I’ve been working on my first game for about three days. You guys have been very helpful, so thank you.
Weird, I’d say at first sight that that should fix it. Perhaps it is easier to just circumvent these problems by making sure that all patrollers are always in rooms connected to the rest of the map? The reason that things are going wrong is that there sometimes is no way from the patroller’s location to wherever it should go; and the extension has been written with the assumption that there is always such a way. If you make sure all patrollers in your game are placed in rooms that connect to all other rooms, the problems should disappear. Could you try that?
Actually, it did fix the run time error, sorry. But now the patroller seems to only want to go north, always, even if nothing is north. When he’s in the northernmost room, he just stays put, even if there are exits s, e or w… At least when I was getting run time errors, the patroller was moving as he should.