ES2 MUD LIB :: 東方故事二(ES2) 天朝帝國 mudlib 瀏覽展示

/cmds/std/emote.c

HOME :: cmds :: std :: emote.c
// emote.c (Mon  09-04-95)

#include 
inherit F_CLEAN_UP;
 
int main(object me, string str)
{
    if (!str) {
        write(CYN"你看起來表情豐富。\n"NOR);
        tell_room(environment(me), CYN+(string)me->name()+
"看起來表情豐富。\n" +NOR, me);
        return 1;
    }
    write(CYN"你"+str+"\n"NOR);
    tell_room(environment(me), CYN+( (userp(me) && !wizardp(me)) ? "->":"")+(string)me->name()+
        str+"\n"+NOR, me);
    return 1;
}
 
int help(object me)
{
write(@HELP
指令格式: emote <動作詞>

這個指令可以讓你表達一個系統沒有預設的動作詞, 系統會將你所輸入
的文字加上你的姓名後顯示給所有在同一個地方的生物看. 為了避免造
成困擾, 玩家所輸入的詞句前面會加上 -> 以供區別. (巫師則不在此
限.)

範例: emote 坐了下來。
你會看見: 你坐了下來。
其他人會看到: ->包子坐了下來。

其中, 包子就是你的名字.

相關指令: semote
HELP
);
        return 1;
}
HOME :: cmds :: std :: emote.c