[技能] 幻影術

看板mud_sanc (Sanctuary - 聖殿)作者 (小太保)時間16年前 (2010/03/22 09:30), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/8 (看更多)
// 相關文章請參考 #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)
文章代碼(AID): #1BfiWWnA (mud_sanc)
討論串 (同標題文章)
文章代碼(AID): #1BfiWWnA (mud_sanc)