项目

一般

简介

Qf触发器 beginTakeOff » 历史记录 » 版本 2

tejie, 2025-07-15 16:08

1 1 tejie
h4. _*{color:green}[@beginTakeOff]*_
2
3 2 tejie
装备替换前触发
4
5 1 tejie
标签:触发器定义|[@beginTakeOff]
6
7 2 tejie
*相关命令*
8
[[stopTakeOff]]
9
10
*{color:fireBrick}返回变量*
11
|物品位置      |<$CurItemPos>      |
12
|名称          |<$CurItemName>     |
13
|改名名称      |<$G_CurItemName>   |
14
|当前装备实例id|<$CurItemMakeIndex>|
15
|换上装备实例id|<$scriptParam1>    |
16
17
-
18
-
19
20
h4. *{color:deepskyblue}特戒引擎脚本示例:*
21
22
bq. ..\Mir200\Envir\Market_Def\QFunction-0.txt
23
*{color:green}[<notextile>@</notextile>beginTakeOff]*
24
#if
25
*[[equal]] <$str(n$0确认换上)> 0*
26
[[stopTakeOff]]
27
%{color:lightGrey};--换下装备信息%
28
[[print]] 装备位置:<$curItemPos>,物品:<$curItemName>,物品:<$G_curItemName>,ID:<$curItemMakeIndex>
29
<notextile></notextile>
30
%{color:lightGrey};--换上装备信息%
31
[[mov]] n$0换上装备 %{color:deeppink}<$scriptParam1>%
32
[[mov]] n$0换上位置 <$curItemPos>
33
<notextile></notextile>
34
[[messageBox]] 是否替换 <notextile>@</notextile>确认替换
35
<notextile></notextile>
36
[<notextile>@</notextile>确认替换]
37
#act
38
*[[mov]] n$0确认换上 1*
39
%{color:deeppink}[[takeOnItem]]% n$0换上装备 n$0换上位置 %{color:deeppink}1%
40
*[[mov]] n$0确认换上 0*