TADS expert needed!


8 Aug 1995 21:51:06 GMT

Okay, I'm at my wits end. I keep getting TADS error 302 (expected property
name) when I tried to compile this.

Basically, what I want to happen is have my character (Cat) move on a
track. He moves from one location to the other and spends about 6 moves in the
room before moving on. During those six moves, the game displays one of 16
random messages. Here's my code:

And in case you're wondering, yes, it's the Cat from "Red Dwarf":

Cat : actor
sdesc = "Cat"
adesc = "the Cat"
noun = 'cat' 'kitty' 'kitten' 'cat'
adjective = 'the'
location = hall4
catMessage =
[

16 messages here -- won't bore you with them. :)

]
tracklist = ['northeast' hall3 'east' hall2 'southeast' startroom 'northwest'
hall2 'west' hall3 'southwest' hall4]
trackpos = 1
moveCounter = 0
catDaemon =
{
if (not self.isActive) return;
self.moveCounter++;
if (self.moveCounter = 6)
{
self.moveCounter := 0;
if (self.location =
Me.location)
"\b\"Yeeeoow!\" The Cat screeches. \"Time to get going! I think I'll go... that way! Yeeeeoow!\" He struts off to the <<self.tracklist[self.trackpos]>>.\b";
self.moveInto (self.tracklist
[self.trackpos + 1]);
if (self.location =
Me.location)
"\bYou hear a
loud \"Yeeoooow!\" and the Cat struts into the room. He spins on one heel and
than does a back flip for good measure. He looks around the room. \"What? No
girls here? What a waste of a good move!\"\b";

self.trackpos +=2;
if (self.trackpos > length
(self.tracklist)) self.trackpos :=1;
}
else
{
if (self.location =
Me.location)
{
"\b";
say( self.catMessage[rand( 16 )]);
}
}
}
;

-- end of code --

Any ideas?

Thanks!

Only from the warped mind of,

David L. Gilbert