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