Event
Constants representing events that happen in a Duel.
Constant | Value | Summary |
---|---|---|
EVENT_STARTUP | 1000 | The start of the Duel. |
EVENT_FLIP | 1001 | A card(s) is flipped face-up. |
EVENT_FREE_CHAIN | 1002 | A card or effect can be activated freely. |
EVENT_DESTROY | 1010 | A card(s) is destroyed but has not yet left the field. |
EVENT_REMOVE | 1011 | A card(s) is banished. |
EVENT_TO_HAND | 1012 | A card(s) is added to the hand. |
EVENT_TO_DECK | 1013 | A card(s) is sent to the Deck. |
EVENT_TO_GRAVE | 1014 | A card(s) is sent to the GY. |
EVENT_LEAVE_FIELD | 1015 | A card(s) left the field. |
EVENT_CHANGE_POS | 1016 | A monster's battle position is changed. |
EVENT_RELEASE | 1017 | A card(s) is Tributed. |
EVENT_DISCARD | 1018 | A card(s) is discarded. |
EVENT_LEAVE_FIELD_P | 1019 | A card(s) is about to leave the field. |
EVENT_CHAIN_SOLVING | 1020 | A Chain Link is resolving. |
EVENT_CHAIN_ACTIVATING | 1021 | A Chain Link is about to resolve. |
EVENT_CHAIN_SOLVED | 1022 | A Chain Link has finished resolving. |
EVENT_CHAIN_NEGATED | 1024 | The activation of an effect is negated. |
EVENT_CHAIN_DISABLED | 1025 | The effect of a Chain Link is negated. |
EVENT_CHAIN_END | 1026 | A Chain has fully resolved. |
EVENT_CHAINING | 1027 | An effect is activated, creating a Chain Link. |
EVENT_BECOME_TARGET | 1028 | A card(s) is targeted by an effect. |
EVENT_DESTROYED | 1029 | A card(s) is destroyed and has left the field. |
EVENT_MOVE | 1030 | A card(s) is moved to a different location or sequence. |
EVENT_ADJUST | 1040 | The game state changed. |
EVENT_BREAK_EFFECT | 1050 | Duel.BreakEffect is executed. |
EVENT_SUMMON_SUCCESS | 1100 | A monster is Normal Summoned successfully. |
EVENT_FLIP_SUMMON_SUCCESS | 1101 | A monster is Flip Summoned successfully. |
EVENT_SPSUMMON_SUCCESS | 1102 | A monster is Special Summoned successfully. |
EVENT_SUMMON | 1103 | A monster would be Normal Summoned. |
EVENT_FLIP_SUMMON | 1104 | A monster would be Flip Summoned. |
EVENT_SPSUMMON | 1105 | A monster would be Special Summoned. |
EVENT_MSET | 1106 | A monster is Normal Set. |
EVENT_SSET | 1107 | A Spell/Trap Card is set. |
EVENT_BE_MATERIAL | 1108 | A card(s) is used as a material for a Summon. |
EVENT_BE_PRE_MATERIAL | 1109 | A card(s) is about to be used as a material for a Summon. |
EVENT_DRAW | 1110 | A card(s) is drawn. |
EVENT_DAMAGE | 1111 | A player took battle or effect damage. |
EVENT_RECOVER | 1112 | A player gained LP. |
EVENT_PREDRAW | 1113 | Start of the Draw Phase, before the turn player draws a card. |
EVENT_SUMMON_NEGATED | 1114 | The Normal Summon of a monster is negated. |
EVENT_FLIP_SUMMON_NEGATED | 1115 | The Flip Summon of a monster is negated. |
EVENT_SPSUMMON_NEGATED | 1116 | The Special Summon of a monster is negated. |
EVENT_CONTROL_CHANGED | 1120 | The control of a card is changed. |
EVENT_EQUIP | 1121 | A card(s) is equipped. |
EVENT_ATTACK_ANNOUNCE | 1130 | An attack is declared. |
EVENT_BE_BATTLE_TARGET | 1131 | A monster is targeted for an attack. |
EVENT_BATTLE_START | 1132 | Start of the Damage Step. |
EVENT_BATTLE_CONFIRM | 1133 | A monster is battling another monster. |
EVENT_PRE_DAMAGE_CALCULATE | 1134 | Damage calculation is about to be performed. |
EVENT_PRE_BATTLE_DAMAGE | 1136 | A player is about to take battle damage. |
EVENT_BATTLED | 1138 | After damage calculation. |
EVENT_BATTLE_DESTROYING | 1139 | A monster destroys another monster by battle. |
EVENT_BATTLE_DESTROYED | 1140 | A monster is destroyed by battle. |
EVENT_DAMAGE_STEP_END | 1141 | End of the Damage Step. |
EVENT_ATTACK_DISABLED | 1142 | An attack is negated. |
EVENT_BATTLE_DAMAGE | 1143 | A player took battle damage. |
EVENT_TOSS_DICE | 1150 | A six-sided die is rolled. |
EVENT_TOSS_COIN | 1151 | A coin is tossed. |
EVENT_TOSS_COIN_NEGATE | 1152 | A coin toss has just been performed and can be redone. |
EVENT_TOSS_DICE_NEGATE | 1153 | A six-sided die has just been rolled and can be redone. |
EVENT_LEVEL_UP | 1200 | A monster's Level is increased. |
EVENT_PAY_LPCOST | 1201 | A player paid LP as a cost. |
EVENT_DETACH_MATERIAL | 1202 | An Xyz Monster's material(s) is detached. |
EVENT_RETURN_TO_GRAVE | 1203 | A card(s) is being returned to the GY. |
EVENT_TURN_END | 1210 | The end of the turn. |
EVENT_PHASE | 4096 | A given phase is reached. |
EVENT_PHASE_START | 8192 | The start of a given phase. |
EVENT_ADD_COUNTER | 65536 | A counter(s) is placed on a card(s). |
EVENT_REMOVE_COUNTER | 131072 | A counter is removed from cards. |
EVENT_CUSTOM | 268435456 | Added to a custom ID to create a custom event. |