项目

一般

简介

PlayDice » 历史记录 » 版本 2

tejie, 2025-12-27 15:20

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