作者laechan (小太保)
看板mud_sanc
标题[技能] 幻影术
时间Mon Mar 22 09:30:04 2010
// 相关文章请参考
#1AxzG7GF
// 旧幻影术已备份为 /d/spell/illusion.20100322
// Laechan@Sanc changed in 2010/03/22 确定版
// Laechan 2000.03.11 加入理性影响 for 新版圣殿
// write by Int
// modify by nobu
//armor (skill/100+(lv*50))
//#define MAX_ILLUSION 2000
//#define MIN_ILLUSION 200
inherit __DIR__+"spell_d.c";
int start_skill(object tar,int lv)
{
object ppl=this_player();
if((string)ppl->query("pri_guild")!="mage")
{
write("只有正职的魔法师, 才能使用这个高深的魔法.\n");
return 0;
}
if(ppl!=tar)
{
write("幻影术只能对自己使用喔(施展时不需接目标)!\n");
return 0;
}
// 增加的限制
if(environment(tar) && environment(tar)->query("no_illusion"))
{
write("这个地方无法施展幻影术喔.\n");
return 0;
}
// 保留该限制. 另外在飘浮术那边增设[若处於幻影状态无法飘浮]
if(tar->query_temp("float spell") || tar->query_temp("flying"))
{
write("你正漂浮在半空中, 无法使用幻影术!\n");
return 0;
}
if(tar->query_temp("flyinsky"))
{
write("你已经使用舞空术漂浮在半空中, 无法使用幻影术!\n");
return 0;
}
if(tar->query_temp("illusion spell"))
{
write("你解除了自己的幻影术状态!\n");
tar->delete_temp("illusion spell");
return 0;
/*
write("你正在使用幻影术!\n");
return 0;
*/
}
return 1;
}
int start_effect(object target,object user,int lv,int sk,int times)
{
// int much,exp,LEVEL,ints,t4;
tell_object(target,MAG"你觉得你的身体变得有点朦胧~~~\n"NOR);
tell_room(environment(target),
MAG+target->query("chi_name")+MAG"的身体有点朦胧, 好像变成了两个"+
target->query("chi_name")+".\n"NOR,target);
user->set_temp("illusion spell",1); // 延用旧的参数, 但无 heal_time
/* 以下废弃不用
// much=lv*((skill+sk2)*(lv/10)+lv*10);
much=lv*150;
LEVEL=target->query("level");
much=much*LEVEL/100;
if(much>MAX_ILLUSION) much=MAX_ILLUSION;
if(much<MIN_ILLUSION) much=MIN_ILLUSION;
if(!user->query_temp("illusion spell"))
{
t4=user->query("skill/illusion spell");
t4=t4/100;
if(lv>=t4)
{
exp=lv*200+random(100);
user->add_exp(exp);
tell_object(user,"你由此次施法中获得 "HIY+exp+NOR" 经验值。\n");
ints=user->query("stat/int");
ints=ints/100;
// if(user->query("skill/illusion spell")<1000)
// user->improve_skill("illusion spell",lv+ints);
}
}
target->temp_mod("speed",much,"illusion spell",2);
target->temp_mod("dodge",much,"illusion spell",2);
*/
return 1;
}
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.225.161.93
※ 编辑: laechan 来自: 61.225.161.93 (03/22 10:06)