1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
<html><head><title>renpy/doc/tutorials/Your First Dialogue - Ren'Py</title><link href="../shared.css" rel="stylesheet"><link href="../monobook.css" rel="stylesheet"><link href="../common.css" rel="stylesheet"><link href="../monobook2.css" rel="stylesheet"><link href="../docs.css" rel="stylesheet" /></link></link></link></link></head><body><div id="bodyContent">
<p class="docnav"><a href="../index.html">documentation index</a></p><table class="toc" id="toc" summary="Contents">
<tr>
<td>
<div id="toctitle">
<h2>Contents</h2>
</div>
<ul>
<li class="toclevel-1"><a href="#Your_First_Dialogue"><span class="tocnumber">1</span> <span class="toctext">Your First Dialogue</span></a>
<ul>
<li class="toclevel-2"><a href="#Basic_Dialogue"><span class="tocnumber">1.1</span> <span class="toctext">Basic Dialogue</span></a></li>
<li class="toclevel-2"><a href="#Narration"><span class="tocnumber">1.2</span> <span class="toctext">Narration</span></a></li>
<li class="toclevel-2"><a href="#Spicing_Up_Your_Text"><span class="tocnumber">1.3</span> <span class="toctext">Spicing Up Your Text</span></a></li>
</ul>
</li>
</ul>
</td>
</tr>
</table>
<script type="text/javascript">
//
if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); }
//
</script>
<p><a id="Your_First_Dialogue" name="Your_First_Dialogue"></a></p>
<h2><span class="mw-headline">Your First Dialogue</span></h2>
<p><a id="Basic_Dialogue" name="Basic_Dialogue"></a></p>
<h3><span class="mw-headline">Basic Dialogue</span></h3>
<p>Dialogue in Ren'Py is extremely easy. Once you've defined a character, you simply prefix their dialog, in quotes, with their name:</p>
<pre>
bob <span class="str">"Hi Alice!"</span>
alice <span class="str">"Hi Bob!"</span>
</pre>
<p>For characters who have very little screen time, you don't need to create a character for them if you don't mind their dialogue appearing in the default style:</p>
<pre>
bob <span class="str">"I wonder who this man approaching us is."</span>
alice <span class="str">"I don't know, but he looks tough."</span>
<span class="str">"Tough Guy"</span> <span class="str">"Yo. Whaddup?"</span>
bob <span class="str">"Hello."</span>
<span class="str">"Tough Guy"</span> <span class="str">"I'm oudda here."</span>
bob <span class="str">"That was strange."</span>
</pre>
<p><a id="Narration" name="Narration"></a></p>
<h3><span class="mw-headline">Narration</span></h3>
<p>Narration is simply dialog without anyone saying it:</p>
<pre>
<span class="str">"The brief appearance of that tough guy left me feeling uneasy.</span>
<span class="str"> Was it one of the rival noodle companies trying to intimidate me?"</span>
</pre>
<p><a id="Spicing_Up_Your_Text" name="Spicing_Up_Your_Text"></a></p>
<h3><span class="mw-headline">Spicing Up Your Text</span></h3>
<p>You can spice up your text using text tags:</p>
<pre>
<span class="str">"Text tags let you render parts of a dialogue or narration</span>
<span class="str"> in {i}italics{/i} or {b}bold{/b}."</span>
</pre>
<p>Text tags can do a lot of other things as well, check out the reference manual page on <a href="../reference/Text#tags" title="renpy/doc/reference/Text">Text Tags</a> for more information.</p>
<p>A word to the wise: text tags can be effective if used sparingly, but if used often they can make text painful to read.</p>
<table align="center" border="1" cellpadding="10" cellspacing="1" style="background: #fff0e0; text-align: center;" width="80%">
<tr>
<td width="30%">Previous:<br />
<a href="../tutorials/Defining_Characters.html" title="renpy/doc/tutorials/Defining Characters">Defining Characters</a></td>
<td width="40%"><b><a href="../tutorials/Ren%27Py_Web_Tutorial.html" title="renpy/doc/tutorials/Ren'Py Web Tutorial">Ren'Py Web Tutorial</a></b></td>
<td width="30%">Next:<br />
<a href="../tutorials/Adding_Graphics_to_Your_Story.html" title="renpy/doc/tutorials/Adding Graphics to Your Story">Adding Graphics to Your Story</a></td>
</tr>
</table>
<div class="visualClear" />
<hr /><p class="docnav"><a href="../index.html">documentation index</a></p></div>
</body></html>
|