Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
I7: Problem with changing the player to an NPC.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Al  
View profile   Translate to Translated (View Original)
 More options 9 Nov, 00:44
Newsgroups: rec.arts.int-fiction
From: Al <radic...@evcohs.com>
Date: Sun, 8 Nov 2009 16:44:37 -0800 (PST)
Local: Mon 9 Nov 2009 00:44
Subject: I7: Problem with changing the player to an NPC.
I am in a starting room with three other players.

However when I change myself to a random player in the room
the game outputs the unwanted text  "your former self" when it is run.

Is this a compiler or interpreter error?

Running 5Z1 Mac.

<code>

Starter is a room.

a pillar is in Starter.

Joe, Fred, and Bob are men in Starter.

the description of Joe is
"[if the player is not Joe]He's Joe.[otherwise]I'm Joe.[end if]".

the description of Fred is
"[if the player is not Fred]He's Fred.[otherwise]I'm Fred.[end if]".

the description of Bob is
"[if the player is not Bob]He's Bob.[otherwise]I'm Bob.[end if]".

when play begins:
now the player is a random man
in Starter.

Output:

Starter
You can see your former self, a pillar, Joe and Bob here.

>x me

I'm Fred

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Tarbert  
View profile   Translate to Translated (View Original)
 More options 9 Nov, 02:26
Newsgroups: rec.arts.int-fiction
From: Mike Tarbert <miketarb...@embarqmail.com>
Date: Sun, 08 Nov 2009 21:26:38 -0500
Local: Mon 9 Nov 2009 02:26
Subject: Re: I7: Problem with changing the player to an NPC.

Al wrote:
> I am in a starting room with three other players.

> However when I change myself to a random player in the room
> the game outputs the unwanted text  "your former self" when it is run.

> Is this a compiler or interpreter error?

Neither. If you start off with three other players, that makes a total
of four people. Since you've only named three of them, inform uses
"yourself" for the player, which changes to "your former self" when you
change players. If you only want three total people, add this:

[code]
The player is Bob.
[/code]

... or remove the "extra" yourself object from play before making the
switch:

[alternate code]
when play begins:
        remove yourself from play;
        now the player is a random man in Starter.
[/alternate code]

Skinny Mike


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ron Newcomb  
View profile   Translate to Translated (View Original)
 More options 9 Nov, 02:28
Newsgroups: rec.arts.int-fiction
From: Ron Newcomb <psc...@yahoo.com>
Date: Sun, 8 Nov 2009 18:28:11 -0800 (PST)
Local: Mon 9 Nov 2009 02:28
Subject: Re: I7: Problem with changing the player to an NPC.
On Nov 8, 4:44 pm, Al <radic...@evcohs.com> wrote:

Neither.  If you don't pick an NPC to be the PC initially, another
character is auto-created for you.  It is the "yourself" object with a
printed name of "your former self" when the player is not the
yourself.

To fix your issue, assign the player to someone initially:

   Joe, Fred, and Bob are men in Starter.  The player is Fred.

-R


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Al  
View profile   Translate to Translated (View Original)
 More options 9 Nov, 03:20
Newsgroups: rec.arts.int-fiction
From: Al <radic...@evcohs.com>
Date: Sun, 8 Nov 2009 19:20:31 -0800 (PST)
Local: Mon 9 Nov 2009 03:20
Subject: Re: I7: Problem with changing the player to an NPC.
Thanks to both Mike and Ron.,

Mike provided the  code that I want,
since I wanted a random player of the 3 remaing men
to be used.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Al  
View profile   Translate to Translated (View Original)
 More options 9 Nov, 03:24
Newsgroups: rec.arts.int-fiction
From: Al <radic...@evcohs.com>
Date: Sun, 8 Nov 2009 19:24:52 -0800 (PST)
Local: Mon 9 Nov 2009 03:24
Subject: Re: I7: Problem with changing the player to an NPC.
On Nov 8, 7:26 pm, Mike Tarbert <miketarb...@embarqmail.com> wrote:

> [alternate code]
> when play begins:
>         remove yourself from play;
>         now the player is a random man in Starter.
> [/alternate code]

You can NOT remove the player from play.
I had to move the player to a room called "Storage" that I created.

the compiler won't let me remove the player from play and assign me to
another NPC.
Now it works properly.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Tarbert  
View profile   Translate to Translated (View Original)
 More options 9 Nov, 04:44
Newsgroups: rec.arts.int-fiction
From: Mike Tarbert <miketarb...@embarqmail.com>
Date: Sun, 08 Nov 2009 23:44:11 -0500
Local: Mon 9 Nov 2009 04:44
Subject: Re: I7: Problem with changing the player to an NPC.
Al wrote:
> You can NOT remove the player from play.
> I had to move the player to a room called "Storage" that I created.

Oh yeah, my bad. Sorry Al.

SM


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ron Newcomb  
View profile   Translate to Translated (View Original)
 More options 9 Nov, 19:28
Newsgroups: rec.arts.int-fiction
From: Ron Newcomb <psc...@yahoo.com>
Date: Mon, 9 Nov 2009 11:28:01 -0800 (PST)
Local: Mon 9 Nov 2009 19:28
Subject: Re: I7: Problem with changing the player to an NPC.
On Nov 8, 7:20 pm, Al <radic...@evcohs.com> wrote:

> Thanks to both Mike and Ron.,

> Mike provided the  code that I want,
> since I wanted a random player of the 3 remaing men
> to be used.

OK, but be aware that descriptions such as "every person who is not
the player" will still find and slurp-up that dangling Yourself object
no matter where you put it.   Assigning the player to a character at
the outset doesn't preclude immediately re-assigning him in a When
Play Begins.

Just FYI


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google