Qf触发器返回变量 » 历史记录 » 版本 3
yangdefeng, 2022-06-16 15:07
1 | 1 | yangdefeng | h3. qf触发器返回变量 |
---|---|---|---|
2 | |||
3 | - |
||
4 | - |
||
5 | |\2{background-color:lightgrey}. 可使用触发器清单 |
||
6 | [@dropItemEx] |
||
7 | [@dropItemX] (X=物品数据库中对应的IDX) |
||
8 | [@pickUpItemX] (X=物品数据库中对应的IDX) |
||
9 | [@pickUpItemEx] |
||
10 | | |
||
11 | |<$currTemName> |当前物品名称 | |
||
12 | |<$g_currTemName> |当前物品改名名称 | |
||
13 | |<$currTemStdMode> |当前物品DB字段StdMode值 | |
||
14 | |<$currTemShape> |当前物品DB字段Shape值 | |
||
15 | |<$currTemAniCount> |当前物品DB字段AniCount值 | |
||
16 | |<$currTemLooks> |当前物品DB字段Looks值 | |
||
17 | |<$currTemDura> |当前物品当前持久值 | |
||
18 | |<$currTemIndex> |当前物品最大持久值 | |
||
19 | |<$currTemColor> |当前物品DB字段Color值 | |
||
20 | |\2. 脚本用例 |
||
21 | ;----------------------------------- |
||
22 | [@PickUpItem0] |
||
23 | #if |
||
24 | #say |
||
25 | %s捡到了一个<$currTemName> |
||
26 | ;----------------------------------- |
||
27 | [@PickUpItemEx] |
||
28 | #if |
||
29 | #say |
||
30 | %s捡到了一个<$currTemName> |
||
31 | - |
||
32 | - |
||
33 | | |
||
34 | |\2{background-color:lightgrey}. 可使用触发器清单 |
||
35 | [@playDie] |
||
36 | | |
||
37 | |<$killer> |杀死主角的玩家名称 | |
||
38 | |<$monKiller> |杀死主角的怪物名称 | |
||
39 | |\2. 脚本用例 |
||
40 | ;----------------------------------- |
||
41 | [@PlayDie] |
||
42 | #if |
||
43 | killByHum |
||
44 | #act |
||
45 | sendMsg 6 玩家 <$killer> 在%m 把你干死了! |
||
46 | #elseAct |
||
47 | sendMsg 6 怪物 <$monKiller> 在%m 把你干死了! |
||
48 | - |
||
49 | - |
||
50 | | |
||
51 | |\2{background-color:lightgrey}. 可使用触发器清单 |
||
52 | [@onKillMob] |
||
53 | | |
||
54 | |<$killMonName> |人物杀死的怪物名称 | |
||
55 | |<$killMonX> |人物杀死怪物的X坐标 | |
||
56 | |<$killMonY> |人物杀死怪物的Y坐标 | |
||
57 | |<$espKillMonName> |获取当前杀死的怪物名称,支持宝宝击杀 | |
||
58 | |\2. 脚本用例 |
||
59 | ;----------------------------------- |
||
60 | [@OnKillMob] |
||
61 | #if |
||
62 | #act |
||
63 | sendMsg 6 你在%m:<$killMonX>,<$killMonY>,杀死了<$killMonName> |
||
64 | - |
||
65 | - |
||
66 | | |
||
67 | |\2{background-color:lightgrey}. 可使用触发器清单 |
||
68 | [@attack] |
||
69 | [@magicAttack] |
||
70 | | |
||
71 | |<$pkPower> |当前攻击造成的伤害 | |
||
72 | |<$attackMonster_maxHp> |角色当前所攻击怪物的最大血量 | |
||
73 | |<$pgTargetName> |当前攻击对象名称 | |
||
74 | |<$pgPkPower> |当前攻击造成的伤害 | |
||
75 | |<$pgTargetHp> |当前攻击对象血量 | |
||
76 | |<$pgTargetMaxHp> |角色当前所攻击怪物的最大血量 | |
||
77 | |<$pgTargetX> |当前攻击对象X坐标 | |
||
78 | |<$pgTargetY> |当前攻击对象Y坐标 | |
||
79 | |<$attackMonster_x> |当前攻击对象X坐标 | |
||
80 | |<$attackMonster_x> |当前攻击对象Y坐标 | |
||
81 | |<$attackMonster_hp> |当前攻击的目标血量值 | |
||
82 | |<$attackMonster_max_hp> |当前攻击的目标最大血量值 | |
||
83 | |\2. 脚本用例 |
||
84 | - |
||
85 | - |
||
86 | | |
||
87 | |\2{background-color:lightgrey}. 可使用触发器清单 |
||
88 | [@attack] |
||
89 | [@magicAttack] |
||
90 | [@struck] |
||
91 | [@magicStruck] |
||
92 | 3 | yangdefeng | [@KillPlay] |
93 | 1 | yangdefeng | | |
94 | 3 | yangdefeng | | +[[<$currrTargetName>]]+|返回攻击者的名称(玩家名或怪物名) | |
95 | 1 | yangdefeng | |<$currrUseMagicId> |返回攻击者使用的技能ID | |
96 | |\2. 脚本用例 |
||
97 | ;----------------------------------------------------------------------------------- |
||
98 | [@attack] |
||
99 | #if |
||
100 | checkCurrTargetRace = 0 |
||
101 | #act |
||
102 | sendMsg 6 你用技能=<$currrUseMagicId>攻击了玩家【<$currrTargetName>】 |
||
103 | break |
||
104 | ;----------------------------------- |
||
105 | #if |
||
106 | #act |
||
107 | sendMsg 6 你用技能=<$currrUseMagicId>攻击了怪物【<$currrTargetName>】 |
||
108 | ;----------------------------------------------------------------------------------- |
||
109 | [@struck] |
||
110 | #if |
||
111 | checkCurrTargetRace = 0 |
||
112 | #act |
||
113 | sendMsg 6 你被玩家【<$currrTargetName>】用技能=<$currrUseMagicId>攻击 |
||
114 | break |
||
115 | ;----------------------------------- |
||
116 | #if |
||
117 | #act |
||
118 | sendMsg 6 你被怪物【<$currrTargetName>】用技能=<$currrUseMagicId>攻击 |
||
119 | break |
||
120 | 3 | yangdefeng | ;----------------------------------- |
121 | [@KillPlay] |
||
122 | #act |
||
123 | sendmsg 6 已击杀:<$currrTargetName> |
||
124 | break |
||
125 | 1 | yangdefeng | - |
126 | - |
||
127 | | |
||
128 | |\2{background-color:lightgrey}. 可使用触发器清单 |
||
129 | [@PGDropItem] |
||
130 | | |
||
131 | |<$pgDropMonster> |返回掉落物品的怪物名称 | |
||
132 | |<$pgDropItem> |返回掉落的物品名称 | |
||
133 | |\2. 脚本用例 |
||
134 | - |
||
135 | - |
||
136 | | |
||
137 | |\2{background-color:lightgrey}. 可使用触发器清单 |
||
138 | [@slaveAttack] |
||
139 | [@slaveMagicAttack] |
||
140 | | |
||
141 | |<$babyName> |当前宝宝名称 | |
||
142 | |<$bAttackMonster_name> |当前宝宝攻击目标的名称 | |
||
143 | |<$bAttackMonster_x> |当前宝宝坐标X | |
||
144 | |<$bAttackMonster_y> |当前宝宝坐标Y | |
||
145 | |<$bAttackMonster_hp> |当前宝宝攻击目标的血量值 | |
||
146 | |<$bAttackMonster_max_hp> |当前宝宝攻击目标的最大血量值 | |
||
147 | 3 | yangdefeng | |<$slaveAttackPower> |宝宝当前攻击造成的伤害 | |
148 | 1 | yangdefeng | |\2. 脚本用例 |
149 | - |
||
150 | - |
||
151 | 2 | yangdefeng | | |
152 | 1 | yangdefeng | |\2{background-color:lightgrey}. 可使用触发器清单 |
153 | 3 | yangdefeng | [@updateskill] |
154 | | |
||
155 | |<$upgradeskillname> |当前玩家学习/升级的技能名称 | |
||
156 | |\2. 脚本用例 |
||
157 | [@updateskill] |
||
158 | #act |
||
159 | sendmsg 6 玩家的 <$upgradeskillname> 技能升级了 |
||
160 | - |
||
161 | - |
||
162 | | |
||
163 | |\2{background-color:lightgrey}. 可使用触发器清单 |
||
164 | [@autoRecycle] |
||
165 | | |
||
166 | |<$autoRecycle> |是否勾选自动回收勾选框 | |
||
167 | |<$autoRecycleEnable> |是否开启自动回收权限 | |
||
168 | |\2. 脚本用例 |
||
169 | [@自动回收切换] |
||
170 | #if |
||
171 | equal <$autoRecycleEnable> 0 |
||
172 | #act |
||
173 | messagebox 未开启自动回收权限 |
||
174 | break |
||
175 | ;---------------------------------------------------- |
||
176 | #if |
||
177 | equal <$autoRecycleEnable> 1 |
||
178 | #act |
||
179 | goto @switchAutoRecycle |
||
180 | ;---------------------------------------------------- |
||
181 | [@switchAutoRecycle] |
||
182 | #if |
||
183 | equal <$autoRecycle> 0 |
||
184 | #act |
||
185 | setautoRecycle 1 |
||
186 | break |
||
187 | ;---------------------------------------------------- |
||
188 | #if |
||
189 | equal <$autoRecycle> 1 |
||
190 | #act |
||
191 | setautoRecycle 0 |
||
192 | break |
||
193 | - |
||
194 | - |
||
195 | | |
||
196 | |\2{background-color:lightgrey}. 可使用触发器清单 |
||
197 | 怪物掉落配置触发器 |
||
198 | | |
||
199 | | +[[<$dropItemName>]]+ |杀死怪物正在爆出的物品名称 | |
||
200 | |\2. 脚本用例 |
||
201 | - |
||
202 | - |
||
203 | | |
||
204 | |\2{background-color:lightgrey}. 可使用触发器清单 |
||
205 | 1 | yangdefeng | [@getExp] |
206 | 2 | yangdefeng | | |
207 | 3 | yangdefeng | | <$getExp> |qfunction触发器[@getExp]中返回本次杀怪经验| |
208 | 2 | yangdefeng | |\2. 脚本用例 |
209 | - |
||
210 | - |
||
211 | | |