1 2# game/indepth_character.rpy:11 3translate piglatin demo_character_e7e1b1bb: 4 5 # e "We've already seen how to define a Character in Ren'Py. But I want to go into a bit more detail as to what a Character is." 6 e "Eway'evay alreadyay eensay owhay otay efineday aay Haractercay inay Enray'Ypay. Utbay Iay antway otay ogay intoay aay itbay oremay etailday asay otay hatway aay Haractercay isay." 7 8# game/indepth_character.rpy:17 9translate piglatin demo_character_d7908a94: 10 11 # e "Here are couple of additional characters." 12 e "Erehay areay ouplecay ofay additionalay aracterschay." 13 14# game/indepth_character.rpy:19 15translate piglatin demo_character_275ef8b9: 16 17 # e "Each statement creates a Character object, and gives it a single argument, a name. If the name is None, no name is displayed." 18 e "Acheay atementstay reatescay aay Haractercay objectay, anday ivesgay itay aay inglesay argumentay, aay amenay. Fiay hetay amenay isay Onenay, onay amenay isay isplayedday." 19 20# game/indepth_character.rpy:21 21translate piglatin demo_character_a63aea0c: 22 23 # e "This can be followed by named arguments that set properties of the character. A named argument is a property name, an equals sign, and a value." 24 e "Histay ancay ebay ollowedfay ybay amednay argumentsay hattay etsay ropertiespay ofay hetay aracterchay. Aay amednay argumentay isay aay ropertypay amenay, anay equalsay ignsay, anday aay aluevay." 25 26# game/indepth_character.rpy:23 27translate piglatin demo_character_636a502e: 28 29 # e "Multiple arguments should be separated with commas, like they are here. Let's see those characters in action." 30 e "Ultiplemay argumentsay ouldshay ebay eparatedsay ithway ommascay, ikelay heytay areay erehay. Etlay'say eesay hosetay aracterschay inay actionay." 31 32# game/indepth_character.rpy:27 33translate piglatin demo_character_44b54e1d: 34 35 # e_shout "I can shout!" 36 e_shout "Iay ancay outshay!" 37 38# game/indepth_character.rpy:29 39translate piglatin demo_character_a9646dd8: 40 41 # e_whisper "And I can speak in a whisper." 42 e_whisper "Ndaay Iay ancay peaksay inay aay hisperway." 43 44# game/indepth_character.rpy:31 45translate piglatin demo_character_79793208: 46 47 # e "This example shows how the name Character is a bit of a misnomer. Here, we have multiple Characters in use, but you see it as me speaking." 48 e "Histay exampleay owsshay owhay hetay amenay Haractercay isay aay itbay ofay aay isnomermay. Erehay, eway avehay ultiplemay Haracterscay inay useay, utbay ouyay eesay itay asay emay peakingsay." 49 50# game/indepth_character.rpy:33 51translate piglatin demo_character_5d5d7482: 52 53 # e "It's best to think of a Character as repesenting a name and style, rather than a single person." 54 e "Tiay'say estbay otay hinktay ofay aay Haractercay asay epesentingray aay amenay anday ylestay, atherray hantay aay inglesay ersonpay." 55 56# game/indepth_character.rpy:37 57translate piglatin demo_character_66d08d98: 58 59 # e "There are a lot of properties that can be given to Characters, most of them prefixed styles." 60 e "Heretay areay aay otlay ofay ropertiespay hattay ancay ebay ivengay otay Haracterscay, ostmay ofay hemtay refixedpay ylesstay." 61 62# game/indepth_character.rpy:39 63translate piglatin demo_character_7e0d75aa: 64 65 # e "Properties beginning with window apply to the textbox, those with what apply to the the dialogue, and those with who to the name of Character speaking." 66 e "Ropertiespay eginningbay ithway indowway applyay otay hetay extboxtay, hosetay ithway hatway applyay otay hetay hetay ialogueday, anday hosetay ithway howay otay hetay amenay ofay Haractercay peakingsay." 67 68# game/indepth_character.rpy:41 69translate piglatin demo_character_56703784: 70 71 # e "If you leave a prefix out, the style customizes the name of the speaker." 72 e "Fiay ouyay eavelay aay refixpay outay, hetay ylestay ustomizescay hetay amenay ofay hetay peakersay." 73 74# game/indepth_character.rpy:43 75translate piglatin demo_character_b456f0a9: 76 77 # e "There are quite a few different properties that can be set this way. Here are some of the most useful." 78 e "Heretay areay uiteqay aay ewfay ifferentday ropertiespay hattay ancay ebay etsay histay ayway. Erehay areay omesay ofay hetay ostmay usefulay." 79 80# game/indepth_character.rpy:48 81translate piglatin demo_character_31ace18e: 82 83 # e1 "The window_background property sets the image that's used for the background of the textbox, which should be the same size as the default in gui/textbox.png." 84 e1 "Hetay indow_backgroundway ropertypay etssay hetay imageay hattay'say useday orfay hetay ackgroundbay ofay hetay extboxtay, hichway ouldshay ebay hetay amesay izesay asay hetay efaultday inay uigay/extboxtay.ngpay." 85 86# game/indepth_character.rpy:54 87translate piglatin demo_character_18ba073d: 88 89 # e1a "If it's set to None, the textbox has no background window." 90 e1a "Fiay itay'say etsay otay Onenay, hetay extboxtay ashay onay ackgroundbay indowway." 91 92# game/indepth_character.rpy:59 93translate piglatin demo_character_5a26445c: 94 95 # e2 "The who_color and what_color properties set the color of the character's name and dialogue text, respectively." 96 e2 "Hetay ho_colorway anday hat_colorway ropertiespay etsay hetay olorcay ofay hetay aracterchay'say amenay anday ialogueday exttay, espectivelyray." 97 98# game/indepth_character.rpy:61 99translate piglatin demo_character_88a18c32: 100 101 # e2 "The colors are strings containing rgb hex codes, the same sort of colors understood by a web browser." 102 e2 "Hetay olorscay areay ringsstay ontainingcay gbray exhay odescay, hetay amesay ortsay ofay olorscay understooday ybay aay ebway owserbray." 103 104# game/indepth_character.rpy:67 105translate piglatin demo_character_ed690751: 106 107 # e3 "Similarly, the who_font and what_font properties set the font used by the different kinds of text." 108 e3 "Imilarlysay, hetay ho_fontway anday hat_fontway ropertiespay etsay hetay ontfay useday ybay hetay ifferentday indskay ofay exttay." 109 110# game/indepth_character.rpy:74 111translate piglatin demo_character_8dfa6426: 112 113 # e4 "Setting the who_bold, what_italic, and what_size properties makes the name bold, and the dialogue text italic at a size of 20 pixels." 114 e4 "Ettingsay hetay ho_boldway, hat_italicway, anday hat_sizeway ropertiespay akesmay hetay amenay oldbay, anday hetay ialogueday exttay italicay atay aay izesay ofay 02ay ixelspay." 115 116# game/indepth_character.rpy:76 117translate piglatin demo_character_20e83c32: 118 119 # e4 "Of course, the what_bold, who_italic and who_size properties also exist, even if they're not used here." 120 e4 "Foay oursecay, hetay hat_boldway, ho_italicway anday ho_sizeway ropertiespay alsoay existay, evenay ifay heytay'eray otnay useday erehay." 121 122# game/indepth_character.rpy:83 123translate piglatin demo_character_e4cbb1f2: 124 125 # e5 "The what_outlines property puts an outline around the text." 126 e5 "Hetay hat_outlinesway ropertypay utspay anay outlineay arounday hetay exttay." 127 128# game/indepth_character.rpy:85 129translate piglatin demo_character_71535ecf: 130 131 # e5 "It's a little complicated since it takes a list with a tuple in it, with the tuple being four things in parenthesis, and the list the square brackets around them." 132 e5 "Tiay'say aay ittlelay omplicatedcay incesay itay akestay aay istlay ithway aay upletay inay itay, ithway hetay upletay eingbay ourfay hingstay inay arenthesispay, anday hetay istlay hetay quaresay acketsbray arounday hemtay." 133 134# game/indepth_character.rpy:87 135translate piglatin demo_character_e9ac7482: 136 137 # e5 "The first number is the size of the outline, in pixels. That's followed by a string giving the hex-code of the color of the outline, and the x and y offsets." 138 e5 "Hetay irstfay umbernay isay hetay izesay ofay hetay outlineay, inay ixelspay. Hattay'say ollowedfay ybay aay ringstay ivinggay hetay exhay-odecay ofay hetay olorcay ofay hetay outlineay, anday hetay xay anday yay offsetsay." 139 140# game/indepth_character.rpy:93 141translate piglatin demo_character_ea72d988: 142 143 # e6 "When the outline size is 0 and the offsets are given, what_outlines can also act as a drop-shadow behind the text." 144 e6 "Henway hetay outlineay izesay isay 0ay anday hetay offsetsay areay ivengay, hat_outlinesway ancay alsoay actay asay aay ropday-adowshay ehindbay hetay exttay." 145 146# game/indepth_character.rpy:99 147translate piglatin demo_character_8d35ebcd: 148 149 # e7 "The what_xalign and what_textalign properties control the alignment of text, with 0.0 being left, 0.5 being center, and 1.0 being right." 150 e7 "Hetay hat_xalignway anday hat_textalignway ropertiespay ontrolcay hetay alignmentay ofay exttay, ithway 0ay.0ay eingbay eftlay, 0ay.5ay eingbay entercay, anday 1ay.0ay eingbay ightray." 151 152# game/indepth_character.rpy:101 153translate piglatin demo_character_7c75906c: 154 155 # e7 "The what_xalign property controls where all the text itself is placed within the textbox, while what_textalign controls where rows of text are placed relative to each other." 156 e7 "Hetay hat_xalignway ropertypay ontrolscay hereway allay hetay exttay itselfay isay acedplay ithinway hetay extboxtay, hileway hat_textalignway ontrolscay hereway owsray ofay exttay areay acedplay elativeray otay eachay otheray." 157 158# game/indepth_character.rpy:103 159translate piglatin demo_character_e2811c1c: 160 161 # e7 "Generally you'll want to to set them both what_xalign and what_textalign to the same value." 162 e7 "Enerallygay ouyay'llay antway otay otay etsay hemtay othbay hat_xalignway anday hat_textalignway otay hetay amesay aluevay." 163 164# game/indepth_character.rpy:105 165translate piglatin demo_character_baa52234: 166 167 # e7 "Setting what_layout to 'subtitle' puts Ren'Py in subtitle mode, which tries to even out the length of every line of text in a block." 168 e7 "Ettingsay hat_layoutway otay 'ubtitlesay' utspay Enray'Ypay inay ubtitlesay odemay, hichway iestray otay evenay outay hetay engthlay ofay everyay inelay ofay exttay inay aay ockblay." 169 170# game/indepth_character.rpy:110 171translate piglatin demo_character_41190f01: 172 173 # e8 "These properties can be combined to achieve many different effects." 174 e8 "Hesetay ropertiespay ancay ebay ombinedcay otay achieveay anymay ifferentday effectsay." 175 176# game/indepth_character.rpy:124 177translate piglatin demo_character_aa12d9ca: 178 179 # e8 "This example hides the background and shows dialogue centered and outlined, as if the game is being subtitled." 180 e8 "Histay exampleay ideshay hetay ackgroundbay anday owsshay ialogueday enteredcay anday outlineday, asay ifay hetay amegay isay eingbay ubtitledsay." 181 182# game/indepth_character.rpy:133 183translate piglatin demo_character_a7f243e5: 184 185 # e9 "There are two interesting non-style properties, what_prefix and what_suffix. These can put text at the start and end of a line of dialogue." 186 e9 "Heretay areay wotay interestingay onnay-ylestay ropertiespay, hat_prefixway anday hat_suffixway. Hesetay ancay utpay exttay atay hetay artstay anday enday ofay aay inelay ofay ialogueday." 187 188# game/indepth_character.rpy:139 189translate piglatin demo_character_f9b0052f: 190 191 # e "By using kind, you can copy properties from one character to another, changing only what you need to." 192 e "Ybay usingay indkay, ouyay ancay opycay ropertiespay omfray oneay aracterchay otay anotheray, angingchay onlyay hatway ouyay eednay otay." 193 194# game/indepth_character.rpy:148 195translate piglatin demo_character_6dfce4b7: 196 197 # l8 "Like this! Finally I get some more dialogue around here." 198 l8 "Ikelay histay! Inallyfay Iay etgay omesay oremay ialogueday arounday erehay." 199 200# game/indepth_character.rpy:157 201translate piglatin demo_character_68d9e46c: 202 203 # e "The last thing you have to know is that there's a special character, narrator, that speaks narration. Got it?" 204 e "Hetay astlay hingtay ouyay avehay otay nowkay isay hattay heretay'say aay pecialsay aracterchay, arratornay, hattay peakssay arrationnay. Otgay itay?" 205 206# game/indepth_character.rpy:159 207translate piglatin demo_character_0c8f314a: 208 209 # "I think I do." 210 "Iay hinktay Iay oday." 211 212