PlayDice » 历史记录 » 版本 1
machenhe, 2022-04-22 14:48
1 | 1 | machenhe | _*%{color:green}playDice%*_ |
---|---|---|---|
2 | 投出指定结果及数量的骰子,播放对应动画 |
||
3 | |||
4 | 标签:命令定义|playDice |
||
5 | |||
6 | *格式* |
||
7 | |_.命令名 |_.参数1 |_.参数2 | |
||
8 | |playDice |骰子数量 |跳转标签 | |
||
9 | |||
10 | *说明* |
||
11 | * 参数1 |
||
12 | 要投出的骰子数量 |
||
13 | |||
14 | * 参数2 |
||
15 | 跳转标签 |
||
16 | |||
17 | * %{color:deepPink}执行playDice前,需要给投出的骰子赋结果值(1-6) |
||
18 | 设置投出几个骰子,就赋几个值 |
||
19 | 赋值方式为,给dX变量赋值(X=0,1,2,3...)% |
||
20 | |
||
21 | _举例 |
||
22 | 投出一个 |
||
23 | mov d0 1 |
||
24 | |
||
25 | 投出两个 |
||
26 | mov d0 1 |
||
27 | mov d1 1 |
||
28 | |
||
29 | 投出三个 |
||
30 | mov d0 1 |
||
31 | mov d1 1 |
||
32 | mov d2 1 |
||
33 | _ |
||
34 | - |
||
35 | - |
||
36 | |||
37 | *%{color:deepskyblue}脚本示例:%* |
||
38 | |||
39 | bq. [<notextile>@</notextile>main] |
||
40 | #act |
||
41 | movR d0 1 7 |
||
42 | playDice 1 @等待结果 |
||
43 | |
||
44 | [<notextile>@</notextile>等待结果] |
||
45 | #act |
||
46 | delayGoto 2500 <notextile>@</notextile>展示结果 |
||
47 | |
||
48 | [<notextile>@</notextile>展示结果] |
||
49 | #act |
||
50 | sendTipsMsg 摇出了<$str(d0)>/scolor=151 |
||
51 | |||
52 | - |
||
53 | - |
||
54 | |||
55 | bq. [<notextile>@</notextile>main] |
||
56 | #act |
||
57 | movR d0 1 7 |
||
58 | movR d1 1 7 |
||
59 | movR d2 1 7 |
||
60 | playDice 3 <notextile>@</notextile>等待结果 |
||
61 | |
||
62 | [<notextile>@</notextile>等待结果] |
||
63 | #act |
||
64 | delayGoto 2500 <notextile>@</notextile>展示结果 |
||
65 | |
||
66 | [<notextile>@</notextile>展示结果] |
||
67 | #act |
||
68 | sendTipsMsg 摇出了<$str(d0)><$str(d1)><$str(d2)>/scolor=151 |