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