4a8edbf38c 2023-07-06 1: % 卡组测试教程
4a8edbf38c 2023-07-06 2:
d5a54926cd 2023-07-15 3: # 前言
4a8edbf38c 2023-07-06 4:
faba112e7d 2023-07-05 5: 有人想用残局,进行卡组<b>测试</b>。
3f356dbfe7 2023-07-01 6:
3f356dbfe7 2023-07-01 7: 鄙人在此提供些微帮助。
2e5e7f4d20 2023-07-05 8:
d5a54926cd 2023-07-15 9: # 开局添加手卡
91b653973a 2023-07-01 10:
91b653973a 2023-07-01 11: ~~~
91b653973a 2023-07-01 12: --~ 必须位于残局文件顶部
91b653973a 2023-07-01 13: --~ 加载残局函数库
91b653973a 2023-07-01 14: Debug.AddCard(0
d5a54926cd 2023-07-15 15: , 0
d5a54926cd 2023-07-15 16: , 0
d5a54926cd 2023-07-15 17: , LOCATION_MZONE
d5a54926cd 2023-07-15 18: , -1
d5a54926cd 2023-07-15 19: , POS_FACEUP)
d5a54926cd 2023-07-15 20:
91b653973a 2023-07-01 21: ~~~
91b653973a 2023-07-01 22:
91b653973a 2023-07-01 23: 这段加载代码应放于残局文件顶部,才可使用所有功能。
91b653973a 2023-07-01 24:
91b653973a 2023-07-01 25: ~~~
91b653973a 2023-07-01 26: --~ 必须位于残局文件底部
91b653973a 2023-07-01 27: fun["开局添加手卡"](6)
d5a54926cd 2023-07-15 28:
91b653973a 2023-07-01 29: ~~~
91b653973a 2023-07-01 30:
91b653973a 2023-07-01 31: 数字可改。
91b653973a 2023-07-01 32:
018bab7c55 2023-07-01 33: <b>注意:这项功能依赖于残局函数库。</b>
018bab7c55 2023-07-01 34:
018bab7c55 2023-07-01 35: <b>具体来说,就是要安装「游戏王残局简化版」。</b>
018bab7c55 2023-07-01 36:
6932193319 2023-07-05 37: <b>☞ 以下内容不够重要,可以忽略</b>
cbdee3d921 2023-07-05 38:
d5a54926cd 2023-07-15 39: # 开启多回合
cbdee3d921 2023-07-05 40:
cbdee3d921 2023-07-05 41: ~~~
cbdee3d921 2023-07-05 42: aux.BeginPuzzle()
d5a54926cd 2023-07-15 43:
cbdee3d921 2023-07-05 44: ~~~
cbdee3d921 2023-07-05 45:
cbdee3d921 2023-07-05 46: 它注册了三个效果:
cbdee3d921 2023-07-05 47:
cbdee3d921 2023-07-05 48: 1. 跳过抽卡阶段
cbdee3d921 2023-07-05 49: 1. 跳过准备阶段
2af3c67742 2023-07-05 50: 1. 结束阶段时,玩家血量<b>归零</b>
2af3c67742 2023-07-05 51:
2af3c67742 2023-07-05 52: 去掉这一代码,便可开启多回合。
29fb4006a0 2023-07-05 53:
d5a54926cd 2023-07-15 54: # 完全操控 AI
29fb4006a0 2023-07-05 55:
29fb4006a0 2023-07-05 56: ~~~
29fb4006a0 2023-07-05 57: Debug.ReloadFieldBegin(
d5a54926cd 2023-07-15 58: DUEL_ATTACK_FIRST_TURN
d5a54926cd 2023-07-15 59: + DUEL_SIMPLE_AI
d5a54926cd 2023-07-15 60: , 5)
d5a54926cd 2023-07-15 61:
29fb4006a0 2023-07-05 62: ~~~
29fb4006a0 2023-07-05 63:
29fb4006a0 2023-07-05 64: <b>去除</b>特定参数即可。
29fb4006a0 2023-07-05 65:
29fb4006a0 2023-07-05 66: ~~~
29fb4006a0 2023-07-05 67: Debug.ReloadFieldBegin(
d5a54926cd 2023-07-15 68: DUEL_ATTACK_FIRST_TURN
d5a54926cd 2023-07-15 69: , 5)
d5a54926cd 2023-07-15 70:
b608952ae3 2023-07-05 71: ~~~
b608952ae3 2023-07-05 72:
b608952ae3 2023-07-05 73: <b>☞ 以下内容不够重要,可以忽略</b>
b608952ae3 2023-07-05 74:
d5a54926cd 2023-07-15 75: # 控制抽卡数量
b608952ae3 2023-07-05 76:
b608952ae3 2023-07-05 77: ~~~
b608952ae3 2023-07-05 78: Debug.SetPlayerInfo(0,0,0,0)
d5a54926cd 2023-07-15 79:
b608952ae3 2023-07-05 80: ~~~
b608952ae3 2023-07-05 81:
bd5f6e4fb9 2023-07-05 82: 最后一个参数控制<b>每</b>回合抽卡数量。
d5a54926cd 2023-07-15 83:
d5a54926cd 2023-07-15 84: # 伪洗牌
b608952ae3 2023-07-05 85:
b608952ae3 2023-07-05 86: ~~~
b608952ae3 2023-07-05 87: Debug.ReloadFieldBegin(
d5a54926cd 2023-07-15 88: DUEL_ATTACK_FIRST_TURN
d5a54926cd 2023-07-15 89: + DUEL_SIMPLE_AI
d5a54926cd 2023-07-15 90: , 5)
d5a54926cd 2023-07-15 91:
b608952ae3 2023-07-05 92: ~~~
b608952ae3 2023-07-05 93:
b608952ae3 2023-07-05 94: <b>添加</b>特定参数即可。
b608952ae3 2023-07-05 95:
b608952ae3 2023-07-05 96: ~~~
b608952ae3 2023-07-05 97: Debug.ReloadFieldBegin(
d5a54926cd 2023-07-15 98: DUEL_ATTACK_FIRST_TURN
d5a54926cd 2023-07-15 99: + DUEL_SIMPLE_AI
d5a54926cd 2023-07-15 100: + DUEL_PSEUDO_SHUFFLE
d5a54926cd 2023-07-15 101: , 5)
b608952ae3 2023-07-05 102:
d5a54926cd 2023-07-15 103: ~~~
f339169133 2023-07-05 104: