AddGuild » 历史记录 » 版本 1
yangdefeng, 2022-05-09 11:43
| 1 | 1 | yangdefeng | _*%{color:green}addGuild%*_ |
|---|---|---|---|
| 2 | 创建1个指定名称的行会,指定某在线玩家为会长 |
||
| 3 | %{color:deepPink}通过[默认行会系统][界面按钮]创建行会时, |
||
| 4 | 无须使用该命令.% |
||
| 5 | |||
| 6 | 标签:命令定义|addGuild |
||
| 7 | |||
| 8 | *格式* |
||
| 9 | |命令名 |参数1 |参数2 | |
||
| 10 | |addGuild |行会名|会长名| |
||
| 11 | |||
| 12 | *说明* |
||
| 13 | 参数1: 创建行会的名称 |
||
| 14 | |||
| 15 | 参数2: 指定行会会长角色名 |
||
| 16 | * 参数2为\"self\" 指定当前玩家为会长 |
||
| 17 | * 参数2为在线玩家名 指定此在线玩家为会长 |
||
| 18 | |||
| 19 | |||
| 20 | - |
||
| 21 | - |
||
| 22 | |||
| 23 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
| 24 | |||
| 25 | bq. [<notextile>@</notextile>main] |
||
| 26 | #say |
||
| 27 | <创建行会/<notextile>@</notextile>创建>\\ \\ |
||
| 28 | <解散行会/<notextile>@</notextile>解散>\\ \\ |
||
| 29 | <打开行会界面/<notextile>@</notextile>行会界面>\\ \\ |
||
| 30 | <全服行会列表/<notextile>@</notextile>行会列表>\\ \\ |
||
| 31 | |
||
| 32 | [<notextile>@</notextile>创建] |
||
| 33 | #if |
||
| 34 | not [[haveGuild]] |
||
| 35 | #act |
||
| 36 | %{color:lightGrey};创建行会,以玩家角色名为行会名称% |
||
| 37 | *%{color:green}addGuild%* <$userName> self |
||
| 38 | [[sendTipsMsg]] 行会创建成功/fcolor=222 |
||
| 39 | #elseAct |
||
| 40 | sendTipsMsg 你有组织,不能创建/fcolor=222 |
||
| 41 | |
||
| 42 | [<notextile>@</notextile>解散] |
||
| 43 | #if |
||
| 44 | [[isGuildMaster]] |
||
| 45 | #act |
||
| 46 | [[disband]] |
||
| 47 | sendTipsMsg 你解散了行会/fcolor=222 |
||
| 48 | #elseAct |
||
| 49 | sendTipsMsg 你不是会长/fcolor=222 |
||
| 50 | |
||
| 51 | [<notextile>@</notextile>行会界面] |
||
| 52 | #if |
||
| 53 | #act |
||
| 54 | [[openSysUi]] 3 |
||
| 55 | |
||
| 56 | [<notextile>@</notextile>行会列表] |
||
| 57 | #act |
||
| 58 | [[getGuildList]] s$行会列表 |
||
| 59 | print <$str(s$行会列表)> |
||
| 60 | sendTipsMsg 请在控制台查看/fcolor=222 |