🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rec.games.programmer
Article #1826

Question about TADS programming

#1826
From: Dave Allen
Date: Wed, 06 Jan 1993 16:22
31 lines
1463 bytes
Hi.
I would like some advice on programming in TADS.

1. I want to have some columns of tabular data appear, like:

   First     123   Next          7
   Second     45   Almostlast   89
   Third       6   Last          -

   Down in the unreachable internals of TADS, something eats multiple
   spaces.  I have tried a for-loop to say() individual spaces, etc, but they
   all get eaten, resulting in unusable output like

   First 123 Next 7
   Second 45 Almostlast 89
   Third 6 Last -

2. I want to pick up two numbers from user input, like:

   "Sulu, set course to 100 mark 12".

   I did this by defining mark as a preposition, setting it up so 100
   should come back as the direct object and 12 as the indirect object.

   However, what I get from the parser is 100, 100 instead of 100, 12.
   I think this is because there is only ONE INSTANCE of basicNumObj, which
   gets written over internally for each number in the input command.

Any hints?

- Dave Allen allen@viewlogic.com 
Technical Details
Message-ID: <1993Jan6.162202.9225@viewlogic.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!viewlog.viewlogic.com!allen

Show Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer,rec.games.int-fiction,rec.arts.int-fiction
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!viewlog.viewlogic.com!allen
From: allen@baja.viewlogic.com (Dave Allen)
Subject: Question about TADS programming
Message-ID: <1993Jan6.162202.9225@viewlogic.com>
Originator: allen@baja
Sender: news@viewlogic.com
Nntp-Posting-Host: baja
Organization: Viewlogic Systems, Inc.
Date: Wed, 6 Jan 1993 16:22:02 GMT
Lines: 31