Skip to content

Commit

Permalink
clarified HasItemEquipedReal, thanks Bubb
Browse files Browse the repository at this point in the history
  • Loading branch information
lynxlynxlynx committed Oct 17, 2023
1 parent c71c2fe commit a829067
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripting/triggers/bg2triggers.htm
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@
Returns true only if the specified object can carry no more items.<br />
<br />
<strong>0x40C2 HasItemEquipedReal(S:ResRef*,O:Object*)</strong><br />
Returns true only if the specified object has the specified item equipped and it is in use. This trigger does not work for Melf's Minute Meteors.<br />
Returns true if the specified object has the specified item outside the general inventory slots. Unlike HasItemEquiped it only checks the equipped weapon slot, not all of them. This trigger does not work for Melf's Minute Meteors or other magically created weapons.<br />
<br />
<strong>0x40C3 XP(O:Object*,I:XP)</strong><br />
Returns true if the specified object has experience points equal to the number specified.<br />
Expand Down
3 changes: 2 additions & 1 deletion scripting/triggers/bgeetriggers.htm
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,8 @@

<div class="triggerHeader"><a name="0x40C2">0x40C2 HasItemEquipedReal(S:ResRef*,O:Object*)</a></div>
<div class="indent1">
Returns true only if the specified object has the specified item equipped and it is in use. This trigger does not work for items created by <a href="../../opcodes/bgee.htm#op111">opcode #111</a> (such as Melf's Minute Meteors).
Returns true if the specified object has the specified item outside the general inventory slots. Unlike H
asItemEquiped it only checks the equipped weapon slot, not all of them. This trigger does not work for items created by <a href="../../opcodes/bgee.htm#op111">opcode #111</a> (such as Melf's Minute Meteors).
</div>
<br />

Expand Down
4 changes: 3 additions & 1 deletion scripting/triggers/psteetriggers.htm
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,9 @@

<div class="triggerHeader"><a name="0x40C2">0x40C2 HasItemEquipedReal(S:ResRef*,O:Object*)</a></div>
<div class="indent1">
Returns true only if the specified object has the specified item equipped and it is in use. This trigger does not work for items created by <a href="../../opcodes/pstee.htm#op111">opcode #111</a> (such as Melf's Minute Meteors).
Returns true if the specified object has the specified item outside the general inventory slots. Unlike H
asItemEquiped it only checks the equipped weapon slot, not all of them. This trigger does not work for items
created by <a href="../../opcodes/bgee.htm#op111">opcode #111</a> (such as Melf's Minute Meteors).
</div>
<br />

Expand Down

0 comments on commit a829067

Please sign in to comment.