游戏王残局简化版

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

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

Lines of script/三个绑定函数.md from check-in c023041629 that are changed by the sequence of edits moving toward check-in 90cc8e032c:

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