Skip to content

bit.bxor ​

Signature ​

lua
bit.bxor(int a, int b) -> int

Description ​

Returns the bitwise XOR of a and b.

Parameters ​

  • a int
  • b int

Returns ​

  • int

Source ​

  • Utilities/utility.lua:21

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 8 indexed script(s).
  • Search this function in the Script Explorer with bit.bxor.
CardIDScriptDetected Calls
S-Force Justify35334193Scripts/c35334193.lua1
Parallel Panzer93394164Scripts/c93394164.lua2
Dark Infant @Ignister74567889Scripts/c74567889.lua1
Procession of the Tea Jar12612470Scripts/c12612470.lua1
Gouki The Solid Ogre22510667Scripts/c22510667.lua1
Link Back3567660Scripts/c3567660.lua1
Yajiro Invader10852583Scripts/c10852583.lua1
Staring Contest97729135Scripts/c97729135.lua2

Script Examples ​

S-Force Justify (35334193) ​

Source: Scripts/c35334193.lua

lua
		if tc:IsDisabled() and tc:IsControler(1-tp) and Duel.GetLocationCount(1-tp,LOCATION_MZONE,PLAYER_NONE,0,zone)>0 and Duel.SelectYesNo(tp,aux.Stringid(35334193,2)) then
			local s=0
			local flag=bit.bxor(zone,0xff)*0x10000
			Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE)
			s=Duel.SelectDisableField(tp,1,0,LOCATION_MZONE,flag)/0x10000

Parallel Panzer (93394164) ​

Source: Scripts/c93394164.lua

lua
		local s=0
		if ec:IsControler(tp) then
			local flag=bit.bxor(zone,0xff)
			Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE)
			s=Duel.SelectDisableField(tp,1,LOCATION_MZONE,0,flag)

Dark Infant @Ignister (74567889) ​

Source: Scripts/c74567889.lua

lua
	local s=zone
	if s&(s-1)~=0 then
		local flag=bit.bxor(zone,0xff)
		Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE)
		s=Duel.SelectDisableField(tp,1,LOCATION_MZONE,0,flag)