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
|
<html><head><title>renpy.save - Ren'Py Visual Novel Engine</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> ◦ <a href="../Reference_Manual.html">reference manual</a> ◦ <a href="../Function_Index.html">function index</a></p><p><a id="renpy.save" name="renpy.save"></a></p>
<h1><span class="mw-headline">renpy.save</span></h1>
<p><span id="renpy.save" /></p>
<table>
<tr>
<td valign="top">Function:</td>
<td valign="top"><b><strong class="selflink">renpy.save</strong></b></td>
<td valign="top">(filename, extra_info=""):</td>
</tr>
</table>
<div class="renpy-doc">
<p>Saves the current game in <i>filename</i>.</p>
<p><i>filename</i> - A string, giving the filename to save in. Note that this does not correspond to any particular file on disk, but should be treated as an arbitrary game identifier. Normal save slots are base-10 representations of integers, while other names will not show up in the file-picker.</p>
<p><i>extra_info</i> - Additional information saved with the game. This is usually the value of save_name.</p>
<p><a href="../../reference/functions/renpy.take_screenshot.html" title="renpy/doc/reference/functions/renpy.take screenshot">renpy.take_screenshot</a> must be called before renpy.save, except when inside the game menu, where it has been automatically called.</p>
</div>
<p><a id="Example" name="Example"></a></p>
<h2><span class="mw-headline">Example</span></h2>
<pre>
<span class="kwa">python</span><span class="sym">:</span>
renpy<span class="sym">.</span><span class="kwd">take_screenshot</span><span class="sym">()</span>
renpy<span class="sym">.</span><span class="kwd">save</span><span class="sym">(</span><span class="str">"chapter2"</span><span class="sym">,</span> <span class="str">"Start of chapter 2."</span><span class="sym">)</span>
</pre>
<div class="visualClear" />
<hr /><p class="docnav"><a href="../../index.html">documentation index</a> ◦ <a href="../Reference_Manual.html">reference manual</a> ◦ <a href="../Function_Index.html">function index</a></p></div>
</body></html>
|