I'm having trouble with TADS

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:smile: :sad: :eek: :shock: :cool: :-x :razz: :oops: :evil: :twisted: :wink: :idea: :arrow: :neutral: :mrgreen:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: I'm having trouble with TADS

by Flack » Tue Nov 29, 2016 3:14 pm

RealNC wrote:What you're doing there makes no sense.
I'm just gonna, uh... yeah.

by RealNC » Tue Nov 29, 2016 10:48 am

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.

by Tdarcos » Tue Nov 29, 2016 3:52 am

For some reason it does not like me using a function to determine each room movement, and this, for some reason, disables the object.

by Tdarcos » Tue Nov 29, 2016 3:48 am

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.

I'm having trouble with TADS

by Tdarcos » Tue Nov 29, 2016 3:44 am

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.

Top