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

41 lines
42 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html> <html lang="en-US"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <title>Perks and traits - sfall</title> <link rel="shortcut icon" href="/sfall/favicon.ico" type="image/x-icon"> <link rel="stylesheet" href="/sfall/assets/css/just-the-docs-default.css"> <script type="text/javascript" src="/sfall/assets/js/vendor/lunr.min.js"></script> <script type="text/javascript" src="/sfall/assets/js/just-the-docs.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- 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> <svg xmlns="http://www.w3.org/2000/svg" style="display: 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-search" viewBox="0 0 24 24"> <title>Search</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-search"> <circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line> </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> <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="feather feather-file"> <path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline> </svg> </symbol> </svg> <div class="side-bar"> <div class="site-header"> <a href="/sfall/" class="site-title lh-tight"> sfall </a> <a href="#" id="menu-button" class="site-button"> <svg viewBox="0 0 24 24" class="icon"><use xlink:href="#svg-menu"></use></svg> </a> </div> <nav role="navigation" aria-label="Main" id="site-nav" class="site-nav"> <ul class="nav-list"><li class="nav-list-item"><a href="/sfall/" class="nav-list-link">Home</a></li><li class="nav-list-item"><a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a><a href="/sfall/arrays/" class="nav-list-link">Arrays</a><ul class="nav-list "><li class="nav-list-item "><a href="/sfall/array-functions/" class="nav-list-link">Array functions</a></li><li class="nav-list-item "><a href="/sfall/lists/" class="nav-list-link">Lists</a></li></ul></li><li class="nav-list-item"><a href="/sfall/best-practices/" class="nav-list-link">Best practices</a></li><li class="nav-list-item"><a href="/sfall/data-types/" class="nav-list-link">Data types</a></li><li class="nav-list-item"><a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a><a href="/sfall/global-scripts/" class="nav-list-link">Global scripts</a><ul class="nav-list "><li class="nav-list-item "><a href="/sfall/global-script-functions/" class="nav-list-link">Global script functions</a></li></ul></li><li class="nav-list-item"><a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a><a href="/sfall/hooks/" class="nav-list-link">Hooks</a><ul class="nav-list "><li class="nav-list-item "><a href="/sfall/hook-functions/" class="nav-list-link">Hook functions</a></li><li class="nav-list-item "><a href="/sfall/hook-types/" class="nav-list-link">Hook types</a></li></ul></li><li class="nav-list-item"><a href="/sfall/sslc/" class="nav-list-link">SSLC</a></li><li class="nav-list-item"><a href="/sfall/optimization/" class="nav-list-link">Optimization</a></li><li class="nav-list-item"><a href="/sfall/animations/" class="nav-list-link">Animations</a></li><li class="nav-list-item"><a href="/sfall/art-and-appearance/" class="nav-list-link">Art and appearance</a></li><li class="nav-list-item"><a href="/sfall/audio/" class="nav-list-link">Audio</a></li><li class="nav-list-item"><a href="/sfall/car/" class="nav-list-link">Car</a></li><li class="nav-list-item"><a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a><a href="/sfall/combat/" class="nav-list-link">Combat</a><ul class="nav-list "><li class="nav-list-item "><a href="/sfall/knockback/" class="nav-list-link">Knockback</a></li><li class="nav-list-item "><a href="/sfall/weapons-and-ammo/" class="nav-list-link">Weapons and ammo</a></li></ul></li><li class="nav-list-item"><a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a><a href="/sfall/direct-memory-access/" class="nav-list-link">Direct memory access</a><ul class="nav-list "><li class="nav-list-item "><a href="/sfall/call_offset_vx/" class="nav-list-link">call_offset_vX</a></li><li class="nav-list-item "><a href="/sfall/read_xxx/" class="nav-list-link">read_xxx</a></li><li class="nav-list-item "><a href="/sfall/write_xxx/" class="nav-list-link">write_xxx</a></li></ul></li><li class="nav-list-item"><a href="/sfall/explosions/" class="nav-list-link">Explosions</a></li><li class="nav-list-item"><a href="/sfall/global-variables/" class="nav-list-link">Global variables</a></li><li class="nav-list-item"><a href="/sfall/graphics/" class="nav-list-link">Graphics</a></li><li class="nav-list-item"><a href="/sfall/ini-settings/" class="nav-list-link">INI settings</a></li><li class="nav-list-item"><a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a><a href="/sfall/interface/" class="nav-list-link">Interface</a><ul class="nav-list "><li class="nav-list-item "><a href="/sfall/cursor/" class="nav-list-link">Cursor</a></li><li class="nav-list-item "><a href="/sfall/inventory/" class="nav-list-link">Inventory</a></li><li class="nav-list-item "><a href="/sfall/main-interface/" class="nav-list-link">Main interface</a></li><li class="nav-list-item "><a href="/sfall/outline/" class="nav-list-link">Outline</a></li><li class="nav-list-item "><a href="/sfall/pip-boy/" class="nav-list-link">Pip-Boy</a></li><li class="nav-list-item "><a href="/sfall/tags/" class="nav-list-link">Tags</a></li><li class="nav-list-item "><a href="/sfall/windows-and-images/" class="nav-list-link">Windows and images</a></li></ul></li><li class="nav-list-item"><a href="/sfall/keyboard-and-mouse/" class="nav-list-link">Keyboard and mouse</a></li><li class="nav-list-item"><a href="/sfall/locks/" class="nav-list-link">Locks</a></li><li class="nav-list-item"><a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a><a href="/sfall/maps-and-encounters/" class="nav-list-link">Maps and encounters</a><ul class="nav-list "><li class="nav-list-item "><a href="/sfall/rest/" class="nav-list-link">Rest</a></li><li class="nav-list-item "><a href="/sfall/worldmap/" class="nav-list-link">Worldmap</a></li></ul></li><li class="nav-list-item"><a href="/sfall/objects-and-scripts/" class="nav-list-link">Objects and scripts</a></li><li class="nav-list-item"><a href="/sfall/other/" class="nav-list-link">Other</a></li><li class="nav-list-item active"><a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a><a href="/sfall/perks-and-traits/" class="nav-list-link active">Perks and traits</a><ul class="nav-list "><li class="nav-list-item "><a href="/sfall/npc-perks/" class="nav-list-link">NPC perks</a></li></ul></li><li class="nav-list-item"><a href="/sfall/sfall-funcx-macros/" class="nav-list-link">Sfall funcX macros</a></li><li class="nav-list-item"><a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a><a href="/sfall/sfall/" class="nav-list-link">Sfall</a><ul class="nav-list "><li class="nav-list-item "><a href="/sfall/funcx/" class="nav-list-link">funcX</a></li><li class="nav-list-item "><a href="/sfall/version/" class="nav-list-link">Version</a></li></ul></li><li class="nav-list-item"><a href="/sfall/skills/" class="nav-list-link">Skills</a></li><li class="nav-list-item"><a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a><a href="/sfall/stats/" class="nav-list-link">Stats</a><ul class="nav-list "><li class="nav-list-item "><a href="/sfall/alter-min-max/" class="nav-list-link">Alter min/max</a></li></ul></li><li class="nav-list-item"><a href="/sfall/tiles-and-paths/" class="nav-list-link">Tiles and paths</a></li><li class="nav-list-item"><a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a><a href="/sfall/variables/" class="nav-list-link">Variables</a><ul class="nav-list "><li class="nav-list-item "><a href="/sfall/math/" class="nav-list-link">Math</a></li><li class="nav-list-item "><a href="/sfall/strings/" class="nav-list-link">Strings</a></li></ul></li><li class="nav-list-item"><a href="/sfall/virtual-file-system/" class="nav-list-link">Virtual file system</a></li></ul> </nav> <footer class="site-footer"> This site uses <a href="https://github.com/just-the-docs/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll. </footer> </div> <div class="main" id="top"> <div id="main-header" class="main-header"> <div class="search"> <div class="search-input-wrap"> <input type="text" id="search-input" class="search-input" tabindex="0" placeholder="Search sfall" aria-label="Search sfall" autocomplete="off"> <label for="search-input" class="search-label"><svg viewBox="0 0 24 24" class="search-icon"><use xlink:href="#svg-search"></use></svg></label> </div> <div id="search-results" class="search-results"></div> </div> <nav aria-label="Auxiliary" class="aux-nav"> <ul class="aux-nav-list"> <li class="aux-nav-list-item"> <a href="https://nma-fallout.com/threads/fo2-engine-tweaks-sfall.178390/" class="site-button" > Forum </a> </li> <li class="aux-nav-list-item"> <a href="https://github.com/phobos2077/sfall/" class="site-button" > GitHub </a> </li> </ul> </nav> </div> <div id="main-content-wrap" class="main-content-wrap"> <div id="main-content" class="main-content" role="main"> <h1 class="no_toc" id="perks-and-traits"> <a href="#perks-and-traits" class="anchor-heading" aria-labelledby="perks-and-traits"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> Perks and traits </h1> <h2 class="no_toc" id="subcategories"> <a href="#subcategories" class="anchor-heading" aria-labelledby="subcategories"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> Subcategories </h2> <ul> <li><a href="/npc-perks/"><strong>NPC perks</strong></a></li> </ul> <h2 class="no_toc" id="functions"> <a href="#functions" class="anchor-heading" aria-labelledby="functions"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> Functions </h2> <ul id="markdown-toc"> <li><a href="#apply_heaveho_fix" id="markdown-toc-apply_heaveho_fix"><strong>apply_heaveho_fix</strong></a></li> <li><a href="#clear_selectable_perks" id="markdown-toc-clear_selectable_perks"><strong>clear_selectable_perks</strong></a></li> <li><a href="#get_perk_available" id="markdown-toc-get_perk_available"><strong>get_perk_available</strong></a></li> <li><a href="#get_perk_owed" id="markdown-toc-get_perk_owed"><strong>get_perk_owed</strong></a></li> <li><a href="#has_fake_perk" id="markdown-toc-has_fake_perk"><strong>has_fake_perk</strong></a></li> <li><a href="#has_fake_trait" id="markdown-toc-has_fake_trait"><strong>has_fake_trait</strong></a></li> <li><a href="#hide_real_perks" id="markdown-toc-hide_real_perks"><strong>hide_real_perks</strong></a></li> <li><a href="#perk_add_mode" id="markdown-toc-perk_add_mode"><strong>perk_add_mode</strong></a></li> <li><a href="#remove_trait" id="markdown-toc-remove_trait"><strong>remove_trait</strong></a></li> <li><a href="#seq_perk_freq" id="markdown-toc-seq_perk_freq"><strong>seq_perk_freq</strong></a></li> <li><a href="#set_fake_perk" id="markdown-toc-set_fake_perk"><strong>set_fake_perk</strong></a></li> <li><a href="#set_fake_trait" id="markdown-toc-set_fake_trait"><strong>set_fake_trait</strong></a></li> <li><a href="#set_perk_agl" id="markdown-toc-set_perk_agl"><strong>set_perk_agl</strong></a></li> <li><a href="#set_perk_chr" id="markdown-toc-set_perk_chr"><strong>set_perk_chr</strong></a></li> <li><a href="#set_perk_desc" id="markdown-toc-set_perk_desc"><strong>set_perk_desc</strong></a></li> <li><a href="#set_perk_end" id="markdown-toc-set_perk_end"><strong>set_perk_end</strong></a></li> <li><a href="#set_perk_freq" id="markdown-toc-set_perk_freq"><strong>set_perk_freq</strong></a></li> <li><a href="#set_perk_image" id="markdown-toc-set_perk_image"><strong>set_perk_image</strong></a></li> <li><a href="#set_perk_int" id="markdown-toc-set_perk_int"><strong>set_perk_int</strong></a></li> <li><a href="#set_perk_lck" id="markdown-toc-set_perk_lck"><strong>set_perk_lck</strong></a></li> <li><a href="#set_perk_level" id="markdown-toc-set_perk_level"><strong>set_perk_level</strong></a></li> <li><a href="#set_perk_level_mod" id="markdown-toc-set_perk_level_mod"><strong>set_perk_level_mod</strong></a></li> <li><a href="#set_perk_name" id="markdown-toc-set_perk_name"><strong>set_perk_name</strong></a></li> <li><a href="#set_perk_owed" id="markdown-toc-set_perk_owed"><strong>set_perk_owed</strong></a></li> <li><a href="#set_perk_per" id="markdown-toc-set_perk_per"><strong>set_perk_per</strong></a></li> <li><a href="#set_perk_ranks" id="markdown-toc-set_perk_ranks"><strong>set_perk_ranks</strong></a></li> <li><a href="#set_perk_skill1" id="markdown-toc-set_perk_skill1"><strong>set_perk_skill1</strong></a></li> <li><a href="#set_perk_skill1_mag" id="markdown-toc-set_perk_skill1_mag"><strong>set_perk_skill1_mag</strong></a></li> <li><a href="#set_perk_skill2" id="markdown-toc-set_perk_skill2"><strong>set_perk_skill2</strong></a></li> <li><a href="#set_perk_skill2_mag" id="markdown-toc-set_perk_skill2_mag"><strong>set_perk_skill2_mag</strong></a></li> <li><a href="#set_perk_stat" id="markdown-toc-set_perk_stat"><strong>set_perk_stat</strong></a></li> <li><a href="#set_perk_stat_mag" id="markdown-toc-set_perk_stat_mag"><strong>set_perk_stat_mag</strong></a></li> <li><a href="#set_perk_str" id="markdown-toc-set_perk_str"><strong>set_perk_str</strong></a></li> <li><a href="#set_perk_type" id="markdown-toc-set_perk_type"><strong>set_perk_type</strong></a></li> <li><a href="#set_perkbox_title" id="markdown-toc-set_perkbox_title"><strong>set_perkbox_title</strong></a></li> <li><a href="#set_pyromaniac_mod" id="markdown-toc-set_pyromaniac_mod"><strong>set_pyromaniac_mod</strong></a></li> <li><a href="#set_selectable_perk" id="markdown-toc-set_selectable_perk"><strong>set_selectable_perk</strong></a></li> <li><a href="#set_swiftlearner_mod" id="markdown-toc-set_swiftlearner_mod"><strong>set_swiftlearner_mod</strong></a></li> <li><a href="#show_real_perks" id="markdown-toc-show_real_perks"><strong>show_real_perks</strong></a></li> </ul><hr /> <h3 id="apply_heaveho_fix"> <a href="#apply_heaveho_fix" class="anchor-heading" aria-labelledby="apply_heaveho_fix"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>apply_heaveho_fix</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">apply_heaveho_fix</span>
</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>
</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>
</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>
</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>