level 11
御神光
楼主
谁能帮帮我阿....技能改判问题,至今未能解决
原以为神杀更新了可以用了,结果还是不行,有好心人帮忙看下么??
万分感谢阿~~
啥都不说了,先上代码
on_trigger=function(self,event,player,data)
local room=player:getRoom()
local simashi=room:findPlayerBySkillName(self:objectName())
local judge=data:toJudge() --获取判定结构体
simashi:setTag("Judge",data) --SET技能拥有者TAG
local card=room:askForCard(simashi,"@luatianming","~luatianming",data)
if card~=nil then -- 如果打出了
simashi:obtainCard(judge.card)
judge.card = sgs.Sanguosha:getCard(card:getEffectiveId()) --判定牌更改
room:moveCardTo(judge.card, nil, sgs.Player_PlaceJudge) --移动到判定区
room:broadcastSkillInvoke(self:objectName(),3)
room:sendJudgeResult(judge)
end
return false
end,
2012年09月29日 10点09分
1
原以为神杀更新了可以用了,结果还是不行,有好心人帮忙看下么??
万分感谢阿~~
啥都不说了,先上代码
on_trigger=function(self,event,player,data)
local room=player:getRoom()
local simashi=room:findPlayerBySkillName(self:objectName())
local judge=data:toJudge() --获取判定结构体
simashi:setTag("Judge",data) --SET技能拥有者TAG
local card=room:askForCard(simashi,"@luatianming","~luatianming",data)
if card~=nil then -- 如果打出了
simashi:obtainCard(judge.card)
judge.card = sgs.Sanguosha:getCard(card:getEffectiveId()) --判定牌更改
room:moveCardTo(judge.card, nil, sgs.Player_PlaceJudge) --移动到判定区
room:broadcastSkillInvoke(self:objectName(),3)
room:sendJudgeResult(judge)
end
return false
end,