游戏王残局简化版

Annotation For script/三个绑定函数.md
Login

Annotation For script/三个绑定函数.md

Origin for each line in script/三个绑定函数.md from check-in 90cc8e032c:

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