作者giant70.bbs@ptt.cc (劉伯溫) 看板: mud
標題[心得] 亂世群雄技能 windforce
時間批踢踢實業 (2008/08/31 Sun 14:08:02)
#include <ansi.h>
#include <combat.h>
inherit FORCE;
int valid_enable(string usage)
{
return usage=="force";
}
int practice_skill(object me)
{
return notify_fail("風影心法只能用學的﹐或是從運用(exert)中增加熟練度。\n");
}
string exert_function_file(string func)
{
return CLASS_D("killer")+"/windforce/"+func;
}
mixed hit_ob(object me, object victim)
{
int da;
da =(int)me->query_skill("windforce",1);
if (random(da) < 60) {
message_vision( HIY "$N一躍沖天﹐施展出「萬法歸宗」﹐吸收大地精氣﹗\n" NOR,me);
message_vision( HIC "過了一會﹐$N散發出一道道寒光﹐精氣神各方面恢復了不少。\n" NOR,me);
me->receive_curing("gin",random(da*3));
me->receive_curing("kee",random(da*3));
me->receive_curing("sen",random(da*3));
}
else {
if( (int)me->query("force") > (int)me->query("max_force") / 5 ){
message_vision(sprintf(HIB"$N體內散發出陣陣颶風,朝$n席捲過去。\n"NOR),me,victim);
if( random(victim->query("combat_exp") /50) < me->query_skill("windforce",1)*100+me->query("force_factor") *10 )
{
victim->add("force",-(7*me->query("force_factor") +me->query_skill("windforce",1)/5 ));
message_vision(sprintf(HIG"$n被颶風攏罩住,完全看不到$n發生了什麼事情。\n"NOR),me,victim);
tell_object(victim,"你大吃一驚,體內的真氣迅速的往外竄出,融入於颶風之中。\n");
}
else {
message_vision(sprintf(HIC"$n輕易的閃過$N發出的颶風。\n"NOR),me,victim);
if( (int)me->query_temp("powerup") ) return 1;
message_vision(
HIY"\n☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆\n"
HIC"$N體內竄出焚風正是【風影心法】的奧秘,搭配著詭譎的【青玄步法】將$N\n"
HIC"的身影分散再$n的四週,一化十,十化百,快步移位,身影忽快忽慢,變化 \n"
HIC"莫測!焚風捲起了大地,狂沙走石夾帶炙熱的氣勁,使$n的行動便遲緩了起來\n"
HIY"☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆\n\n"NOR
, me,victim);
victim->add_temp("apply/dodge", -((int)me->query_skill("gdragon-steps",1)/5));
me->set_temp("powerup", 1);
victim->start_call_out( (: call_other, __FILE__, "remove_effect", victim, (int)me->query_skill("gdragon-steps",1)/5 :), (int)me->query_skill("gdragon-steps",1));
if( me->is_fighting() ) me->start_busy(1);
return 1;
}
}
}
}
void remove_effect(object victim, int amount)
{
victim->add_temp("apply/dodge", amount);
this_player()->delete_temp("powerup");
tell_object(victim, HIM"焚風消失於空氣中,大地趨於平靜,一切恢復到了原來的景象。\n"NOR);
}
/*void skill_improved(object me)
{
int s;
tell_object(me, HIW "一陣旋風自你身上竄出,你的風影心法更精進了!! \n" NOR);
// s = (int)me->query_skill("windforce", 1);
if( s%10==9 && random((int)me->query_skill("windforce", 1))>(int)me->query("max_force")/20)
{
tell_object(me, HIW "有鑑於你勤於修練,你體內的風之力量被激發出來了。\n" NOR);
me->add("max_force", random((int)me->query_skill("windforce", 1)/50)+1);
}
}
*/
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.31.141.177