项目

一般

简介

DoDrop » 历史记录 » 版本 7

tejie, 2026-10-15 10:03

1 3 yangdefeng
h4. _*%{color:green}doDrop%*_
2 1 yangdefeng
3
脚本控制角色死亡掉落
4
5 7 tejie
标签:命令定义^doDrop
6 1 yangdefeng
7
*格式*
8
|命令名	|参数1		|参数2		|参数3		|
9
|doDrop	|装备唯一id	|道具名称	|掉落数量	|
10
11 7 tejie
*说明*
12
|参数1|掉落物为装备时,此参数为唯一id|
13
|参数2|掉落物道具名称|
14
|参数3|掉落数量|
15 1 yangdefeng
16
* 此命令使用前提
17
开启以下配置, 
18
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt	|
19
|配置节点|[[tjconfig|[tjconfig]]]			|
20
|配置项  |canCtrlDrop=1					|
21
|\2.在以下触发器中可获得doDrop的3个参数			|
22
|\2. [[[@scatterBagItems<notextile>]</notextile>|[@scatterBagItems<notextile>]</notextile>]]|
23 2 chenjun
|\2. [[[@dropUseItems<notextile>]</notextile>|[@dropUseItems<notextile>]</notextile>]]|
24 1 yangdefeng
25
26
-
27
-
28
29 3 yangdefeng
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
30 1 yangdefeng
31
*使用前提*
32
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt	|
33
|配置节点|[[tjconfig|[tjconfig]]]			|
34
|配置项  |canCtrlDrop=1					|
35
36
-
37
-
38
39
40
%{color:deepPink}以下为QFunction-0.txt中的触发块%
41
文件路径
42 5 yangdefeng
*..\Mir200\Envir\Market_Def\QFunction-0.txt*
43 1 yangdefeng
44
bq. %{color:lightGrey};--脚本控制背包物品掉落%
45 4 yangdefeng
*{color:firebrick}[@scatterBagItems]*
46 1 yangdefeng
#if
47
%{color:lightGrey};--配置不执行掉落的条件%
48
#act
49
%{color:lightGrey};--此处为不执行掉落的逻辑%
50
#elseAct
51
;--执行掉落处理
52
*{color:green}doDrop* s0 s1 s2
53
54
bq. %{color:lightGrey};--脚本控制身上物品掉落%
55 4 yangdefeng
*{color:firebrick}[@dropUseItems]*
56 1 yangdefeng
#if
57
%{color:lightGrey};--配置掉落再返回的条件%
58
#act
59
%{color:lightGrey};--此处为掉落再返回的逻辑%
60
goto <notextile>@返回道具</notextile>
61
#elseAct
62 6 yangdefeng
%{color:lightGrey};--执行掉落处理%
63 1 yangdefeng
*{color:green}doDrop* s0 s1 s2
64
&nbsp;
65
[<notextile>@返回道具</notextile>]
66
#if
67
%{color:lightGrey};--背包没满%
68
#act
69
[[giveInsItem]] s1
70
#elseAct
71
[[sendEmails]] 保险掉落返还 保险掉落返还 s1,