Another quirk: "You don't see him"

This is a discussion / support forum for the Hugo programming language by Kent Tessman. Hugo is a powerful programming language for making text games / interactive fiction with multimedia support.

Hugo download links: https://www.generalcoffee.com/hugo
Roody Yogurt's Hugo Blog: https://notdeadhugo.blogspot.com
The Hugor interpreter by RealNC: http://ifwiki.org/index.php/Hugor

Moderators: Ice Cream Jonsey, joltcountry

Merk
Posts: 192
Joined: Mon Nov 22, 2004 3:19 pm
Location: Wichita, KS
Contact:

Another quirk: "You don't see him"

Post by Merk »

The applicable bit is around line 1091 in hugolib.h.

If you have a "living" thing that is neither male nor female (an androgenous alien, perhaps), and you've set the appropriate pronouns ("it", "it", "its", "itself), I've found at least one instance where the library will still refer to it as a "him". The code checks to see if the living thing is plural (them), else female (her), else (him).

It'd be pretty easy to test for obj.pronoun #2, and print that instead -- and if non-existent, follow through with the current logic.

For my purposes, I'll probably need to do a NewParseError for that one condition (case 11). :)

(update)

Here's how I've fixed that part, in a little snippet I put inside a NewParseError:

Code: Select all

print CThe(actor); \
    MatchPlural(actor, "doesn't", "don't"); \
    " see ";
if (obj.pronouns #2)
    print obj.pronouns #2;
elseif obj is plural
    "them";
elseif obj is female
    "her";
else
    "him";
print "."

Kent
Posts: 119
Joined: Fri Jun 27, 2003 12:10 pm

Post by Kent »

Good idea. I think that should probably go in as a fix.

Merk
Posts: 192
Joined: Mon Nov 22, 2004 3:19 pm
Location: Wichita, KS
Contact:

Post by Merk »

Thanks!

Post Reply