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]
> 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
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.
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.