I'm working on a generator for a random drop for a holiday item I give my players at my D&D table and having a program making all the random rolls for me is easier then having loads of dice rolls as the DM. So I've been coding this generator that's rather big, and testing out areas as I go along and I ran into a tiny snag when testing the gender assignment in a statement.
[#Name] history is shrouded in myth, legend, and not a little insanity. Born the only [gender,#gender] in [#gender,as owner] village, [#gender,as pronoun] quickly set about burning the town to the grond by the age of [2-4] using dangerously advanced magics. A mage of considerable skill [#gender,as pronoun] went on to leave a wake of misery, dispair, tragety, and morning in [#gender,as owner] wake, until the day that [#gender,as pronoun] met the [gender,#gen1] who would be [#gender,as owner] [#gen1,as other], they had many happy long years together bringing untold horror upon all who met them, till the day [#gender,as pronoun] lost [#gender,as owner] [#gen1,as other]; [#gen1,as pronoun] died by a poisoned blue berry tart [#gen1,as pronoun] was making for [#gen1,as owner] [#gender,as other], [#gender,as pronoun] sent the rest of [#gender,as owner] life in abject sorrow at the loss of [#gen1,as owner].
It always sets the gender of the second character as the exact opposite of the first character's gender. I was wondering if I'm coding something wrong or if I need to include a coding scheme that allows for variant gender preferences so instead of calling gender into question for a second character, it calls aspects from a list of gay, straight, bi, ect and uses the pronouns and such from the options on that list.
Any help would be useful. Thank you.