Gmail Calendar Docs Reader La Web Más »
Grupos visitados recientemente | Ayuda | Acceder
Página principal de Grupos de Google
Question about lists in TADS 3
En este grupo hay demasiados temas que deben mostrarse primero. Para que este aparezca al principio de la lista, debes descartar esta opción para alguno de los anteriores.
Error al procesar tu solicitud. Por favor, inténtalo de nuevo.
marcar
  8 mensajes - Ocultar todos  -  Traducir todo al Traducido (ver todos los originales)
El grupo al cual envías entradas es un grupo Usenet. Si envías mensajes a este grupo, cualquier usuario de Internet podrá ver tu dirección de correo electrónico
Tu respuesta no se ha enviado.
Tu entrada se ha publicado correctamente.
 
De:
Para:
Cc:
Seguimiento:
Añadir Cc | Añadir seguimiento | Editar asunto
Asunto:
Validación:
Con fines de verificación, escribe los caracteres que veas en la imagen siguiente o los números que escuches haciendo clic en el icono de accesibilidad. Escucha y escribe los números que oyes.
 
Kathrel  
Ver perfil   Traducir al Traducido (ver original)
 Más opciones 9 feb, 22:17
Grupos de noticias: rec.arts.int-fiction
De: "Kathrel" <i.m.h...@online.no>
Fecha: Tue, 9 Feb 2010 22:17:30 +0100
Local: Mart 9 feb 2010 22:17
Asunto: Question about lists in TADS 3
Is there a way to tie lists to single instances of objects? I want a
particular object to be listed differently before and after an action when
it appears in a room, but I can't see how to modify the generic list
suffix/prefix in such a way that it doesn't affect all objects in a room's
content list. Not sure if this just is a syntax issue for me, or if I'm
overlooking some functionality, somewhere.

Kathrel


    Reenviar  
Debes registrarte antes de enviar mensajes.
Para enviar una entrada, antes deberás formar parte del grupo.
Antes de enviar entradas, actualiza tu alias en la configuración de la suscripción.
No dispones del permiso necesario para enviar entradas.
Nikos Chantziaras  
Ver perfil   Traducir al Traducido (ver original)
 Más opciones 9 feb, 22:33
Grupos de noticias: rec.arts.int-fiction
De: Nikos Chantziaras <rea...@arcor.de>
Fecha: Tue, 09 Feb 2010 23:33:07 +0200
Local: Mart 9 feb 2010 22:33
Asunto: Re: Question about lists in TADS 3
On 02/09/2010 11:17 PM, Kathrel wrote:

> Is there a way to tie lists to single instances of objects? I want a
> particular object to be listed differently before and after an action when
> it appears in a room

Please define "differently".  An transcript example would probably be best.

    Reenviar  
Debes registrarte antes de enviar mensajes.
Para enviar una entrada, antes deberás formar parte del grupo.
Antes de enviar entradas, actualiza tu alias en la configuración de la suscripción.
No dispones del permiso necesario para enviar entradas.
Kathrel  
Ver perfil   Traducir al Traducido (ver original)
 Más opciones 9 feb, 23:02
Grupos de noticias: rec.arts.int-fiction
De: "Kathrel" <i.m.h...@online.no>
Fecha: Tue, 9 Feb 2010 23:02:27 +0100
Local: Mart 9 feb 2010 23:02
Asunto: Re: Question about lists in TADS 3
Not sure what you mean by transcript example, but this is the effect that I
want:

Upon entering the room
<roomdesc here> + a cloak ob's initSpecialDesc as follows:

"An old cloak lies on the floor, partly covering an old boot, apparently
having slipped off its peg."

Then taking the boot (the cloak desc changes accordingly) and dropping it,
should make the boot show up in the room list as:
An old boot sits forlornly on the floor.

This should appear every time the boot appears in the rooms content list,
after either the cloak has been removed, or the boot has been picked up and
then dropped. So, it should not appear in the room list before it is picked
up the first time (and I handle that with the isListed prop), but it should
appear with this unique flavor desc every time it appears in a room after
that, and not with the generic "An old boot is here".

And I'm stuck :)

Kathrel

"Nikos Chantziaras" <rea...@arcor.de> skrev i melding
news:hkska8$20k$1@news.grnet.gr...


    Reenviar  
Debes registrarte antes de enviar mensajes.
Para enviar una entrada, antes deberás formar parte del grupo.
Antes de enviar entradas, actualiza tu alias en la configuración de la suscripción.
No dispones del permiso necesario para enviar entradas.
Nikos Chantziaras  
Ver perfil   Traducir al Traducido (ver original)
 Más opciones 9 feb, 23:47
Grupos de noticias: rec.arts.int-fiction
De: Nikos Chantziaras <rea...@arcor.de>
Fecha: Wed, 10 Feb 2010 00:47:22 +0200
Local: Mart 9 feb 2010 23:47
Asunto: Re: Question about lists in TADS 3
You can check in the boot's specialDesc whether the cloak was moved:

specialDesc()
{
   if (cloak.useInitSpecialDesc()) {
     // The cloak has not been moved yet. Don't display anything.
     return;

     // If we got here, the cloak was moved.
     "An old boot sits forlornly on the floor. ";

}

On 02/10/2010 12:02 AM, Kathrel wrote:


    Reenviar  
Debes registrarte antes de enviar mensajes.
Para enviar una entrada, antes deberás formar parte del grupo.
Antes de enviar entradas, actualiza tu alias en la configuración de la suscripción.
No dispones del permiso necesario para enviar entradas.
Nikos Chantziaras  
Ver perfil   Traducir al Traducido (ver original)
 Más opciones 9 feb, 23:54
Grupos de noticias: rec.arts.int-fiction
De: Nikos Chantziaras <rea...@arcor.de>
Fecha: Wed, 10 Feb 2010 00:54:08 +0200
Local: Mart 9 feb 2010 23:54
Asunto: Re: Question about lists in TADS 3
I just figured my previous example is wrong (and also has a syntax
error, I forgot to close the if statement :P)  It will result in empty
output if you pick up the boot and drop it before moving the cloak.  So
an additional check is needed to see whether exactly this condition occurs.

Here's the code that should work (note that I didn't actually try it,
but I'm confident it works :P)

specialDesc()
{
   if (cloak.useInitSpecialDesc() && self.useInitSpecialDesc()) {
     // Neither the cloak nor the boot have been moved yet. Don't
     // display anything.
     return;
   }

   // If we got here, the cloak was moved.
   "An old boot sits forlornly on the floor. ";

}

On 02/10/2010 12:47 AM, Nikos Chantziaras wrote:


    Reenviar  
Debes registrarte antes de enviar mensajes.
Para enviar una entrada, antes deberás formar parte del grupo.
Antes de enviar entradas, actualiza tu alias en la configuración de la suscripción.
No dispones del permiso necesario para enviar entradas.
Kathrel  
Ver perfil   Traducir al Traducido (ver original)
 Más opciones 10 feb, 03:17
Grupos de noticias: rec.arts.int-fiction
De: "Kathrel" <i.m.h...@online.no>
Fecha: Wed, 10 Feb 2010 03:17:20 +0100
Local: Mié 10 feb 2010 03:17
Asunto: Re: Question about lists in TADS 3
Thanks, Nikos, but I still have my issue :) Checking for
useInitSpecialDesc() on the cloak and the room the way you suggest for some
reason doesn't make away with the room content list when I initially look
around the room, so I now got two references to the boot, both in its
special desc and in the cloaks initSpecialDesc. I can't think of a reason
why it should behave like this, but it does :(

My question about manipulating the lists for instances single objects also
regards my desire to refine the references to the boot and the cloak after
the initial move, and rathern than having:

An old boot sits forlornly on the floor.

An old cloak lies on the floor, apparently having slipped off its peg.

combine them into:

An old boot sits forlornly on the floor while an old cloak lies there,
apparently having slipped off its peg.

Am I pushing the limits of TADS3, here...?

K

"Nikos Chantziaras" <rea...@arcor.de> skrev i melding
news:hksp24$5s8$1@news.grnet.gr...


    Reenviar  
Debes registrarte antes de enviar mensajes.
Para enviar una entrada, antes deberás formar parte del grupo.
Antes de enviar entradas, actualiza tu alias en la configuración de la suscripción.
No dispones del permiso necesario para enviar entradas.
Nikos Chantziaras  
Ver perfil   Traducir al Traducido (ver original)
 Más opciones 10 feb, 05:53
Grupos de noticias: rec.arts.int-fiction
De: Nikos Chantziaras <rea...@arcor.de>
Fecha: Wed, 10 Feb 2010 06:53:45 +0200
Local: Mié 10 feb 2010 05:53
Asunto: Re: Question about lists in TADS 3
On 02/10/2010 04:17 AM, Kathrel wrote:

> Thanks, Nikos, but I still have my issue :) Checking for
> useInitSpecialDesc() on the cloak and the room the way you suggest

On the cloak and boot, not the cloak and room.

> for some
> reason doesn't make away with the room content list when I initially look
> around the room, so I now got two references to the boot, both in its
> special desc and in the cloaks initSpecialDesc. I can't think of a reason
> why it should behave like this, but it does :(

Instead of:

   if (cloak.useInitSpecialDesc() && self.useInitSpecialDesc())

try:

   if (cloak.useInitSpecialDesc() && self.isInInitState)

It was a mistake to use the boot's useInitSpecialDesc() since its
initSpecialDesc is nil.


    Reenviar  
Debes registrarte antes de enviar mensajes.
Para enviar una entrada, antes deberás formar parte del grupo.
Antes de enviar entradas, actualiza tu alias en la configuración de la suscripción.
No dispones del permiso necesario para enviar entradas.
Kathrel  
Ver perfil   Traducir al Traducido (ver original)
 Más opciones 10 feb, 18:26
Grupos de noticias: rec.arts.int-fiction
De: "Kathrel" <i.m.h...@online.no>
Fecha: Wed, 10 Feb 2010 18:26:25 +0100
Local: Mié 10 feb 2010 18:26
Asunto: Re: Question about lists in TADS 3
Wonderful! Thanks a lot :) The magic word was self.isInInitState.
Manipulating the appearance of lists can wait.

Kathrel

"Nikos Chantziaras" <rea...@arcor.de> skrev i melding
news:hkte49$mgg$1@news.grnet.gr...


    Reenviar  
Debes registrarte antes de enviar mensajes.
Para enviar una entrada, antes deberás formar parte del grupo.
Antes de enviar entradas, actualiza tu alias en la configuración de la suscripción.
No dispones del permiso necesario para enviar entradas.
Fin de los mensajes
« Volver a “Debates” « Tema más reciente     Tema anterior »

Crear un grupo - Grupos de Google - Página principal de Google - Condiciones del servicio - Política de privacidad
©2010 Google