5a44d91c7f 2023-10-03 1: # 三个绑定函数
5a44d91c7f 2023-10-03 2:
5a44d91c7f 2023-10-03 3: ## PreSummon
5a44d91c7f 2023-10-03 4:
5a44d91c7f 2023-10-03 5: ### 原型
5a44d91c7f 2023-10-03 6:
5a44d91c7f 2023-10-03 7: Debug.PreSummon(卡, 召唤类型[, 从哪个区域特召到场上])
5a44d91c7f 2023-10-03 8:
5a44d91c7f 2023-10-03 9: ***
5a44d91c7f 2023-10-03 10:
5a44d91c7f 2023-10-03 11: ~~~
5a44d91c7f 2023-10-03 12: ● void Debug.PreSummon(Card c, int sum_type[, int sum_location=0])
5a44d91c7f 2023-10-03 13: 设置卡片 c 的召唤信息:以 sum_type 方法(通常召唤、特殊召唤等)[从 sum_location]出场
5a44d91c7f 2023-10-03 14: ~~~
5a44d91c7f 2023-10-03 15:
5a44d91c7f 2023-10-03 16: ### 召唤类型的可选值
5a44d91c7f 2023-10-03 17:
5a44d91c7f 2023-10-03 18: 1. SUMMON_TYPE_NORMAL
5a44d91c7f 2023-10-03 19:
5a44d91c7f 2023-10-03 20: 1. SUMMON_TYPE_ADVANCE
5a44d91c7f 2023-10-03 21:
5a44d91c7f 2023-10-03 22: 1. SUMMON_TYPE_DUAL
5a44d91c7f 2023-10-03 23:
5a44d91c7f 2023-10-03 24: 1. SUMMON_TYPE_FLIP
5a44d91c7f 2023-10-03 25:
5a44d91c7f 2023-10-03 26: 1. SUMMON_TYPE_SPECIAL
5a44d91c7f 2023-10-03 27:
5a44d91c7f 2023-10-03 28: 1. SUMMON_TYPE_FUSION
5a44d91c7f 2023-10-03 29:
5a44d91c7f 2023-10-03 30: 1. SUMMON_TYPE_RITUAL
5a44d91c7f 2023-10-03 31:
5a44d91c7f 2023-10-03 32: 1. SUMMON_TYPE_SYNCHRO
5a44d91c7f 2023-10-03 33:
5a44d91c7f 2023-10-03 34: 1. SUMMON_TYPE_XYZ
5a44d91c7f 2023-10-03 35:
5a44d91c7f 2023-10-03 36: 1. SUMMON_TYPE_PENDULUM
5a44d91c7f 2023-10-03 37:
5a44d91c7f 2023-10-03 38: 1. SUMMON_TYPE_LINK
5a44d91c7f 2023-10-03 39:
5a44d91c7f 2023-10-03 40: ***
5a44d91c7f 2023-10-03 41:
5a44d91c7f 2023-10-03 42: ~~~
5a44d91c7f 2023-10-03 43: --Summon Type --召唤类型
5a44d91c7f 2023-10-03 44:
5a44d91c7f 2023-10-03 45: SUMMON_TYPE_NORMAL =0x10000000 --通常召唤(EFFECT_SUMMON_PROC,EFFECT_SET_PROC 可用 Value 修改數值)
5a44d91c7f 2023-10-03 46:
5a44d91c7f 2023-10-03 47: SUMMON_TYPE_ADVANCE =0x11000000 --上级召唤
5a44d91c7f 2023-10-03 48:
5a44d91c7f 2023-10-03 49: SUMMON_TYPE_DUAL =0x12000000 --再度召唤(二重)
5a44d91c7f 2023-10-03 50:
5a44d91c7f 2023-10-03 51: SUMMON_TYPE_FLIP =0x20000000 --翻转召唤
5a44d91c7f 2023-10-03 52:
5a44d91c7f 2023-10-03 53: SUMMON_TYPE_SPECIAL =0x40000000 --特殊召唤(EFFECT_SPSUMMON_PROC,EFFECT_SPSUMMON_PROC_G 可用 Value 修改數值)
5a44d91c7f 2023-10-03 54:
5a44d91c7f 2023-10-03 55: SUMMON_TYPE_FUSION =0x43000000 --融合召唤
5a44d91c7f 2023-10-03 56:
5a44d91c7f 2023-10-03 57: SUMMON_TYPE_RITUAL =0x45000000 --仪式召唤
5a44d91c7f 2023-10-03 58:
5a44d91c7f 2023-10-03 59: SUMMON_TYPE_SYNCHRO =0x46000000 --同调召唤
5a44d91c7f 2023-10-03 60:
5a44d91c7f 2023-10-03 61: SUMMON_TYPE_XYZ =0x49000000 --超量召唤
5a44d91c7f 2023-10-03 62:
5a44d91c7f 2023-10-03 63: SUMMON_TYPE_PENDULUM =0x4a000000 --灵摆召唤
5a44d91c7f 2023-10-03 64:
5a44d91c7f 2023-10-03 65: SUMMON_TYPE_LINK =0x4c000000 --连接召唤
5a44d91c7f 2023-10-03 66: ~~~
5a44d91c7f 2023-10-03 67:
5a44d91c7f 2023-10-03 68: ### 从哪个区域特召到场上的可选值
5a44d91c7f 2023-10-03 69:
5a44d91c7f 2023-10-03 70: 1. LOCATION_DECK
5a44d91c7f 2023-10-03 71:
5a44d91c7f 2023-10-03 72: 1. LOCATION_HAND
5a44d91c7f 2023-10-03 73:
5a44d91c7f 2023-10-03 74: 1. LOCATION_GRAVE
5a44d91c7f 2023-10-03 75:
5a44d91c7f 2023-10-03 76: 1. LOCATION_REMOVED
5a44d91c7f 2023-10-03 77:
5a44d91c7f 2023-10-03 78: 1. LOCATION_EXTRA
5a44d91c7f 2023-10-03 79:
5a44d91c7f 2023-10-03 80: ***
5a44d91c7f 2023-10-03 81:
5a44d91c7f 2023-10-03 82: ~~~
5a44d91c7f 2023-10-03 83: LOCATION_DECK =0x01 --卡组
5a44d91c7f 2023-10-03 84:
5a44d91c7f 2023-10-03 85: LOCATION_HAND =0x02 --手牌
5a44d91c7f 2023-10-03 86:
5a44d91c7f 2023-10-03 87: LOCATION_MZONE =0x04 --主要怪兽区(0~4)+额外怪兽区(5~6)
5a44d91c7f 2023-10-03 88:
5a44d91c7f 2023-10-03 89: LOCATION_SZONE =0x08 --魔陷区(0~4)+场地区(5)
5a44d91c7f 2023-10-03 90:
5a44d91c7f 2023-10-03 91: LOCATION_GRAVE =0x10 --墓地
5a44d91c7f 2023-10-03 92:
5a44d91c7f 2023-10-03 93: LOCATION_REMOVED =0x20 --除外区
5a44d91c7f 2023-10-03 94:
5a44d91c7f 2023-10-03 95: LOCATION_EXTRA =0x40 --额外
5a44d91c7f 2023-10-03 96:
5a44d91c7f 2023-10-03 97: LOCATION_OVERLAY =0x80 --超量素材
5a44d91c7f 2023-10-03 98:
5a44d91c7f 2023-10-03 99: LOCATION_ONFIELD =0x0c --场上(LOCATION_MZONE+LOCATION_SZONE)
5a44d91c7f 2023-10-03 100: ~~~
5a44d91c7f 2023-10-03 101:
5a44d91c7f 2023-10-03 102: ### 补充
5a44d91c7f 2023-10-03 103:
5a44d91c7f 2023-10-03 104: 可参考 X-LV-48 。
5a44d91c7f 2023-10-03 105:
5a44d91c7f 2023-10-03 106: ## PreEquip
5a44d91c7f 2023-10-03 107:
5a44d91c7f 2023-10-03 108: ### 原型
5a44d91c7f 2023-10-03 109:
5a44d91c7f 2023-10-03 110: Debug.PreEquip(装备魔法卡, 怪兽卡)
5a44d91c7f 2023-10-03 111:
5a44d91c7f 2023-10-03 112: ***
5a44d91c7f 2023-10-03 113:
5a44d91c7f 2023-10-03 114: ~~~
5a44d91c7f 2023-10-03 115: ● bool Debug.PreEquip(Card equip_card, Card target)
5a44d91c7f 2023-10-03 116: 为 target 添加装备 equip_card ,返回值表示是否成功
5a44d91c7f 2023-10-03 117: ~~~
5a44d91c7f 2023-10-03 118:
5a44d91c7f 2023-10-03 119: ### 补充
5a44d91c7f 2023-10-03 120:
5a44d91c7f 2023-10-03 121: 1. 可参考 NH-04
5a44d91c7f 2023-10-03 122:
5a44d91c7f 2023-10-03 123: 1. 不能以怪兽装备怪兽
5a44d91c7f 2023-10-03 124:
5a44d91c7f 2023-10-03 125: ## PreSetTarget
5a44d91c7f 2023-10-03 126:
5a44d91c7f 2023-10-03 127: ### 原型
5a44d91c7f 2023-10-03 128:
5a44d91c7f 2023-10-03 129: Debug.PreSetTarget(保护卡, 被保护的卡)
5a44d91c7f 2023-10-03 130:
5a44d91c7f 2023-10-03 131: ***
5a44d91c7f 2023-10-03 132:
5a44d91c7f 2023-10-03 133: ~~~
5a44d91c7f 2023-10-03 134: ● void Debug.PreSetTarget(Card c, Card target)
5a44d91c7f 2023-10-03 135:
5a44d91c7f 2023-10-03 136: 把 target 选为 c 的永续对象
5a44d91c7f 2023-10-03 137: ~~~
5a44d91c7f 2023-10-03 138:
5a44d91c7f 2023-10-03 139: ### 补充
5a44d91c7f 2023-10-03 140:
5a44d91c7f 2023-10-03 141: 1. 必须在布局完成之后再使用。
5a44d91c7f 2023-10-03 142:
5a44d91c7f 2023-10-03 143: 1. 可参考 NH-04 。