最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

新手,自己閑著沒事做的無名殺武將(第五期,暗夜隱魅)

2022-11-04 19:05 作者:殤之迎微  | 我要投稿

閑著沒事自己做的武將,目前做了八九個了。作為新手就是為了熟悉一下技能中的代碼意思,自己做的第五個人物,不想多說話,技能血量如下圖。有想用代碼的,下文拿走。不過記得和我說一聲。能幫助你們最好,不能幫就算了。不過,我受了那么多累做的,終于調(diào)試通了,經(jīng)過前四期的試探,這一期應(yīng)該不難拿了吧。

暗夜隱魅技能圖


首先就是暗夜隱魅的一技能,暗刃,看技能效果就知道,單純就是一個縫合技能,暗刃=天義(拼點勝利之后)+無雙+小狂骨+猛進。聽名字就知道這是個刺客。刺客遠距離刺殺沒毛病吧,當(dāng)面對刺客時,要小心,出兩張閃很合理吧,刺客多刺殺點人怎么了,殺的次數(shù)加一很合理吧。刺殺成功后,能獲取一些財務(wù),摸牌很合理吧,刺殺不成功,被刺殺的人家里也是天翻地覆了,棄置其一張牌很合理吧(QAQ)。放下面隨便取吧。由于技能太簡單,不用跟我說了。

暗刃


skill={

? ? group:["暗刃_1","暗刃_2","暗刃_3"],

? ? subSkill:{

? ? ? ? "1":{

? ? ? ? ? ? trigger:{

? ? ? ? ? ? ? ? player:"useCardToPlayered",

? ? ? ? ? ? },

? ? ? ? ? ? forced:true,

? ? ? ? ? ? filter:function(event,player){

? ? ? ? ? ? ? ? return event.card.name=='sha'&&!event.getParent().directHit.contains(event.target);

? ? ? ? ? ? },

? ? ? ? ? ? logTarget:"target",

? ? ? ? ? ? content:function(){

? ? ? ? ? ? ? ? var id=trigger.target.playerid;

? ? ? ? ? ? ? ? var map=trigger.getParent().customArgs;

? ? ? ? ? ? ? ? if(!map[id]) map[id]={};

? ? ? ? ? ? ? ? if(typeof map[id].shanRequired=='number'){

? ? ? ? ? ? ? ? ? ? map[id].shanRequired++;

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? else{

? ? ? ? ? ? ? ? ? ? map[id].shanRequired=2;

? ? ? ? ? ? ? ? }

? ? ? ? ? ? },

? ? ? ? ? ? ai:{

? ? ? ? ? ? ? ? "directHit_ai":true,

? ? ? ? ? ? ? ? skillTagFilter:function(player,tag,arg){

? ? ? ? ? ? ? ? ? ? if(arg.card.name!='sha'||arg.target.countCards('h','shan')>1) return false;

? ? ? ? ? ? ? ? },

? ? ? ? ? ? },

? ? ? ? ? ? mod:{

? ? ? ? ? ? ? ? targetInRange:function(card,player,target,now){

? ? ? ? ? ? ? ? ? ? if(card.name=='sha') return true;

? ? ? ? ? ? ? ? },

? ? ? ? ? ? ? ? selectTarget:function(card,player,range){

? ? ? ? ? ? ? ? ? ? if(card.name=='sha'&&range[1]!=-1) range[1]++;

? ? ? ? ? ? ? ? },

? ? ? ? ? ? ? ? cardUsable:function(card,player,num){

? ? ? ? ? ? ? ? ? ? if(card.name=='sha') return num+1;

? ? ? ? ? ? ? ? },

? ? ? ? ? ? },

? ? ? ? ? ? sub:true,

? ? ? ? },

? ? ? ? "2":{

? ? ? ? ? ? shaRelated:true,

? ? ? ? ? ? audio:2,

? ? ? ? ? ? trigger:{

? ? ? ? ? ? ? ? player:"shaMiss",

? ? ? ? ? ? },

? ? ? ? ? ? filter:function(event){

? ? ? ? ? ? ? ? return event.target.countCards('hej')>0;

? ? ? ? ? ? },

? ? ? ? ? ? check:function(event,player){

? ? ? ? ? ? ? ? return get.attitude(player,event.target)<0;

? ? ? ? ? ? },

? ? ? ? ? ? logTarget:"target",

? ? ? ? ? ? content:function(){

? ? ? ? ? ? ? ? player.discardPlayerCard('hej',trigger.target,true);

? ? ? ? ? ? },

? ? ? ? ? ? sub:true,

? ? ? ? },

? ? ? ? "3":{

? ? ? ? ? ? trigger:{

? ? ? ? ? ? ? ? source:"damageSource",

? ? ? ? ? ? },

? ? ? ? ? ? forced:true,

? ? ? ? ? ? filter:function(event,player){

? ? ? ? ? ? ? ? return event.card.name=='sha';

? ? ? ? ? ? },

? ? ? ? ? ? content:function(){

? ? ? ? ? ? ? ? player.draw(trigger.num);

? ? ? ? ? ? },

? ? ? ? ? ? sub:true,

? ? ? ? },

? ? },

}


說完一技能暗刃,再說說二技能夜幕,非常強的一個技能,加強版帷幕。不僅黑色錦囊牌對你無效,而且其他人使用的黑色錦囊牌視為你使用,并且還能獲得此錦囊牌,血賺。順手牽羊,過河拆橋,借刀殺人受益人都是自己,并且還能成為自己的手牌,到自己回合內(nèi)還能在使用,一牌兩用,簡直就是小馬良。黑色的無懈可擊你也能拿到,就意味著,其他人使用完黑色無懈后,你可以通過他的無懈反制他。當(dāng)然也有不好的一點,決斗你要承受著。本來想讓你們自己運行一下的,畢竟我寫的時候很不容易才寫出來QAQ,但是考慮到有些人沒電腦,那就代碼如下,自己拿吧,記得跟我說一聲QAQ。

夜幕


skill={

? ? group:["夜幕_1","夜幕_2"],

? ? subSkill:{

? ? ? ? "1":{

? ? ? ? ? ? trigger:{

? ? ? ? ? ? ? ? global:"useCard",

? ? ? ? ? ? },

? ? ? ? ? ? forced:true,

? ? ? ? ? ? filter:function(event,player){

? ? ? ? return (event.card&&get.type(event.card)=='trick'&&get.color(event.card)=='black'&&_status.currentPhase!=player);

? ? },

? ? ? ? ? ? content:function(){

? ? ? ? if(trigger.player!=player)

? ? ? ? ? ? {

? ? ? ? ? ? ? ? player.gain(trigger.cards,'gain2');

? ? ? ? event._trigger.player=player;

? ? ? ? ? ? }

? ? },

? ? ? ? ? ? sub:true,

? ? ? ? },

? ? ? ? "2":{

? ? ? ? ? ? trigger:{

? ? ? ? ? ? ? ? global:"useCard1",

? ? ? ? ? ? },

? ? ? ? ? ? audio:"ext:江湖往事:2",

? ? ? ? ? ? forced:true,

? ? ? ? ? ? firstDo:true,

? ? ? ? ? ? filter:function(event,player,card){

? ? ? ? if(get.color(event.card)!='black') return false;

? ? ? ? return event.card.name=='nanman'&&player!=event.player||event.card.name=='wanjian'&&player!=event.player||event.card.name=='taoyuan'&&player.hp<player.maxHp||event.card.name=='wugu';

? ? },

? ? ? ? ? ? content:function(){},

? ? ? ? ? ? mod:{

? ? ? ? ? ? ? ? targetEnabled:function(card){

? ? ? ? ? ? if((get.type(card)=='trick'||get.type(card)=='delay')&&

? ? ? ? ? ? ? ? get.color(card)=='black') return false;

? ? ? ? },

? ? ? ? ? ? },

? ? ? ? ? ? sub:true,

? ? ? ? },

? ? },

}


說完二技能,現(xiàn)在說說三技能,隱形,技能效果簡單粗暴,基本上就是藤甲在世,但又不完全一樣,首先就是防止青鋼劍,其次,它對屬性的錦囊牌沒法免疫,比如國戰(zhàn)張魯改了一個火屬性的南蠻入侵,它就防止不了。其實我的技能描述有點問題,應(yīng)該是獲得隱標(biāo)記,直至下一回合開始。忘了加上了。技能比較好弄。自己下面拿一下吧。記得和我說一聲哦。而且這個技能是寫了ai的。QAQ

隱形


skill={

? ? group:["隱形_1"],

? ? subSkill:{

? ? ? ? "1":{

? ? ? ? ? ? unique:true,

? ? ? ? ? ? trigger:{

? ? ? ? ? ? ? ? player:"phaseJieshuBegin",

? ? ? ? ? ? },

? ? ? ? ? ? direct:true,

? ? ? ? ? ? filter:function(event,player){

? ? ? ? return true;

? ? },

? ? ? ? ? ? content:function(){

? ? ? ? "step 0"

? ? ? ?

? ? ? ??

? ? ? ? player.chooseTarget(get.prompt('隱形'),'令一名角色獲得“隱”標(biāo)記',function(card,player,target){//請選擇一個目標(biāo)

? ? return player!=target;//限制條件:不能選你

}).set("ai",function(target){//ai選目標(biāo)的限制條件

? ? var player=get.player();//定義變量player為選目標(biāo)的發(fā)起者(不懂可以先不寫)

? ? return get.attitude(player,target);//選友軍

});

? ? ? ??

? ? ? ??


? ? ? ??

? ? ? ??

? ? ? ? "step 1"

? ? ? ? if(result.bool){

? ? ? ? ? ? var length=result.targets.length;

? ? ? ? ? ? for(var i=0;i<length;i++){

? ? ? ? ? ? ? ? result.targets[i].addSkill('隱形_2');

? ? ? ? ? ? }

? ? ? ? ? ? player.addSkill('隱形_3');

? ? ? ? ? ? player.logSkill('隱形',result.targets);

? ? ? ? }

? ? ? ? else{

? ? ? ? ? ? event.finish();

? ? ? ? }


? ? },

? ? ? ? ? ? sub:true,

? ? ? ? },

? ? ? ? "2":{

? ? ? ? ? ? trigger:{

? ? ? ? ? ? ? ? player:"damageBegin",

? ? ? ? ? ? },

? ? ? ? ? ? mark:true,

? ? ? ? ? ? intro:{

? ? ? ? ? ? ? ? markcount:()=>1,

? ? ? ? ? ? ? ? content:"共有1個標(biāo)記",

? ? ? ? ? ? },

? ? ? ? ? ? forced:true,

? ? ? ? ? ? filter:function(event){

? ? ? ? ? ? ? ? if(event.nature) return false;

? ? ? ? ? ? ? ? return true;

? ? ? ? ? ? },

? ? ? ? ? ? content:function(){

? ? ? ? ? ? ? ? trigger.cancel();

? ? ? ? ? ? },

? ? ? ? ? ? sub:true,

? ? ? ? },

? ? ? ? "3":{

? ? ? ? ? ? trigger:{

? ? ? ? ? ? ? ? player:["phaseBegin","dieBegin"],

? ? ? ? ? ? },

? ? ? ? ? ? silent:true,

? ? ? ? ? ? content:function(){

? ? ? ? ? ? ? ? for(var i=0;i<game.players.length;i++){

? ? ? ? ? ? ? ? ? ? ?if(game.players[i].hasSkill('隱形_2')){

? ? ? ? ? ? ? ? ? ? game.players[i].removeSkill('隱形_2');

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ?

? ? ? ? ? ? player.removeSkill('隱形_3');

? ? ? ? ? ? },

? ? ? ? ? ? sub:true,

? ? ? ? ? ? forced:true,

? ? ? ? ? ? popup:false,

? ? ? ? },

? ? },

}


說完三技能,再說最后一個技能,魅語,限定技的歸心。但是不用翻面,并且還有類似于劉禪若愚的效果,可以在自己殘血的時候保命,畢竟錦囊牌還是比較少的。技能如下,自己取。記得跟我說一聲QAQ。

魅語

skill={

? ? group:["魅語_1"],

? ? subSkill:{

? ? ? ? "1":{

? ? ? ? ? ? audio:"ext:江湖往事:2",

? ? ? ? ? ? enable:"phaseUse",

? ? ? ? ? ? multitarget:true,

? ? ? ? ? ? multiline:true,

? ? ? ? ? ? selectTarget:-1,

? ? ? ? ? ? limited:true,

? ? ? ? ? ? content:function(){? ?

? ? ? ??

? ? ? ? ? ? ?"step 0"

? ? ? ? ? ? ? player.awakenSkill('魅語');

? ? ? ? ? ? ? ? player.addSkill('魅語_2');

? ? ? ? ? ? ? ? player.addSkill('魅語_3');

? ? ? ? ? ? ? ? ? ? var targets=game.filterPlayer();

? ? ? ? ? ? ? ? ? ? targets.remove(player);

? ? ? ? ? ? ? ? ? ? targets.sort(lib.sort.seat);

? ? ? ? ? ? ? ? ? ? event.targets=targets;

? ? ? ? ? ? ? ? ? ? "step 1"

? ? ? ? ? ? ? ? ? ? event.num=0;

? ? ? ? ? ? ? ? ? ? player.line(targets,'green');

? ? ? ? ? ? ? ? ? ? "step 2"

? ? ? ? ? ? ? ? ? ? if(num<event.targets.length){

? ? ? ? ? ? ? ? ? ? ? ? if(!get.is.altered('guixin')){

? ? ? ? ? ? ? ? ? ? ? ? ? ? if(event.targets[num].countGainableCards(player,'hej')){

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? player.gainPlayerCard(event.targets[num],true,'hej');

? ? ? ? ? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? ? ? else{

? ? ? ? ? ? ? ? ? ? ? ? ? ? var hej=event.targets[num].getCards('hej')

? ? ? ? ? ? ? ? ? ? ? ? ? ? if(hej.length){

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? var card=hej.randomGet();

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? player.gain(card,event.targets[num]);

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? if(get.position(card)=='h'){

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? event.targets[num].$giveAuto(card,player);

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? else{

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? event.targets[num].$give(card,player);

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? ? ? event.num++;

? ? ? ? ? ? ? ? ? ? ? ? event.redo();

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ??

? ? },

? ? ? ? ? ? ai:{

? ? ? ? ? ? ? ? order:1,

? ? ? ? ? ? ? ? result:{

? ? ? ? ? ? ? ? ? ? player:function(player){

? ? ? ? ? ? ? ? var num=0;

? ? ? ? ? ? ? ? if(lib.config.mode=='identity'&&game.zhu.isZhu&&player.identity=='fan'){

? ? ? ? ? ? ? ? ? ? if(game.zhu.hp==1&&game.zhu.countCards('h')<=2) return 1;

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? if(player.hp<=player.maxHp/2) num=1;

? ? ? ? ? ? ? ? if(player.countCards('h')<1) num=1;

? ? ? ? ? ? ? ? return num;

? ? ? ? ? ? },

? ? ? ? ? ? ? ? },

? ? ? ? ? ? },

? ? ? ? ? ? sub:true,

? ? ? ? ? ? mark:true,

? ? ? ? ? ? intro:{

? ? ? ? ? ? ? ? content:"limited",

? ? ? ? ? ? },

? ? ? ? ? ? skillAnimation:true,

? ? ? ? ? ? init:function(player,skill){

? ? ? ? ? ? ? ? player.storage.魅語=false;

? ? ? ? ? ? },

? ? ? ? },

? ? ? ? "2":{

? ? ? ? ? ? trigger:{

? ? ? ? ? ? ? ? target:"useCardToTargeted",

? ? ? ? ? ? },

? ? ? ? ? ? forced:true,

? ? ? ? ? ? preHidden:true,

? ? ? ? ? ? filter:function(event,player){

? ? ? ? return event.card.name=='sha';

? ? },

? ? ? ? ? ? content:function(){

? ? ? ? "step 0"

? ? ? ? var eff=get.effect(player,trigger.card,trigger.player,trigger.player);

? ? ? ? ? ? trigger.player.chooseCard('魅語:交出一張基本牌否則殺對'+get.translation(player)+'無效',function(card){

? ? ? ? ? ? ? ? ? ? ? ? return get.type(card)=='basic';

? ? ? ? ? ? ? ? ? ? }).set('ai',function(card){

? ? ? ? ? ? ? ? ? ? ? ? if(get.attitude(_status.event.player,_status.event.getParent().player)>0){

? ? ? ? ? ? ? ? ? ? ? ? ? ? return 11-get.value(card);

? ? ? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? ? ? else{

? ? ? ? ? ? ? ? ? ? ? ? ? ? return 7-get.value(card);

? ? ? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? }).set('eff',eff);

? ? ? ? ? ? ? ??

? ? ? ? ? ? ? ? ? ? "step 1"

? ? ? ? ? ? ? ? ? ? if(result.bool){

? ? ? ? ? ? ? ? ? ? ? ? player.gain(result.cards,'giveAuto',trigger.player);

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? else{

? ? ? ? ? ? ? ? ? ? ? ? trigger.getParent().excluded.add(player);

? ? ? ? ? ? ? ? ? ? }

? ? },

? ? ? ? ? ? ai:{

? ? ? ? ? ? ? ? effect:{

? ? ? ? ? ? ? ? ? ? target:function(card,player,target,current){

? ? ? ? ? ? ? ? if(card.name=='sha'&&get.attitude(player,target)<0){

? ? ? ? ? ? ? ? ? ? if(_status.event.name=='xiangle') return;

? ? ? ? ? ? ? ? ? ? var bs=player.getCards('h',{type:'basic'});

? ? ? ? ? ? ? ? ? ? if(bs.length<2) return 0;

? ? ? ? ? ? ? ? ? ? if(player.hasSkill('jiu')||player.hasSkill('tianxianjiu')) return;

? ? ? ? ? ? ? ? ? ? if(bs.length<=3&&player.countCards('h','sha')<=1){

? ? ? ? ? ? ? ? ? ? ? ? for(var i=0;i<bs.length;i++){

? ? ? ? ? ? ? ? ? ? ? ? ? ? if(bs[i].name!='sha'&&get.value(bs[i])<7){

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? return [1,0,1,-0.5];

? ? ? ? ? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? ? ? return 0;

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? return [1,0,1,-0.5];

? ? ? ? ? ? ? ? }

? ? ? ? ? ? },

? ? ? ? ? ? ? ? },

? ? ? ? ? ? },

? ? ? ? ? ? sub:true,

? ? ? ? },

? ? ? ? "3":{

? ? ? ? ? ? trigger:{

? ? ? ? ? ? ? ? player:["phaseBegin","dieBegin"],

? ? ? ? ? ? },

? ? ? ? ? ? silent:true,

? ? ? ? ? ? content:function(){

? ? ? ? ? ? ? ? player.removeSkill('魅語_2');

? ? ? ? ? ? player.removeSkill('魅語_3');

? ? ? ? ? ? },

? ? ? ? ? ? sub:true,

? ? ? ? ? ? forced:true,

? ? ? ? ? ? popup:false,

? ? ? ? },

? ? },

}


我的第五個做的武將就算是做好了,這期有點水。各位陌生人,如果想用就拿就行,記得跟我說一聲哦。以后如果心血來潮的話,我還會發(fā)一些其他的。希望大家支持一下無名殺(QAQ)。?

新手,自己閑著沒事做的無名殺武將(第五期,暗夜隱魅)的評論 (共 條)

分享到微博請遵守國家法律
康马县| 宜州市| 卓资县| 黔江区| 桃园县| 丰台区| 虞城县| 无棣县| 湄潭县| 铅山县| 广河县| 涡阳县| 越西县| 永川市| 太康县| 临猗县| 建始县| 嵊泗县| 巴林左旗| 福鼎市| 上高县| 新乡市| 邵东县| 平南县| 宁明县| 女性| 呼和浩特市| 达州市| 雅江县| 江安县| 洞口县| 贵州省| 浦东新区| 涟水县| 文水县| 榆社县| 余干县| 吉水县| 玉山县| 孟津县| 宝山区|