Xeen Wiki
Supported In:
C D/S/W W-CD
? ? ?

The scripting command ExchObj has the opcode (0x33).

Arguments

  • Byte - The first object number as given on the map.
  • Byte - The second object number as given on the map.


Description

Exchanges two objects on the map.

Notes

This is effectively the same as two MoveObj opcodes: move first object to second objects location, and then second object to the first objects original location. Uses include exchanging a closed barrel with an open barrel, or turning a tent into a fire.