Pronouns Before Verbs

blazinganubis
08 Feb 2022, 16:24

Hello, so I’m trying to make a game in 3rd person rather than first person and have the player act as a guide to the main character rather than be that character directly. I’ve changed the player to the characters name and in the object, I defined the character’s pronouns.

Despite doing this, it still says, “You can see -object name-“

How can I make it say “-Character name- sees…”

Thanks!


mrangel
08 Feb 2022, 16:56

On the "Room" tab in the editor there is a field named "Objects list prefix", which by default contains the text "You can see".

You'll have to change this for each room individually, which can get frustrating.
If you're using the desktop editor, you might want to do a search and replace; or add a line like:

  <template name="SeeListHeader">{=CapFirst(GetDisplayAlias(game.pov))} can see</template>

Or (my method when using the online editor) have the game change them automatically when it starts up, by this in the start script:

foreach (obj, AllObjects()) {
  if (HasString (obj, "objectslistprefix")) {
    obj.objectslistprefix = Replace(obj.objectslistprefix, "You ", "{=CapFirst (GetDisplayName (game.pov))} ")
  }
}

This will change it automatically for any objects that are still using the default.

Unfortunately, there are still a lot of functions and commands that have "you" in the message rather than using the player's pronouns.
You might want to make a copy of the file English.aslx, search for "you", and change them appropriately. You can then import it into your game like any other library, and it should override the default messages.


blazinganubis
08 Feb 2022, 17:44

Awesome, thank you!