Skip to content

Commit

Permalink
Merge pull request #184 from RiwsPy/dev
Browse files Browse the repository at this point in the history
Opcode - Some fixes
  • Loading branch information
lynxlynxlynx authored Jan 4, 2025
2 parents bbb9ecb + e8980ad commit 08d8462
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 8 deletions.
5 changes: 5 additions & 0 deletions _data/actions/67.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ desc: |-
SetGlobal("KRSTORM","GLOBAL",1)
END
```
{% capture note %}
In the EE's, the action has no effect if `Weather` has been disabled in the game options.
In addition, Fog option needs `Enable Fog` to be enabled in the game options.
{% endcapture %} {% include note.html %}
2 changes: 1 addition & 1 deletion _opcodes/op048.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
pst: 1
pstee: 1
---
Removes the <a href="#op48">silence effect</a> and <a href="../files/ids/bgee/state.htm#BIT12">STATE_SILENCED</a> from the targeted creature(s).
Removes the <a href="#op38">silence effect</a> and <a href="../files/ids/bgee/state.htm#BIT12">STATE_SILENCED</a> from the targeted creature(s).
<br/>This effect ignores durations attributed to it.
2 changes: 1 addition & 1 deletion _opcodes/op067.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
Default is a hardcoded VVC using <code>"SPBOOM.BAM"</code> and palette <code>#65</code>. This is generally used as the "portal" animation.
</li>
<li>(EE only) <code><a href="../file_formats/ie_formats/eff_v2.htm#effv2_Body_0x78">Resource 3</a></code> (external <a href="../file_formats/ie_formats/eff_v2.htm">EFF</a>s): Animation VVC/BAM file to be played at the location of the ability target.</li>
<li>Applies an <a href="#op271">opcode #271</a> to the summoned creature based on the duration of the <code><a href="../file_formats/ie_formats/eff_v2.htm#effv2_Body_0x70">Resource 2</a></code> (not exact). Creature will not appear/spawn until this animation finishes.</li>
<li>Applies an <a href="#op271">opcode #271</a> to the summoned creature based on the duration of the <code><a href="../file_formats/ie_formats/eff_v2.htm#effv2_Body_0x70">Resource 2</a></code> (not exact) and Mode set to 1 (tested only in EE). Creature will not appear/spawn until this animation finishes.</li>
<li>Applies a delayed <a href="#op215">opcode #215</a> with <code>resource = "SPGFLSH1"</code> to the summoned creature, <code>delayed duration = 5 ticks less</code> than the <a href="#op271">opcode #271</a>.</li>
<li>Applies a delayed <a href="#op68">opcode #68</a> to the summoned creature based on effect duration (unless permanent).</li>
<li>When summoned, any temporary changes (such as from equipped items) to the creature's <a href="../files/ids/bgee/gender.htm">gender</a> are made permanent.</li>
Expand Down
14 changes: 11 additions & 3 deletions _opcodes/op271-bgee.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
n: 271
opname: "Graphics: Avatar Removal"
param1: "Irrelevant"
param2: "Irrelevant"
param2: "Mode"
bg1: 0
bg2: 0
bgee: 1
Expand All @@ -12,6 +12,14 @@
pstee: 1
---
Hides the creature's animation and selection circle, including illusionary images (Blur / Mirror Image).<br/>
Disables the creature's AI scripts.<br/>
The creature cannot take any action not listed in <a href="../files/ids/bgee/instant.htm">INSTANT.IDS</a> (usually through <a href="../scripting/actions/bgeeactions.htm#1">ActionOverride()</a>).<br/>
The creature is still subject to area effect and may still be targeted directly by mouseover.
The creature is still subject to area effect and may still be targeted directly by mouseover.
<br/><br/>

Known values for <code>Mode</code> are:
<ul>
<li>0 &longrightarrow; Default behavior</li>
<li>1 &longrightarrow; In addition, disables the creature's AI scripts, sets <a href="../files/ids/bgee/stats.htm#188">SUMMON_DISABLE_ACTION</a> to <code>1</code></li>
</ul>

<br/>This effect sets <a href="../files/ids/bgee/stats.htm#70">CasterHold</a> and <a href="../files/ids/bgee/stats.htm#150">SUMMONDISABLE</a> to <code>1</code>.
7 changes: 6 additions & 1 deletion _opcodes/op320-bgee.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@
<li>0 &longrightarrow; Normal</li>
<li>1 &longrightarrow; Rain</li>
<li>2 &longrightarrow; Snow</li>
<li>3 &longrightarrow; Fog (unimplemented)</li>
<li>3 &longrightarrow; Fog</li>
</ul>

{% capture note %}
The action has no effect if `Weather` has been disabled in the game options.
In addition, Fog option requires `Enable Fog` to be enabled in the game options.
{% endcapture %} {% include note.html %}
8 changes: 7 additions & 1 deletion _opcodes/op323-bgee.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
opname: "Stat: Turn Undead Level"
param1: "Statistic Modifier"
param2: "Type"
special: "Mode"
bg1: 0
bg2: 0
bgee: 1
Expand All @@ -16,7 +17,12 @@
<ul>
<li>0 &longrightarrow; Cumulative Modifier: <code>TurnLevel = TurnLevel + 'Statistic Modifier' value</code></li>
<li>1 &longrightarrow; Flat Value Modifier: <code>TurnLevel = 'Statistic Modifier' value</code></li>
<li>2 &longrightarrow; Percentage Modifier: <code>TurnLevel = (TurnLevel * 'Statistic Modifier' value) / 100</code></li>
</ul>

<br/><br/>Known values for <code>Mode</code> are:
<ul>
<li>0 &longrightarrow; Normal: Effect functions as dictated by the <code>Type</code> field.</li>
<li>1 &longrightarrow; Parameter #1 is incremented by the highest target level.</li>
</ul>

<br/><br/>The effect modifies <a href="../files/ids/bgee/stats.htm#55">TURNUNDEADLEVEL</a>.
Expand Down
8 changes: 7 additions & 1 deletion files/ids/bgee/stats.htm
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@

<div class="idsHeader"><a name="70">70 CasterHold</a></div>
<div class="indent1">
Set by <a href="../../../opcodes/bgee.htm#op165">opcode #165</a>
Set by <a href="../../../opcodes/bgee.htm#op165">opcode #165</a> and <a href="../../../opcodes/bgee.htm#op271">opcode #271</a>
</div>
<br />

Expand Down Expand Up @@ -882,6 +882,9 @@
<br />

<div class="idsHeader"><a name="150">150 SUMMONDISABLE</a></div>
<div class="indent1">
Set by <a href="../../../opcodes/bgee.htm#op271">opcode #271</a>
</div>
<br />

<div class="idsHeader"><a name="151">151 HITBONUS</a></div>
Expand Down Expand Up @@ -1155,6 +1158,9 @@
<br />

<div class="idsHeader"><a name="188">188 SUMMON_DISABLE_ACTION</a></div>
<div class="indent1">
Set by <a href="../../../opcodes/bgee.htm#op271">opcode #271</a>
</div>
<br />

<div class="idsHeader"><a name="189">189 CHAOS_SHIELD</a></div>
Expand Down

0 comments on commit 08d8462

Please sign in to comment.