师徒脚本 » 历史记录 » 版本 4
chenjun, 2022-06-05 16:00
1 | 1 | chenjun | h4. _*%{color:green}师徒脚本%*_ |
---|---|---|---|
2 | |||
3 | |||
4 | 标签:脚本|师徒脚本 |
||
5 | |||
6 | 4 | chenjun | |
7 | *说明* |
||
8 | 拜师时,师徒双方人物需要保持面对面。 |
||
9 | 出师时,正常出师需要师徒双方人物都到场,强行出师不需要师傅到场。 |
||
10 | |||
11 | 1 | chenjun | - |
12 | - |
||
13 | |||
14 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
15 | |||
16 | - |
||
17 | - |
||
18 | |||
19 | |||
20 | |||
21 | bq. [@main] |
||
22 | #say |
||
23 | <我想拜师/@master> \ \ |
||
24 | <我想出师/@unmaster> \ \ |
||
25 | <离开/@exit> |
||
26 | |
||
27 | |
||
28 | |
||
29 | [@master] |
||
30 | #say |
||
31 | 想拜师呀,你要拜的师傅来了没有? \ \ |
||
32 | 输入师傅的名字,开始拜师。 \ \ |
||
33 | <输入师傅名字/@@InputStringMaster> \ \ |
||
34 | <我再想想/@exit> \ \ |
||
35 | <返回/@main> |
||
36 | |
||
37 | |
||
38 | [@InputStringMaster] |
||
39 | #if |
||
40 | %{color:lightGrey};检测玩家输入的内容是否在本服务器存在匹配的角色名% |
||
41 | 2 | chenjun | [[checkMasterName]] |
42 | 1 | chenjun | #act |
43 | goto @agree |
||
44 | #elseact |
||
45 | 3 | chenjun | [[messageBox]] 角色名不存在 |
46 | 1 | chenjun | |
47 | |
||
48 | [@agree] |
||
49 | #if |
||
50 | %{color:lightGrey};检测准师傅(名字变量<$sMasterName>)是不是已经是某人的师傅了% |
||
51 | 3 | chenjun | [[checkIsMaster]] |
52 | 1 | chenjun | #say |
53 | TA已经是别人的师傅了!!! \ \ |
||
54 | <返回/@main> |
||
55 | #act |
||
56 | break |
||
57 | |
||
58 | #if |
||
59 | %{color:lightGrey};检测准徒弟自身是不是已经拜师了% |
||
60 | 3 | chenjun | [[checkMaster]] |
61 | 1 | chenjun | #say |
62 | 你都已经有师傅了,怎么还拜师!!! \ \ |
||
63 | <返回/@main> |
||
64 | #act |
||
65 | break |
||
66 | |
||
67 | #if |
||
68 | %{color:lightGrey};检测准师傅(名字变量<$sMasterName>)当前是不是别人的徒弟% |
||
69 | 3 | chenjun | [[checkPoseMaster]] |
70 | 1 | chenjun | #say |
71 | 你找了个什么人做师傅,怎么现在还是别人的徒弟?\ \ |
||
72 | <返回/@main> |
||
73 | #act |
||
74 | break |
||
75 | |
||
76 | #if |
||
77 | %{color:lightGrey};检测准师傅与准徒弟的距离是否在指定范围内,且面对面% |
||
78 | 3 | chenjun | [[checkPoseDir]] <$sMasterName> 3 |
79 | 1 | chenjun | #elsesay |
80 | 师傅怎么没在你身边啊,都站得离我近一点。\ \ |
||
81 | <返回/@main> |
||
82 | #elseact |
||
83 | break |
||
84 | |
||
85 | #if |
||
86 | 3 | chenjun | [[checkLevel]] 160 |
87 | 1 | chenjun | #say |
88 | 你都超过160级了还要找师傅?\ \ |
||
89 | <返回/@main> |
||
90 | #act |
||
91 | break |
||
92 | |
||
93 | #if |
||
94 | %{color:lightGrey};检测准师傅的等级% |
||
95 | 3 | chenjun | [[checkPoseLevel]] <$sMasterName> > 200 |
96 | 1 | chenjun | #elsesay |
97 | 你找个什么师傅呀,等级还不到200级?\ \ |
||
98 | <返回/@main> |
||
99 | #elseact |
||
100 | break |
||
101 | |
||
102 | #if |
||
103 | #act |
||
104 | %{color:lightGrey};执行后徒弟自身执行@StartGetMaster,师傅角色执行@StartMaster% |
||
105 | 3 | chenjun | [[master]] |
106 | 1 | chenjun | |
107 | |
||
108 | [@StartGetMaster] |
||
109 | #say |
||
110 | 拜师仪式正式开始。\ \ |
||
111 | 你是否确认拜师?\ \ |
||
112 | <确认/@RequestMaster> |
||
113 | |
||
114 | |
||
115 | [@StartMaster] |
||
116 | #say |
||
117 | 拜师仪式正式开始。\ \ |
||
118 | 对方已经向你提出拜师请求。\ \ |
||
119 | |
||
120 | |
||
121 | [@RequestMaster] |
||
122 | #if |
||
123 | 3 | chenjun | [[checkItem]] 盟重传送石 1 |
124 | 1 | chenjun | #elsesay |
125 | 你都没信物,怎么拜呀!!!\ \ |
||
126 | <返回/@main> |
||
127 | #elseact |
||
128 | break |
||
129 | |
||
130 | #if |
||
131 | #act |
||
132 | 3 | chenjun | [[take]] 盟重传送石 1 |
133 | 1 | chenjun | %{color:lightGrey};执行后徒弟自身执行@WateMaster,师傅角色执行@RevMaster% |
134 | 3 | chenjun | [[master requestmaster]] |
135 | 1 | chenjun | |
136 | |
||
137 | [@WateMaster] |
||
138 | #say |
||
139 | 你已向对方请求拜师,请耐心等待对方的答复。 |
||
140 | |
||
141 | |
||
142 | [@RevMaster] |
||
143 | #say |
||
144 | 对方想拜你为师,你是否想收此人为徒? \ \ |
||
145 | <同意/@ResposeMaster> \ \ |
||
146 | <不同意/@ResposeMasterFail> |
||
147 | |
||
148 | |
||
149 | [@ResposeMaster] |
||
150 | #if |
||
151 | #act |
||
152 | %{color:lightGrey};执行后拜师成功,师傅自身和徒弟角色均执行@EndMaster% |
||
153 | 3 | chenjun | [[master responseMaster ok]] |
154 | 1 | chenjun | |
155 | |
||
156 | [@ResposeMasterFail] |
||
157 | #if |
||
158 | #act |
||
159 | %{color:lightGrey};执行后拜师失败,师傅自身和徒弟角色均执行@EndMasterFail% |
||
160 | 3 | chenjun | [[master responseMaster fail]] |
161 | 1 | chenjun | |
162 | |
||
163 | [@EndMaster] |
||
164 | #say |
||
165 | 拜师成功,你们俩已经是师徒关系了。\ \ |
||
166 | <关闭/@exit> |
||
167 | |
||
168 | |
||
169 | [@EndMasterFail] |
||
170 | #say |
||
171 | 拜师失败,拜师请求被拒。\ \ |
||
172 | <关闭/@exit> |
||
173 | |
||
174 | |
||
175 | |
||
176 | [@unmaster] |
||
177 | #if |
||
178 | %{color:lightGrey};检测自身是不是师傅或徒弟% |
||
179 | 3 | chenjun | [[haveMaster]] |
180 | 1 | chenjun | #act |
181 | %{color:lightGrey};如果触发者是师傅,则师傅自身执行@UnIsMaster% |
||
182 | %{color:lightGrey};如果触发者是徒弟,且师傅与自身距离大于3,则徒弟自身执行@UnMasterCheckDir% |
||
183 | %{color:lightGrey};如果触发者是徒弟,且师傅与自身距离小于等于3,则徒弟自身执行@StartUnMaster,师傅执行@WateUnMaster% |
||
184 | 3 | chenjun | [[unmaster]] |
185 | 1 | chenjun | #elsesay |
186 | 你都没师傅,跑来做什么?? \ \ |
||
187 | <返回/@main> |
||
188 | |
||
189 | |
||
190 | [@UnIsMaster] |
||
191 | #say |
||
192 | 必须由徒弟提起出师请求!!! \ \ |
||
193 | <返回/@main> |
||
194 | |
||
195 | |
||
196 | [@UnMasterCheckDir] |
||
197 | #say |
||
198 | 按正常出师步骤,必须俩人一起过来\ |
||
199 | 如果师傅来不了你只能选择强行出师了。 \ \ |
||
200 | <我要强行出师/@fUnMaster> \ \ |
||
201 | <返回/@main> |
||
202 | |
||
203 | |
||
204 | %{color:lightGrey};开始程序后,徒弟显示的信息% |
||
205 | [@StartUnMaster] |
||
206 | #say |
||
207 | 出师仪式现在开始!!! \ \ |
||
208 | 是否确定真的要脱离师徒关系? \ \ |
||
209 | <确定/@RequestUnMaster> |
||
210 | |
||
211 | |
||
212 | [@WateUnMaster] |
||
213 | #say |
||
214 | 出师仪式现在开始!!! |
||
215 | |
||
216 | |
||
217 | %{color:lightGrey};徒弟发出请求% |
||
218 | [@RequestUnMaster] |
||
219 | #if |
||
220 | 3 | chenjun | [[havemaster]] |
221 | 1 | chenjun | #act |
222 | %{color:lightGrey};执行后徒弟自身执行@WateUnMasterOne,师傅角色执行@RevUnMaster% |
||
223 | 3 | chenjun | [[unmaster requestUnmaster]] |
224 | 1 | chenjun | |
225 | |
||
226 | %{color:lightGrey};徒弟请求后显示的信息% |
||
227 | [@WateUnMasterOne] |
||
228 | #say |
||
229 | 你已向对方发出请求,请耐心等待对方的答复。 |
||
230 | |
||
231 | |
||
232 | %{color:lightGrey};请求后师傅显示的信息% |
||
233 | [@RevUnMaster] |
||
234 | #say |
||
235 | 对方向你请求,你是否答应? \ \ |
||
236 | <我愿意/@RequestUnMasterOk> \ \ |
||
237 | <返回/@main> |
||
238 | |
||
239 | |
||
240 | [@RequestUnMasterOk] |
||
241 | #if |
||
242 | 3 | chenjun | [[havemaster]] |
243 | 1 | chenjun | #act |
244 | %{color:lightGrey};执行后出师成功,师傅和徒弟均执行@UnMasterEnd% |
||
245 | 3 | chenjun | [[unmaster requestUnmaster ok]] |
246 | 1 | chenjun | |
247 | |
||
248 | %{color:lightGrey};强行出师% |
||
249 | [@fUnMaster] |
||
250 | #if |
||
251 | 3 | chenjun | [[checkItem]] 随机传送石 1 |
252 | [[havemaster]] |
||
253 | 1 | chenjun | #act |
254 | take 随机传送石 1 |
||
255 | %{color:lightGrey};执行后徒弟强行出师成功,徒弟执行@UnMasterEnd% |
||
256 | 3 | chenjun | [[unmaster requestUnmaster force]] |
257 | 1 | chenjun | #elsesay |
258 | 强行出师要花费一个随机传送石,背包中未发现 \ \ |
||
259 | <确定/@exit> |
||
260 | |
||
261 | |
||
262 | %{color:lightGrey};出师完成后的提示信息% |
||
263 | [@unMasterEnd] |
||
264 | #say |
||
265 | 出师成功 |