This commit is contained in:
github-actions[bot]
2026-04-23 14:38:24 +00:00
parent a0d1c2688c
commit 3180403494
11 changed files with 28 additions and 28 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
</code></pre></div></div><hr /> <h3 class="d-inline-block" id="add_g_timer_event"> <a href="#add_g_timer_event" class="anchor-heading" aria-labelledby="add_g_timer_event"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>add_g_timer_event</strong> </h3> <p class="label label-green">sfall.h</p> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">add_g_timer_event</span><span class="p">(</span><span class="kt">int</span> <span class="n">time</span><span class="p">,</span> <span class="kt">int</span> <span class="n">fixedParam</span><span class="p">)</span>
</code></pre></div></div> <p>Adds a timer event that calls the <code class="language-plaintext highlighter-rouge">timed_event_p_proc</code> procedure in the current global script <code class="language-plaintext highlighter-rouge">time</code>: the number of ticks after which the event timer is triggered <code class="language-plaintext highlighter-rouge">fixedParam</code>: the value that is passed to the <code class="language-plaintext highlighter-rouge">timed_event_p_proc</code> procedure for the <code class="language-plaintext highlighter-rouge">fixed_param</code> function</p><hr /> <h3 id="create_message_window"> <a href="#create_message_window" class="anchor-heading" aria-labelledby="create_message_window"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>create_message_window</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">create_message_window</span><span class="p">(</span><span class="n">string</span> <span class="n">message</span><span class="p">)</span>
</code></pre></div></div><hr /> <h3 id="create_spatial"> <a href="#create_spatial" class="anchor-heading" aria-labelledby="create_spatial"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>create_spatial</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">ObjectPtr</span> <span class="n">create_spatial</span><span class="p">(</span><span class="kt">int</span> <span class="n">scriptID</span><span class="p">,</span> <span class="kt">int</span> <span class="n">tile</span><span class="p">,</span> <span class="kt">int</span> <span class="n">elevation</span><span class="p">,</span> <span class="kt">int</span> <span class="n">radius</span><span class="p">)</span>
</code></pre></div></div> <p>Creates new spatial script with given SID, at given tile, and radius.</p><hr /> <h3 id="game_loaded"> <a href="#game_loaded" class="anchor-heading" aria-labelledby="game_loaded"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>game_loaded</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">int</span> <span class="n">game_loaded</span>
</code></pre></div></div> <p>Creates new spatial script with the given scriptID at the given tile and radius.</p><hr /> <h3 id="game_loaded"> <a href="#game_loaded" class="anchor-heading" aria-labelledby="game_loaded"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>game_loaded</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">int</span> <span class="n">game_loaded</span>
</code></pre></div></div> <p>Returns 1 the first time it is called after a new game or game load, and 0 any time after. It works on an individual basis for each script, so one script wont interfere with others. Its primary use is for global scripts, so that they know when to call <code class="language-plaintext highlighter-rouge">set_global_script_repeat</code>, but it can be called from normal scripts too.</p><hr /> <h3 id="gdialog_get_barter_mod"> <a href="#gdialog_get_barter_mod" class="anchor-heading" aria-labelledby="gdialog_get_barter_mod"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>gdialog_get_barter_mod</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">int</span> <span class="n">gdialog_get_barter_mod</span>
</code></pre></div></div><hr /> <h3 id="get_game_mode"> <a href="#get_game_mode" class="anchor-heading" aria-labelledby="get_game_mode"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>get_game_mode</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">int</span> <span class="n">get_game_mode</span>
</code></pre></div></div> <p>A more flexible version of in_world_map. It will return a set of flags indicating which mode the game is currently in. These flags are the same as those used in the <code class="language-plaintext highlighter-rouge">set_shader_mode function</code>.</p><hr /> <h3 id="get_inven_ap_cost"> <a href="#get_inven_ap_cost" class="anchor-heading" aria-labelledby="get_inven_ap_cost"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>get_inven_ap_cost</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">int</span> <span class="n">get_inven_ap_cost</span>