游戏王残局简化版

Annotation For 残局文料/副_容冗/三个绑定函数.md
Login

Annotation For 残局文料/副_容冗/三个绑定函数.md

Origin for each line in 残局文料/副_容冗/三个绑定函数.md from check-in 9763bc0ec1:

9763bc0ec1 2024-02-14    1: # 三个绑定函数
9763bc0ec1 2024-02-14    2: ## PreSummon
9763bc0ec1 2024-02-14    3: ### 原型
9763bc0ec1 2024-02-14    4: Debug.PreSummon(卡, 召唤类型[, 从哪个区域特召到场上])
9763bc0ec1 2024-02-14    5: ***
9763bc0ec1 2024-02-14    6: ~~~
9763bc0ec1 2024-02-14    7: ● void Debug.PreSummon(Card c, int sum_type[, int sum_location=0])
9763bc0ec1 2024-02-14    8: 设置卡片 c 的召唤信息:以 sum_type 方法(通常召唤、特殊召唤等)[从 sum_location]出场
9763bc0ec1 2024-02-14    9: ~~~
9763bc0ec1 2024-02-14   10: ### 召唤类型的可选值
9763bc0ec1 2024-02-14   11: 1. SUMMON_TYPE_NORMAL
9763bc0ec1 2024-02-14   12: 1. SUMMON_TYPE_ADVANCE
9763bc0ec1 2024-02-14   13: 1. SUMMON_TYPE_DUAL
9763bc0ec1 2024-02-14   14: 1. SUMMON_TYPE_FLIP
9763bc0ec1 2024-02-14   15: 1. SUMMON_TYPE_SPECIAL
9763bc0ec1 2024-02-14   16: 1. SUMMON_TYPE_FUSION
9763bc0ec1 2024-02-14   17: 1. SUMMON_TYPE_RITUAL
9763bc0ec1 2024-02-14   18: 1. SUMMON_TYPE_SYNCHRO
9763bc0ec1 2024-02-14   19: 1. SUMMON_TYPE_XYZ
9763bc0ec1 2024-02-14   20: 1. SUMMON_TYPE_PENDULUM
9763bc0ec1 2024-02-14   21: 1. SUMMON_TYPE_LINK
9763bc0ec1 2024-02-14   22: ***
9763bc0ec1 2024-02-14   23: ~~~
9763bc0ec1 2024-02-14   24: --Summon Type --召唤类型
9763bc0ec1 2024-02-14   25: SUMMON_TYPE_NORMAL		=0x10000000 --通常召唤(EFFECT_SUMMON_PROC,EFFECT_SET_PROC 可用 Value 修改數值)
9763bc0ec1 2024-02-14   26: SUMMON_TYPE_ADVANCE		=0x11000000 --上级召唤
9763bc0ec1 2024-02-14   27: SUMMON_TYPE_DUAL		=0x12000000	--再度召唤(二重)
9763bc0ec1 2024-02-14   28: SUMMON_TYPE_FLIP		=0x20000000	--翻转召唤
9763bc0ec1 2024-02-14   29: SUMMON_TYPE_SPECIAL		=0x40000000	--特殊召唤(EFFECT_SPSUMMON_PROC,EFFECT_SPSUMMON_PROC_G 可用 Value 修改數值)
9763bc0ec1 2024-02-14   30: SUMMON_TYPE_FUSION		=0x43000000	--融合召唤
9763bc0ec1 2024-02-14   31: SUMMON_TYPE_RITUAL		=0x45000000	--仪式召唤
9763bc0ec1 2024-02-14   32: SUMMON_TYPE_SYNCHRO		=0x46000000	--同调召唤
9763bc0ec1 2024-02-14   33: SUMMON_TYPE_XYZ			=0x49000000	--超量召唤
9763bc0ec1 2024-02-14   34: SUMMON_TYPE_PENDULUM	=0x4a000000 --灵摆召唤
9763bc0ec1 2024-02-14   35: SUMMON_TYPE_LINK		=0x4c000000 --连接召唤
9763bc0ec1 2024-02-14   36: ~~~
9763bc0ec1 2024-02-14   37: ### 从哪个区域特召到场上的可选值
9763bc0ec1 2024-02-14   38: 1. LOCATION_DECK
9763bc0ec1 2024-02-14   39: 1. LOCATION_HAND
9763bc0ec1 2024-02-14   40: 1. LOCATION_GRAVE
9763bc0ec1 2024-02-14   41: 1. LOCATION_REMOVED
9763bc0ec1 2024-02-14   42: 1. LOCATION_EXTRA
9763bc0ec1 2024-02-14   43: ***
9763bc0ec1 2024-02-14   44: ~~~
9763bc0ec1 2024-02-14   45: LOCATION_DECK		=0x01		--卡组
9763bc0ec1 2024-02-14   46: LOCATION_HAND		=0x02		--手牌
9763bc0ec1 2024-02-14   47: LOCATION_MZONE		=0x04		--主要怪兽区(0~4)+额外怪兽区(5~6)
9763bc0ec1 2024-02-14   48: LOCATION_SZONE		=0x08		--魔陷区(0~4)+场地区(5)
9763bc0ec1 2024-02-14   49: LOCATION_GRAVE		=0x10		--墓地
9763bc0ec1 2024-02-14   50: LOCATION_REMOVED	=0x20		--除外区
9763bc0ec1 2024-02-14   51: LOCATION_EXTRA		=0x40		--额外
9763bc0ec1 2024-02-14   52: LOCATION_OVERLAY	=0x80		--超量素材
9763bc0ec1 2024-02-14   53: LOCATION_ONFIELD	=0x0c		--场上(LOCATION_MZONE+LOCATION_SZONE)
9763bc0ec1 2024-02-14   54: ~~~
9763bc0ec1 2024-02-14   55: ### 补充
9763bc0ec1 2024-02-14   56: 可参考 X-LV-48 。
9763bc0ec1 2024-02-14   57: ## PreEquip
9763bc0ec1 2024-02-14   58: ### 原型
9763bc0ec1 2024-02-14   59: Debug.PreEquip(装备魔法卡, 怪兽卡)
9763bc0ec1 2024-02-14   60: ***
9763bc0ec1 2024-02-14   61: ~~~
9763bc0ec1 2024-02-14   62: ● bool Debug.PreEquip(Card equip_card, Card target)
9763bc0ec1 2024-02-14   63: 为 target 添加装备 equip_card ,返回值表示是否成功
9763bc0ec1 2024-02-14   64: ~~~
9763bc0ec1 2024-02-14   65: ### 补充
9763bc0ec1 2024-02-14   66: 1. 可参考 NH-04
9763bc0ec1 2024-02-14   67: 1. 不能以怪兽装备怪兽
9763bc0ec1 2024-02-14   68: ## PreSetTarget
9763bc0ec1 2024-02-14   69: ### 原型
9763bc0ec1 2024-02-14   70: Debug.PreSetTarget(保护卡, 被保护的卡)
9763bc0ec1 2024-02-14   71: ***
9763bc0ec1 2024-02-14   72: ~~~
9763bc0ec1 2024-02-14   73: ● void Debug.PreSetTarget(Card c, Card target)
9763bc0ec1 2024-02-14   74: 把 target 选为 c 的永续对象
9763bc0ec1 2024-02-14   75: ~~~
9763bc0ec1 2024-02-14   76: ### 补充
9763bc0ec1 2024-02-14   77: 1. 必须在布局完成之后再使用。
9763bc0ec1 2024-02-14   78: 1. 可参考 NH-04 。