项目

一般

简介

ClearGuildList » 历史记录 » 版本 2

yangdefeng, 2022-06-22 11:20

1 1 machenhe
_*%{color:green}clearGuildList%*_
2
删除指定文件
3
4
5
标签:命令定义|clearGuildList
6
7
*格式*
8
|命令名		|参数1		|
9
|clearGuildList	|文件路径	|
10
11
*说明*
12
* 参数1: 处理文件路径
13 2 yangdefeng
路径需要基于..\Mir200\Envir
14 1 machenhe
%{color:lightGrey}举例
15
设定处理路径为
16 2 yangdefeng
\testlist.txt
17 1 machenhe
完整处理路径
18 2 yangdefeng
..\Mir200\Envir\testlist.txt%
19 1 machenhe
20
-
21
-
22
23
*%{color:deepskyblue}特戒引擎脚本示例:%*
24
25
bq. [<notextile>@</notextile>main]
26
#act
27 2 yangdefeng
mov s$file \数据文件\测试非预制数据文件.txt
28 1 machenhe
#say
29 2 yangdefeng
<添加行会名称/<notextile>@</notextile>添加>\ \
30
<清理行会名文件/<notextile>@</notextile>清理>\ \
31
<检测所在行会是否在文件中/<notextile>@</notextile>检测行会名>\ \
32
<检测文件存在/<notextile>@</notextile>存在>\ \
33 1 machenhe
&nbsp;
34
[<notextile>@</notextile>添加]
35
#if
36
[[haveGuild]]
37
#act
38
[[addGuildList]] <$str(s$file)>
39
[[readTxt]] <$str(s$file)> s0
40
%{color:lightGrey};print命令在控制台输出文件内容%
41
print 文件内容-> s0
42
#elseAct
43
print 尚未加入行会
44
&nbsp;
45
[<notextile>@</notextile>清理]
46
#if
47
#act
48
*%{color:green}clearGuildList%* <$str(s$file)>
49
readTxt <$str(s$file)> s0
50
print 文件内容-> s0
51
&nbsp;
52
[<notextile>@</notextile>检测行会名]
53 2 yangdefeng
%{color:lightGrey};玩家没加入行会,执行checkGuildList会报错%
54 1 machenhe
#if
55
not haveGuild
56
#act
57
print 尚未加入行会
58
&nbsp;
59
#if
60
[[checkGuildList]] <$str(s$file)>
61
#act
62
print 所在行会存在于文件中
63
#elseAct
64
print 所在行会不存在于文件中
65
&nbsp;
66
#if
67
#act
68
readTxt <$str(s$file)> s0
69
print 文件内容-> s0
70
&nbsp;
71
[<notextile>@</notextile>存在]
72
#if
73
[[fileExist]] <$str(s$file)>
74
#act
75
print 文件存在
76
#elseAct
77
print 文件不存在