</code></pre></div></div><p>adds the specified trait to the player</p><hr/><h3id="apply_heaveho_fix"><ahref="#apply_heaveho_fix"class="anchor-heading"aria-labelledby="apply_heaveho_fix"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>apply_heaveho_fix</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">void</span><spanclass="n">apply_heaveho_fix</span>
</code></pre></div></div><p>Restores the “select a perk” box to its default state.</p><hr/><h3id="get_perk_available"><ahref="#get_perk_available"class="anchor-heading"aria-labelledby="get_perk_available"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>get_perk_available</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">int</span><spanclass="n">get_perk_available</span><spanclass="p">(</span><spanclass="kt">int</span><spanclass="n">perk</span><spanclass="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/><h3id="has_fake_trait"><ahref="#has_fake_trait"class="anchor-heading"aria-labelledby="has_fake_trait"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>has_fake_trait</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">int</span><spanclass="n">has_fake_trait</span><spanclass="p">(</span><spanclass="n">string</span><spanclass="n">name</span><spanclass="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/><h3id="hide_real_perks"><ahref="#hide_real_perks"class="anchor-heading"aria-labelledby="hide_real_perks"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>hide_real_perks</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">void</span><spanclass="n">hide_real_perks</span><spanclass="p">()</span>
</code></pre></div></div><p>Prevent the “select a perk” box from displaying any of the original 119 perks.</p><hr/><h3id="perk_add_mode"><ahref="#perk_add_mode"class="anchor-heading"aria-labelledby="perk_add_mode"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>perk_add_mode</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">void</span><spanclass="n">perk_add_mode</span><spanclass="p">(</span><spanclass="kt">int</span><spanclass="n">type</span><spanclass="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 player’s traits, if bit 2 is set it is added to the player’s perks, and if bit 3 is set it is removed from the list of selectable perks. The default is 0x2.</p><hr/><h3id="remove_trait"><ahref="#remove_trait"class="anchor-heading"aria-labelledby="remove_trait"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>remove_trait</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">void</span><spanclass="n">remove_trait</span><spanclass="p">(</span><spanclass="kt">int</span><spanclass="n">traitID</span><spanclass="p">)</span>
</code></pre></div></div><p>Sets the number of levels between each perk.</p><hr/><h3id="set_fake_perk"><ahref="#set_fake_perk"class="anchor-heading"aria-labelledby="set_fake_perk"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>set_fake_perk</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">void</span><spanclass="n">set_fake_perk</span><spanclass="p">(</span><spanclass="n">string</span><spanclass="n">name</span><spanclass="p">,</span><spanclass="kt">int</span><spanclass="n">level</span><spanclass="p">,</span><spanclass="kt">int</span><spanclass="n">image</span><spanclass="p">,</span><spanclass="n">string</span><spanclass="n">desc</span><spanclass="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 <codeclass="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/><h3id="set_fake_trait"><ahref="#set_fake_trait"class="anchor-heading"aria-labelledby="set_fake_trait"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>set_fake_trait</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">void</span><spanclass="n">set_fake_trait</span><spanclass="p">(</span><spanclass="n">string</span><spanclass="n">name</span><spanclass="p">,</span><spanclass="kt">int</span><spanclass="n">active</span><spanclass="p">,</span><spanclass="kt">int</span><spanclass="n">image</span><spanclass="p">,</span><spanclass="n">string</span><spanclass="n">desc</span><spanclass="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 <codeclass="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/><h3id="set_perk_agl"><ahref="#set_perk_agl"class="anchor-heading"aria-labelledby="set_perk_agl"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>set_perk_agl</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">void</span><spanclass="n">set_perk_agl</span><spanclass="p">(</span><spanclass="kt">int</span><spanclass="n">perkID</span><spanclass="p">,</span><spanclass="kt">int</span><spanclass="n">value</span><spanclass="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/><h3id="set_perk_image"><ahref="#set_perk_image"class="anchor-heading"aria-labelledby="set_perk_image"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>set_perk_image</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">void</span><spanclass="n">set_perk_image</span><spanclass="p">(</span><spanclass="kt">int</span><spanclass="n">perkID</span><spanclass="p">,</span><spanclass="kt">int</span><spanclass="n">value</span><spanclass="p">)</span>
</code></pre></div></div><p>Sets a modifier between +25 and -25 that is added/subtracted from the player’s level for the purposes of deciding which perks can be chosen.</p><hr/><h3id="set_perk_name"><ahref="#set_perk_name"class="anchor-heading"aria-labelledby="set_perk_name"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>set_perk_name</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">void</span><spanclass="n">set_perk_name</span><spanclass="p">(</span><spanclass="kt">int</span><spanclass="n">perkID</span><spanclass="p">,</span><spanclass="n">string</span><spanclass="n">value</span><spanclass="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/><h3id="set_pyromaniac_mod"><ahref="#set_pyromaniac_mod"class="anchor-heading"aria-labelledby="set_pyromaniac_mod"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>set_pyromaniac_mod</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">void</span><spanclass="n">set_pyromaniac_mod</span><spanclass="p">(</span><spanclass="kt">int</span><spanclass="n">bonus</span><spanclass="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/><h3id="set_swiftlearner_mod"><ahref="#set_swiftlearner_mod"class="anchor-heading"aria-labelledby="set_swiftlearner_mod"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>set_swiftlearner_mod</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">void</span><spanclass="n">set_swiftlearner_mod</span><spanclass="p">(</span><spanclass="kt">int</span><spanclass="n">bonus</span><spanclass="p">)</span>
</code></pre></div></div><p>Reverts the effect os <codeclass="language-plaintext highlighter-rouge">hide_real_perks</code>.</p></main></div></div><divclass="search-overlay"></div></div></body></html>