Coding for Gender-Interchangable Characters

Yep, that’s the idea. Alternatively, you can create variables for common conjugations. Depending on how often you are using conjugated verbs, you might find variables easier.

For example, you could create friend_s where friend_s = "s" when the friend is binary and friend_s = "" when the friend is non-binary.

Then, any time you use a verb that drops the s in the plural, you just write:

${friendhe} read${friend_s} and write${friend_s} every day.

I personally find this easier than multireplace if you have a ton of gender-variable NPCs.


More code examples:

4 Likes