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