FANDOM


This opcode has been marked 'Do Not Use'. Any user-created event should not use this opcode, as the implementation in the original engine may be buggy, incomplete, or highly specialised. The user who placed this here had the following concern:
This is never used in Xeen, and is in fact implemented with bugs. It may be implemented in future ports and fixed, but don't count on it.
To leave a message about the cleanup for this article, please insert it on this article's talk page.
Supported In:
C D/S/W W-CD
? ? ?

The scripting command TakeOrGive has the opcode (0x26).

Arguments

  • Byte - Give Type
  • Byte - Compare Value (1, 2, or 4 bytes, depending on type, mostly 1)
  • Byte - Give Type
  • Byte - Give Value (1, 2, or 4 bytes, depending on type, mostly 1)


Description

Compares the value of the type in the first argument, and gives the thing in the second argument only if compare value is less than the actual.

Notes

Behaves similar to the 0x1C TakeOrGive except the comparison is only true if the value is less than the actual, not greater than.

While 0x0C, 0x1C, 0x1D, and 0x26 opcodes all execute the TakeGive command, there are differences which may warrant each to have their own page.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.