秋林拾叶【mud.Gameivy.COM】 >> 论坛 >> ┈┋MUD 交流区┋┈ >> 武林群侠传 >> 游戏讨论区 >> 给选天赋的玩家一些东西,好好看看。
给选天赋的玩家一些东西,好好看看。 ivy,2005-07-27 12:35:27

void born_player(object me)
{
        mixed files;
        int i;
        string special;
        string msg;

        msg = HIG "你与生俱来的技能有:" NOR;

        // 查看所有的特殊技能文件
        files = get_dir("/kungfu/special/");
        me->delete("special_skill");

        if (sizeof(files))
        {
                // 整理所有的技能文件
                for (i = 0; i < sizeof(files); i++)
                        sscanf(files[i], "%s.c", files[i]);

                // 特殊先天属性先行排除
                files -= ({ "lighting" });

                // 性格不符不会愤怒之心
                if (me->query("character") != "光明磊落"
                   && me->query("character") != "心狠手辣")
                        files -= ({ "wrath" });

                // 先天膂力 < 26 不会麒麟血臂
                if (me->query("str") < 26)
                        files -= ({ "strength" });

                // 先天悟性 < 26 不会罡睿神慧
                if (me->query("int") < 26)
                        files -= ({ "intellect" });

                // 先天根骨 < 26 不会镇蕴七星
                if (me->query("con") < 26)
                        files -= ({ "constitution" });

                // 先天身法 < 26 不会玲珑玉躯
                if (me->query("dex") < 26)
                        files -= ({ "dexterity" });

                // 先天容貌 < 20 不会天颜永驻
                if (me->query("per") < 20)
                        files -= ({ "youth" });

                // 祛除真命天子
                files -= ({"emperor"});

                // 获得第一项技能
                special = files[random(sizeof(files))];
                me->set("special_skill/" + special, 1);

                msg += SPECIAL_D(special)->name();

                files -= ({ special });
                if (sizeof(files) && random(100) == 1)
                {
                        // 获得第二项技能
                        special = files[random(sizeof(files))];
                        me->set("special_skill/" + special, 1);
                        msg += HIG "、" NOR + SPECIAL_D(special)->name();

                        files -= ({ special });
                        if (sizeof(files) && random(30) == 1)
                        {
                                // 获得第三项技能
                                special = files[random(sizeof(files))];
                                me->set("special_skill/" + special, 1);
                                msg += HIG "及" NOR + SPECIAL_D(special)->name();
                        }
                }

                // 麒麟血臂增加1点膂力
                if (me->query("special_skill/strength"))
                        me->add("str", 1);

                // 罡睿神慧增加1点悟性
                if (me->query("special_skill/intellect"))
                        me->add("int", 1);

                // 镇蕴七星增加1点根骨
                if (me->query("special_skill/constitution"))
                        me->add("con", 1);

                // 玲珑玉躯增加1点身法
                if (me->query("special_skill/dexterity"))
                        me->add("dex", 1);

                msg += HIG "。\n" NOR + HIC "如果你对此有任何疑问,可以重新"
                       "阅读天赋属性(" HIY "help gift" NOR + HIC ")介绍。\n"
                       NOR;
                me->start_call_out((: call_other, __FILE__, "notice_player",
                                      me, msg :), 0);
        }
}

ivy,2005-07-27 13:01:19

本人选人日志:不算开始的1天赋从第一个选到的2天赋开始到第一个3天赋,共选184次。


公子·羽,2005-07-31 20:28:43

死 ivy最近混那里啊
shiyu,2005-08-10 09:20:09

没看懂啊  怎么回事
 97 1 8: 此主题共有4帖 此页4帖 每页12帖 

[查看完整模式]

LeadBBS 4.0 耗时0.008秒 query:2