I'm having trouble with TADS

Video Game Discussions and general topics.

Moderators: AArdvark, Ice Cream Jonsey

User avatar
Tdarcos
Posts: 9529
Joined: Fri May 16, 2008 9:25 am
Location: Arlington, Virginia
Contact:

I'm having trouble with TADS

Post by Tdarcos »

I'm doing something wrong but I'm not sure what. I have a map that I want to put on the wall so the player can read it. But TADS won't put the map in the room. I did it before but I'm doing something wrong. It is simply not there. Also, when I misspelled the command

Code: Select all

location = vontrol_Center
instead of

Code: Select all

location = Control_Center
, the map shows up in the display but it's not there.

Code: Select all


Control_Center: Room 'You\'re in the control center.'
    "You can go in any of the twelve directions from here."

    	north = setitem(Control_map, Closet		) 
	south = setitem(Control_map, Bathroom		) 
	east  =	setitem(Control_map, Meter_Room	) 
	west  = setitem(Control_map, Bedroom		) 
	northeast=	 setitem(Control_map, Control_NE	) 
	northwest=	 setitem(Control_map, Control_NW	) 
	southeast = setitem(Control_map, Control_SE	) 
	southwest = setitem(Control_map, Control_SW	) 
	up = setitem(Control_map, Attic 		) 
	down = setitem(Control_map, Basement		) 
    
        out = Courtyard
;    

+ Control_map: Readable, Fixture  'room map' 'map'
    "Try READ MAP to do so."
    specialDesc = "A map is nailed to the wall"
	readDesc =	"From Control Center (Reverse Direction or OUT returns to center):\n
		NORTH to Closet\n
		SOUTH to Bathroom\n
		EAST to Meter Room\n
		WEST to Bedroom\n
		NORTHEAST to Northeast Control Area\n
		NORTHWEST to Northwest Control Area\n
		SOUTHEAST to Southeast Control Area\n
		SOUTHWEST to Southwest Control Area\n
		UP to Attic\n
		DOWN to Basement\n
		OUT to Courtyard\n
		IN to Kitchen\n         
From Courtyard:\n
		NORTH to Courtyard North\n
		SOUTH to Courtyard South\n
From Courtyard North:\n
		NORTHWEST to Courtyard Northwest\n
		NORTHEAST to Courtyard Northeast\n
		SOUTH to Courtyard\n
From Courtyard South:\n
		SOUTHWEST to Courtyard Southwest\n
		SOUTHEAST to Courtyard Southeast\n
		NORTH to Courtyard"

;
I tried making it a plain object and then specifying the location but that doesn't work either. The samples that the game inserts do work so I'm doing something wrong but I'm not sure what.
"Baby, I was afraid before
I'm not afraid, any more."
- Belinda Carlisle, Heaven Is A Place On Earth

User avatar
Tdarcos
Posts: 9529
Joined: Fri May 16, 2008 9:25 am
Location: Arlington, Virginia
Contact:

Post by Tdarcos »

I diked out all the function calls and now the map shows up. Something about doing that bothers the system. What I want is to have the map in every room but not have to duplicate the map in each room, by moving it when the player does.
"Baby, I was afraid before
I'm not afraid, any more."
- Belinda Carlisle, Heaven Is A Place On Earth

User avatar
Tdarcos
Posts: 9529
Joined: Fri May 16, 2008 9:25 am
Location: Arlington, Virginia
Contact:

Post by Tdarcos »

For some reason it does not like me using a function to determine each room movement, and this, for some reason, disables the object.
"Baby, I was afraid before
I'm not afraid, any more."
- Belinda Carlisle, Heaven Is A Place On Earth

User avatar
RealNC
Posts: 2289
Joined: Wed Mar 07, 2012 4:32 am

Post by RealNC »

The directional properties should either be nil or point to rooms or travel connectors.

What you're doing there makes no sense. Also, even if it made sense, your code would be called all the time, even while not traveling, since the properties are called to determine and list the exits.

User avatar
Flack
Posts: 9057
Joined: Tue Nov 18, 2008 3:02 pm
Location: Oklahoma
Contact:

Post by Flack »

RealNC wrote:What you're doing there makes no sense.
I'm just gonna, uh... yeah.
"I failed a savings throw and now I am back."

Post Reply