(set: $miss to "Mx.") (set: $she to "they") (set: $She to "They") (set: $her to "them") (set: $Her to "Them") (display: "main") <center> <img src="genderTutLogo.png" alt="logo" height="250" width="315"> <h5>A twine tutorial with code</h5> [[New Game|start]] </center>Hello, This is a bit of twine code that can help to make your games more inclusive. You can put this in your character creation section, or the beginning of your story and easily format your stories pronouns and honorific in a way that is personal to your reader. First up here is the code for the presets I have created: `` (link-reveal: "Non-binary -- Mx., they/them")[(set: $miss to "Mx.")(set: $she to "they")(set: $She to "They")(set: $her to "them")(set: $Her to "Them")] (link-reveal: "Non-binary -- Mx., zi/zir")[(set: $miss to "Mx.")(set: $she to "zi")(set: $She to "Zi")(set: $her to "zir")(set: $Her to "Zir")] (link-reveal: "Feminine -- Miss., she/her")[(set: $miss to "Miss.")(set: $she to "she")(set: $She to "She")(set: $her to "her")(set: $Her to "Her")] (link-reveal: "Feminine -- Ms., she/her")[(set: $miss to "Ms.")(set: $she to "she")(set: $She to "She")(set: $her to "her")(set: $Her to "Her")] (link-reveal: "Masculine -- Mr., he/him")[(set: $miss to "Mr.")(set: $she to "he")(set: $She to "He")(set: $her to "him")(set: $Her to "Him")] `` To make a new preset just make a copy starting at link-reveal and ending at the ] and paste it to the bottom of the code block. Then change the strings (which are surrounded by quotes) to the new pronouns you want. To use just write all dialog using the variables. For example: ``$miss Max uses $she/$her and $She/$Her.`` The code will automatically change the variables based on what the user picked at the beginning. //Functional Example Below// Please choose gender language: (link-reveal: "Non-binary -- Mx., they/them")[(set: $miss to "Mx.")(set: $she to "they")(set: $She to "They")(set: $her to "them")(set: $Her to "Them")] (link-reveal: "Non-binary -- Mx., zi/zir")[(set: $miss to "Mx.")(set: $she to "zi")(set: $She to "Zi")(set: $her to "zir")(set: $Her to "Zir")] (link-reveal: "Feminine -- Miss., she/her")[(set: $miss to "Miss.")(set: $she to "she")(set: $She to "She")(set: $her to "her")(set: $Her to "Her")] (link-reveal: "Feminine -- Ms., she/her")[(set: $miss to "Ms.")(set: $she to "she")(set: $She to "She")(set: $her to "her")(set: $Her to "Her")] (link-reveal: "Masculine -- Mr., he/him")[(set: $miss to "Mr.")(set: $she to "he")(set: $She to "He")(set: $her to "him")(set: $Her to "Him")] *Note: I know this is not an inclusive list but I am trans* and am trying to be as inclusive as possible. This code is pretty flexible and I can add genders if you like. Please leave a comment in Miss, She/Her format and I will update the game as I can. Thanks! [[Click here to see result]] [[Click here to reset the tutorial|main]]$miss Max uses $she/$her and $She/$Her You can go back and choose a different one by clicking [[Here|start]]