Skip to content

CardDeclarationOpcode ​

Constants used with Duel.AnnounceCard as operations for filtering card names that can be declared. The operations, along with their operands, must be ordered in Reverse Polish Notation (RPN).

ConstantValueSummary
OPCODE_ADD1073741824Adds its operands.
OPCODE_SUB1073741825Subtracts its second operand from its first operand.
OPCODE_MUL1073741826Multiplies its operands.
OPCODE_DIV1073741827Divides its first operand by its second operand.
OPCODE_AND1073741828Performs logical AND on its operands.
OPCODE_OR1073741829Performs logical OR on its operands.
OPCODE_NEG1073741830Flips the sign of its operand.
OPCODE_NOT1073741831Performs logical NOT on its operand.
OPCODE_BAND1073741832Performs bitwise AND on its operands.
OPCODE_BOR1073741833Performs bitwise OR on its operands.
OPCODE_BNOT1073741840Performs bitwise NOT on its operand.
OPCODE_BXOR1073741841Performs bitwise XOR on its operands.
OPCODE_LSHIFT1073741842Performs bitwise left shift.
OPCODE_RSHIFT1073741843Performs bitwise right shift.
OPCODE_ALLOW_ALIASES1073741844Allows alias names.
OPCODE_ALLOW_TOKENS1073741845Allows token names.
OPCODE_ISCODE1073742080Checks for cards whose passcode matches its operand.
OPCODE_ISSETCARD1073742081Checks for cards with an archetype that matches its operand.
OPCODE_ISTYPE1073742082Checks for cards whose card type(s) matches its operand.
OPCODE_ISRACE1073742083Checks for cards whose race(s) matches its operand.
OPCODE_ISATTRIBUTE1073742084Checks for cards whose attribute(s) matches its operand.
OPCODE_GETCODE1073742085Evaluates to the passcode of the card being checked.
OPCODE_GETSETCARD1073742086Evaluates to the archetype(s) of the card being checked.
OPCODE_GETTYPE1073742087Evaluates to the card type(s) of the card being checked.
OPCODE_GETRACE1073742088Evaluates to the race(s) of the card being checked.
OPCODE_GETATTRIBUTE1073742089Evaluates to the attribute(s) of the card being checked.