Files
sfall/perks-and-traits/index.html
T

41 lines
45 KiB
HTML
Raw Normal View History

2023-01-22 01:15:27 +00:00
<!DOCTYPE html> <html lang="en-US"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <link rel="stylesheet" href="/sfall/assets/css/just-the-docs-default.css"> <script src="/sfall/assets/js/vendor/lunr.min.js"></script> <script src="/sfall/assets/js/just-the-docs.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" href="/sfall/favicon.ico" type="image/x-icon"> <!-- Begin Jekyll SEO tag v2.8.0 --> <title>Perks and traits | sfall</title> <meta name="generator" content="Jekyll v3.9.0" /> <meta property="og:title" content="Perks and traits" /> <meta property="og:locale" content="en_US" /> <meta name="description" content="Sfall documentation" /> <meta property="og:description" content="Sfall documentation" /> <link rel="canonical" href="/sfall/perks-and-traits/" /> <meta property="og:url" content="/sfall/perks-and-traits/" /> <meta property="og:site_name" content="sfall" /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary" /> <meta property="twitter:title" content="Perks and traits" /> <script type="application/ld+json"> {"@context":"https://schema.org","@type":"WebPage","description":"Sfall documentation","headline":"Perks and traits","url":"/sfall/perks-and-traits/"}</script> <!-- End Jekyll SEO tag --> <link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png"> <link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon/favicon-16x16.png"> <link rel="manifest" href="/assets/favicon/site.webmanifest"> <link rel="mask-icon" href="/assets/favicon/safari-pinned-tab.svg" color="#5bbad5"> <meta name="msapplication-TileColor" content="#da532c"> <meta name="msapplication-config" content="/assets/favicon/browserconfig.xml"> <meta name="theme-color" content="#ffffff"> </head> <body> <a class="skip-to-main" href="#main-content">Skip to main content</a> <svg xmlns="http://www.w3.org/2000/svg" class="d-none"> <symbol id="svg-link" viewBox="0 0 24 24"> <title>Link</title> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"> <path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path> </svg> </symbol> <symbol id="svg-menu" viewBox="0 0 24 24"> <title>Menu</title> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-menu"> <line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line> </svg> </symbol> <symbol id="svg-arrow-right" viewBox="0 0 24 24"> <title>Expand</title> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"> <polyline points="9 18 15 12 9 6"></polyline> </svg> </symbol> <!-- Feather. MIT License: https://github.com/feathericons/feather/blob/master/LICENSE --> <symbol id="svg-external-link" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-external-link"> <title id="svg-external-link-title">(external link)</title> <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line> </symbol> <symbol id="svg-doc" viewBox="0 0 24 24"> <title>Document</title> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="f
2021-06-01 04:05:32 +00:00
</code></pre></div></div><hr /> <h3 id="clear_selectable_perks"> <a href="#clear_selectable_perks" class="anchor-heading" aria-labelledby="clear_selectable_perks"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>clear_selectable_perks</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">clear_selectable_perks</span><span class="p">()</span>
</code></pre></div></div> <p>Restores the “select a perk” box to its default state.</p><hr /> <h3 id="get_perk_available"> <a href="#get_perk_available" class="anchor-heading" aria-labelledby="get_perk_available"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>get_perk_available</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">int</span> <span class="n">get_perk_available</span><span class="p">(</span><span class="kt">int</span> <span class="n">perk</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="get_perk_owed"> <a href="#get_perk_owed" class="anchor-heading" aria-labelledby="get_perk_owed"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>get_perk_owed</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">int</span> <span class="n">get_perk_owed</span>
</code></pre></div></div><hr /> <h3 id="has_fake_perk"> <a href="#has_fake_perk" class="anchor-heading" aria-labelledby="has_fake_perk"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>has_fake_perk</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">int</span> <span class="n">has_fake_perk</span><span class="p">(</span><span class="n">string</span> <span class="n">name</span><span class="p">)</span>
</code></pre></div></div> <p>Returns the number of levels the player has of the perks with the given name or ID of extra perk.</p><hr /> <h3 id="has_fake_trait"> <a href="#has_fake_trait" class="anchor-heading" aria-labelledby="has_fake_trait"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>has_fake_trait</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">int</span> <span class="n">has_fake_trait</span><span class="p">(</span><span class="n">string</span> <span class="n">name</span><span class="p">)</span>
</code></pre></div></div> <p>Returns the number of levels the player has of the traits with the given name or ID of extra trait.</p><hr /> <h3 id="hide_real_perks"> <a href="#hide_real_perks" class="anchor-heading" aria-labelledby="hide_real_perks"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>hide_real_perks</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">hide_real_perks</span><span class="p">()</span>
</code></pre></div></div> <p>Prevent the “select a perk” box from displaying any of the original 119 perks.</p><hr /> <h3 id="perk_add_mode"> <a href="#perk_add_mode" class="anchor-heading" aria-labelledby="perk_add_mode"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>perk_add_mode</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">perk_add_mode</span><span class="p">(</span><span class="kt">int</span> <span class="n">type</span><span class="p">)</span>
</code></pre></div></div> <p>Modifies what happens when a fake perk is selected from the perks dialog. It is treated as a set of flags - if bit 1 is set then it is added to the players traits, if bit 2 is set it is added to the players perks, and if bit 3 is set it is removed from the list of selectable perks. The default is 0x2.</p><hr /> <h3 id="remove_trait"> <a href="#remove_trait" class="anchor-heading" aria-labelledby="remove_trait"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>remove_trait</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">remove_trait</span><span class="p">(</span><span class="kt">int</span> <span class="n">traitID</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="seq_perk_freq"> <a href="#seq_perk_freq" class="anchor-heading" aria-labelledby="seq_perk_freq"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>seq_perk_freq</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">seq_perk_freq</span><span class="p">(</span><span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div> <p>Sets the number of levels between each perk.</p><hr /> <h3 id="set_fake_perk"> <a href="#set_fake_perk" class="anchor-heading" aria-labelledby="set_fake_perk"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_fake_perk</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_fake_perk</span><span class="p">(</span><span class="n">string</span> <span class="n">name</span><span class="p">,</span> <span class="kt">int</span> <span class="n">level</span><span class="p">,</span> <span class="kt">int</span> <span class="n">image</span><span class="p">,</span> <span class="n">string</span> <span class="n">desc</span><span class="p">)</span>
2022-04-07 13:19:56 +00:00
</code></pre></div></div> <p>Used to add additional traits and perks to the character screen. They will be saved correctly when the player saves and reloads games, but by themselves they will have no further effect on the character. For perks, the allowed range for levels is between 0 and 100; setting the level to 0 removes that perk. For traits, the level must be 0 or 1. The image is a numeric id that corresponds to an entry in <code class="language-plaintext highlighter-rouge">skilldex.lst</code>. The name is limited to 63 characters and the description to 255 characters by sfall, but internal Fallout limits may be lower.</p><hr /> <h3 id="set_fake_trait"> <a href="#set_fake_trait" class="anchor-heading" aria-labelledby="set_fake_trait"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_fake_trait</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_fake_trait</span><span class="p">(</span><span class="n">string</span> <span class="n">name</span><span class="p">,</span> <span class="kt">int</span> <span class="n">active</span><span class="p">,</span> <span class="kt">int</span> <span class="n">image</span><span class="p">,</span> <span class="n">string</span> <span class="n">desc</span><span class="p">)</span>
</code></pre></div></div> <p>Used to add additional traits and perks to the character screen. They will be saved correctly when the player saves and reloads games, but by themselves they will have no further effect on the character. For perks, the allowed range for levels is between 0 and 100; setting the level to 0 removes that perk. For traits, the level must be 0 or 1. The image is a numeric id that corresponds to an entry in <code class="language-plaintext highlighter-rouge">skilldex.lst</code>. The name is limited to 63 characters and the description to 255 characters by sfall, but internal Fallout limits may be lower.</p><hr /> <h3 id="set_perk_agl"> <a href="#set_perk_agl" class="anchor-heading" aria-labelledby="set_perk_agl"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_agl</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_agl</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
2021-06-01 04:05:32 +00:00
</code></pre></div></div><hr /> <h3 id="set_perk_chr"> <a href="#set_perk_chr" class="anchor-heading" aria-labelledby="set_perk_chr"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_chr</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_chr</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_desc"> <a href="#set_perk_desc" class="anchor-heading" aria-labelledby="set_perk_desc"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_desc</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_desc</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="n">string</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_end"> <a href="#set_perk_end" class="anchor-heading" aria-labelledby="set_perk_end"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_end</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_end</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_freq"> <a href="#set_perk_freq" class="anchor-heading" aria-labelledby="set_perk_freq"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_freq</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_freq</span><span class="p">(</span><span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div> <p>Sets the number of levels between each perk. Setting to 0 will reset it back to the default. This overrides the effects of the skilled trait. Not saved into the save game, so needs to be called once per reload. Be careful not to let the player obtain a perk when no perks are available to pick, or the game may crash.</p><hr /> <h3 id="set_perk_image"> <a href="#set_perk_image" class="anchor-heading" aria-labelledby="set_perk_image"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_image</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_image</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_int"> <a href="#set_perk_int" class="anchor-heading" aria-labelledby="set_perk_int"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_int</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_int</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_lck"> <a href="#set_perk_lck" class="anchor-heading" aria-labelledby="set_perk_lck"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_lck</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_lck</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_level"> <a href="#set_perk_level" class="anchor-heading" aria-labelledby="set_perk_level"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_level</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_level</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_level_mod"> <a href="#set_perk_level_mod" class="anchor-heading" aria-labelledby="set_perk_level_mod"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_level_mod</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_level_mod</span><span class="p">(</span><span class="kt">int</span> <span class="n">levels</span><span class="p">)</span>
</code></pre></div></div> <p>Sets a modifier between +25 and -25 that is added/subtracted from the players level for the purposes of deciding which perks can be chosen.</p><hr /> <h3 id="set_perk_name"> <a href="#set_perk_name" class="anchor-heading" aria-labelledby="set_perk_name"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_name</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_name</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="n">string</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_owed"> <a href="#set_perk_owed" class="anchor-heading" aria-labelledby="set_perk_owed"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_owed</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_owed</span><span class="p">(</span><span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_per"> <a href="#set_perk_per" class="anchor-heading" aria-labelledby="set_perk_per"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_per</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_per</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_ranks"> <a href="#set_perk_ranks" class="anchor-heading" aria-labelledby="set_perk_ranks"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_ranks</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_ranks</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_skill1"> <a href="#set_perk_skill1" class="anchor-heading" aria-labelledby="set_perk_skill1"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_skill1</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_skill1</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_skill1_mag"> <a href="#set_perk_skill1_mag" class="anchor-heading" aria-labelledby="set_perk_skill1_mag"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_skill1_mag</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_skill1_mag</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_skill2"> <a href="#set_perk_skill2" class="anchor-heading" aria-labelledby="set_perk_skill2"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_skill2</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_skill2</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_skill2_mag"> <a href="#set_perk_skill2_mag" class="anchor-heading" aria-labelledby="set_perk_skill2_mag"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_skill2_mag</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_skill2_mag</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_stat"> <a href="#set_perk_stat" class="anchor-heading" aria-labelledby="set_perk_stat"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_stat</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_stat</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_stat_mag"> <a href="#set_perk_stat_mag" class="anchor-heading" aria-labelledby="set_perk_stat_mag"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_stat_mag</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_stat_mag</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_str"> <a href="#set_perk_str" class="anchor-heading" aria-labelledby="set_perk_str"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_str</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_str</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perk_type"> <a href="#set_perk_type" class="anchor-heading" aria-labelledby="set_perk_type"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perk_type</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perk_type</span><span class="p">(</span><span class="kt">int</span> <span class="n">perkID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_perkbox_title"> <a href="#set_perkbox_title" class="anchor-heading" aria-labelledby="set_perkbox_title"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_perkbox_title</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_perkbox_title</span><span class="p">(</span><span class="n">string</span> <span class="n">title</span><span class="p">)</span>
</code></pre></div></div> <p>Used to change the title of the “select a perk” box, or by using “” it will be set back to the default.</p><hr /> <h3 id="set_pyromaniac_mod"> <a href="#set_pyromaniac_mod" class="anchor-heading" aria-labelledby="set_pyromaniac_mod"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_pyromaniac_mod</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_pyromaniac_mod</span><span class="p">(</span><span class="kt">int</span> <span class="n">bonus</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="set_selectable_perk"> <a href="#set_selectable_perk" class="anchor-heading" aria-labelledby="set_selectable_perk"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_selectable_perk</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_selectable_perk</span><span class="p">(</span><span class="n">string</span> <span class="n">name</span><span class="p">,</span> <span class="kt">int</span> <span class="n">active</span><span class="p">,</span> <span class="kt">int</span> <span class="n">image</span><span class="p">,</span> <span class="n">string</span> <span class="n">desc</span><span class="p">)</span>
</code></pre></div></div> <p>Used to add additional items to “select a perk” box by setting the active parameter to 1, and to remove them again by setting it to 0.</p><hr /> <h3 id="set_swiftlearner_mod"> <a href="#set_swiftlearner_mod" class="anchor-heading" aria-labelledby="set_swiftlearner_mod"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_swiftlearner_mod</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_swiftlearner_mod</span><span class="p">(</span><span class="kt">int</span> <span class="n">bonus</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="show_real_perks"> <a href="#show_real_perks" class="anchor-heading" aria-labelledby="show_real_perks"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>show_real_perks</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">show_real_perks</span><span class="p">()</span>
2022-04-07 13:19:56 +00:00
</code></pre></div></div> <p>Reverts the effect os <code class="language-plaintext highlighter-rouge">hide_real_perks</code>.</p> </div> </div> <div class="search-overlay"></div> </div> </body> </html>