徐荣技能写法简化

This commit is contained in:
mengxinzxz 2023-12-28 00:30:09 +08:00
parent a9cef4859c
commit 21542e7cfb
1 changed files with 115 additions and 134 deletions

View File

@ -24371,102 +24371,25 @@ game.import('character',function(lib,game,ui,get,ai,_status){
} }
}, },
}, },
"xinfu_xionghuo":{ xinfu_xionghuo:{
group:["xinfu_xionghuo_damage","xinfu_xionghuo_begin","xinfu_xionghuo_init"],
subSkill:{
begin:{
audio:'xinfu_xionghuo',
logTarget:'player',
line:false,
forced:true,
trigger:{
global:"phaseUseBegin",
},
filter:function (event,player){
return event.player.countMark('xionghuo')>0&&event.player!=player;
},
content:function (){
'step 0'
trigger.player.removeMark('xionghuo',trigger.player.countMark('xionghuo'));
var list=[1,2,3];
var num=list.randomGet();
event.goto(num);
'step 1'
player.line(trigger.player,'fire');
trigger.player.damage('fire');
if(!trigger.player.storage.xionghuo_disable) trigger.player.storage.xionghuo_disable=[];
trigger.player.storage.xionghuo_disable.push(player);
trigger.player.addTempSkill('xionghuo_disable','phaseAfter');
event.goto(4);
'step 2'
player.line(trigger.player,'water');
trigger.player.loseHp();
trigger.player.addMark('xionghuo_low',1,false);
trigger.player.addTempSkill('xionghuo_low','phaseAfter');
event.goto(4);
'step 3'
player.line(trigger.player,'green');
var card1=trigger.player.getCards('h').randomGet();
var card2=trigger.player.getCards('e').randomGet();
var list=[];
if(card1) list.push(card1);
if(card2) list.push(card2);
if(list.length>0){
player.gain(list,trigger.player,'giveAuto','bySelf');
}
'step 4'
game.delay();
},
},
damage:{
audio:"xinfu_xionghuo",
sub:true,
forced:true,
trigger:{
source:"damageBegin1",
},
filter:function (event,player){
return event.player.countMark('xionghuo')>0&&event.player!=player;
},
content:function (){
trigger.num++;
},
},
init:{
audio:'xinfu_xionghuo',
trigger:{
global:"phaseBefore",
player:"enterGame",
},
forced:true,
locked:false,
filter:function(event,player){
return (event.name!='phase'||game.phaseNumber==0);
},
content:function(){
player.addMark("xionghuo",3);
},
},
},
audio:2, audio:2,
enable:"phaseUse", enable:'phaseUse',
filter:function(event,player){ filter:function(event,player){
return player.countMark('xionghuo')>0; return player.countMark('xinfu_xionghuo')>0;
}, },
filterTarget:function(card,player,target){ filterTarget:function(card,player,target){
if(target.hasMark('xionghuo')) return false; return player!=target&&!target.hasMark('xinfu_xionghuo');
return player!=target>0;
}, },
content:function(){ content:function(){
player.removeMark('xionghuo',1); player.removeMark('xinfu_xionghuo',1);
target.addMark('xionghuo',1); target.addMark('xinfu_xionghuo',1);
}, },
ai:{ ai:{
order:11, order:11,
result:{ result:{
target:function(player,target){ target:function(player,target){
if((player.countMark('xionghuo')>=2||!game.hasPlayer(function(current){ if((player.countMark('xinfu_xionghuo')>=2||!game.hasPlayer(function(current){
return current!=player&&get.attitude(player,current)<0&&current.hasMark('xionghuo'); return current!=player&&get.attitude(player,current)<0&&current.hasMark('xinfu_xionghuo');
}))&&player.countCards('h',function(card){ }))&&player.countCards('h',function(card){
return get.tag(card,'damage')&&player.canUse(card,target,null,true) return get.tag(card,'damage')&&player.canUse(card,target,null,true)
&&player.getUseValue(card)>0&&get.effect_use(target,card,player)>0 &&player.getUseValue(card)>0&&get.effect_use(target,card,player)>0
@ -24477,7 +24400,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
})) return 3/Math.max(1,target.hp); })) return 3/Math.max(1,target.hp);
if((!player.hasUnknown()&&game.countPlayer(function(current){ if((!player.hasUnknown()&&game.countPlayer(function(current){
return get.attitude(player,current)<0; return get.attitude(player,current)<0;
})<=1)||player.countMark('xionghuo')>=2){ })<=1)||player.countMark('xinfu_xionghuo')>=2){
return -1; return -1;
} }
return 0; return 0;
@ -24485,7 +24408,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
effect:{ effect:{
player:function(card,player,target){ player:function(card,player,target){
if(player!=target&&get.tag(card,'damage')&&target&&target.hasMark('xionghuo')&&!target.hasSkillTag('filterDamage',null,{ if(player!=target&&get.tag(card,'damage')&&target&&target.hasMark('xinfu_xionghuo')&&!target.hasSkillTag('filterDamage',null,{
player:player, player:player,
card:card, card:card,
})) return [1,0,1,-2]; })) return [1,0,1,-2];
@ -24493,41 +24416,107 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
threaten:1.6, threaten:1.6,
}, },
}, marktext:'戾',
xionghuo:{
marktext:"戾",
intro:{ intro:{
name:'暴戾', name:'暴戾',
content:"mark", content:'mark',
}, },
locked:true, group:['xinfu_xionghuo_init','xinfu_xionghuo_damage','xinfu_xionghuo_effect'],
subSkill:{
init:{
audio:'xinfu_xionghuo',
trigger:{
global:"phaseBefore",
player:'enterGame',
}, },
"xionghuo_disable":{ filter:function(event,player){
return event.name!='phase'||game.phaseNumber==0;
},
forced:true,
locked:false,
content:function(){
player.addMark('xinfu_xionghuo',3);
},
},
damage:{
audio:"xinfu_xionghuo",
trigger:{source:'damageBegin1'},
filter:function(event,player){
return event.player.countMark('xinfu_xionghuo')>0&&event.player!=player;
},
forced:true,
locked:false,
logTarget:'player',
content:function(){
trigger.num++;
},
},
effect:{
audio:'xinfu_xionghuo',
trigger:{global:'phaseUseBegin'},
filter:function(event,player){
return event.player.countMark('xinfu_xionghuo')>0&&event.player!=player;
},
line:false,
forced:true,
locked:false,
logTarget:'player',
content:function(){
'step 0'
trigger.player.removeMark('xinfu_xionghuo',trigger.player.countMark('xinfu_xionghuo'));
'step 1'
var num=get.rand(0,2);
switch(num){
case 0:
player.line(trigger.player,'fire');
trigger.player.damage('fire');
trigger.player.addTempSkill('xinfu_xionghuo_disable');
trigger.player.markAuto('xinfu_xionghuo_disable',[player]);
break;
case 1:
player.line(trigger.player,'water');
trigger.player.loseHp();
trigger.player.addMark('xinfu_xionghuo_low',1,false);
trigger.player.addTempSkill('xinfu_xionghuo_low');
break;
case 2:
player.line(trigger.player,'green');
var card1=trigger.player.getCards('h').randomGet();
var card2=trigger.player.getCards('e').randomGet();
var list=[];
if(card1) list.push(card1);
if(card2) list.push(card2);
if(list.length) player.gain(list,trigger.player,'giveAuto','bySelf');
break;
}
'step 2'
game.delay();
},
},
disable:{
mod:{ mod:{
playerEnabled:function (card,player,target){ playerEnabled:function (card,player,target){
if(card.name=='sha'&&(player.storage.xionghuo_disable&&player.storage.xionghuo_disable.contains(target))) return false; if(card.name=='sha'&&player.getStorage('xinfu_xionghuo_disable').includes(target)) return false;
}, },
}, },
onremove:true,
charlotte:true, charlotte:true,
onremove:true,
mark:true, mark:true,
marktext:"禁", marktext:'禁',
intro:{ intro:{content:'不能对$使用【杀】'},
content:"本回合内不能对$使用【杀】",
}, },
}, low:{
"xionghuo_low":{
mod:{ mod:{
maxHandcard:function (player,num){ maxHandcard:function (player,num){
return num-player.countMark('xionghuo_low'); return num-player.countMark('xinfu_xionghuo_low');
}, },
}, },
marktext:"减",
mark:true,
onremove:true,
charlotte:true, charlotte:true,
intro:{ onremove:true,
content:"本回合内手牌上限-#", mark:true,
marktext:'减',
intro:{content:'手牌上限-#'},
},
}, },
}, },
xinfu_shajue:{ xinfu_shajue:{
@ -24538,15 +24527,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
forced:true, forced:true,
content:function(){ content:function(){
player.addMark('xionghuo',1); player.addMark('xinfu_xionghuo',1);
if(trigger.player.hp<0&&trigger.parent.name=='damage'&&get.itemtype(trigger.parent.cards)=='cards'&&get.position(trigger.parent.cards[0],true)=='o'){ if(trigger.player.hp<0&&get.itemtype(trigger.parent.cards)=='cards'&&get.position(trigger.parent.cards[0],true)=='o'){
player.gain(trigger.parent.cards,'gain2'); player.gain(trigger.parent.cards,'gain2');
} }
}, },
}, },
xinfu_jianjie:{ xinfu_jianjie:{audio:3},
audio:3,
},
jianjie:{ jianjie:{
group:["jianjie_use","jianjie_die"], group:["jianjie_use","jianjie_die"],
derivation:['jianjie_huoji','jianjie_lianhuan','jianjie_yeyan'], derivation:['jianjie_huoji','jianjie_lianhuan','jianjie_yeyan'],
@ -25521,16 +25508,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
"lingren_xingshang_info":"当有角色死亡后你可以选择一项1.回复1点体力。2.获得该角色的所有牌。", "lingren_xingshang_info":"当有角色死亡后你可以选择一项1.回复1点体力。2.获得该角色的所有牌。",
"xinfu_fujian":"伏间", "xinfu_fujian":"伏间",
"xinfu_fujian_info":"锁定技结束阶段开始时你观看一名随机的其他角色的随机X张手牌。(X为场上手牌最少的角色的手牌数)", "xinfu_fujian_info":"锁定技结束阶段开始时你观看一名随机的其他角色的随机X张手牌。(X为场上手牌最少的角色的手牌数)",
"xinfu_xionghuo":"凶镬", xinfu_xionghuo:'凶镬',
"xinfu_xionghuo_info":"游戏开始时你获得3个“暴戾”标记。出牌阶段你可以交给一名其他角色一个“暴戾”标记你对有“暴戾”标记的其他角色造成伤害时此伤害+1。有“暴戾”的其他角色的出牌阶段开始时其移去所有“暴戾”标记并随机执行一项1.受到1点火焰伤害且本回合不能对你使用【杀】2.失去1点体力且本回合手牌上限-13.你随机获得其一张手牌和一张装备区的牌。", xinfu_xionghuo_info:'游戏开始时你获得3个“暴戾”标记。出牌阶段你可以交给一名其他角色一个“暴戾”标记。当你对有“暴戾”标记的其他角色造成伤害时此伤害+1。有“暴戾”标记的其他角色的出牌阶段开始时其移去所有“暴戾”标记并随机执行一项1.受到1点火焰伤害且本回合不能对你使用【杀】2.失去1点体力且本回合手牌上限-13.你随机获得其一张手牌和一张装备区的牌。',
xionghuo:"凶镬", xinfu_shajue:'杀绝',
"xionghuo_info":"", xinfu_shajue_info:'锁定技其他角色进入濒死状态时你获得一个“暴戾”标记。然后若其体力值小于0你获得使其进入濒死状态的牌。',
"xionghuo_disable":"凶镬",
"xionghuo_disable_info":"",
"xionghuo_low":"凶镬",
"xionghuo_low_info":"",
"xinfu_shajue":"杀绝",
"xinfu_shajue_info":"锁定技其他角色进入濒死状态时你获得一个“暴戾”标记。然后若其体力值小于0你获得使其进入濒死状态的牌。",
xinfu_jianjie:"荐杰", xinfu_jianjie:"荐杰",
jianjie:'荐杰', jianjie:'荐杰',
jianjie_info:'①你的第一个准备阶段开始时,你令一名其他角色获得“龙印”,然后令另一名其他角色获得“凤印”。②出牌阶段限一次。若当前回合不是你的第一个回合,则你可以移动场上的“龙印”或“凤印”。③拥有“龙印”或“凤印”的其他角色死亡时,你转移该角色的“龙印”和“凤印”。④拥有“龙印”/“凤印”的角色视为拥有〖火计〗/〖连环〗,且同时拥有这两种标记的角色视为拥有〖业炎〗。', jianjie_info:'①你的第一个准备阶段开始时,你令一名其他角色获得“龙印”,然后令另一名其他角色获得“凤印”。②出牌阶段限一次。若当前回合不是你的第一个回合,则你可以移动场上的“龙印”或“凤印”。③拥有“龙印”或“凤印”的其他角色死亡时,你转移该角色的“龙印”和“凤印”。④拥有“龙印”/“凤印”的角色视为拥有〖火计〗/〖连环〗,且同时拥有这两种标记的角色视为拥有〖业炎〗。',