a place for all your custom card needs you can post scripts pics and request for card to be made also please donate to the funding for a new server made for custom card duels
 
HomePortalLatest imagesSearchRegisterLog in

Share
 

 Jinzo Alpha help

View previous topic View next topic Go down 
AuthorMessage
Marc1




Posts : 43
Join date : 2013-08-03

Jinzo Alpha help Empty
PostSubject: Jinzo Alpha help   Jinzo Alpha help Icon_minitimeTue Feb 16, 2016 7:09 pm

How do I modify the Jinzo script so that it prevents only my opponent from activating traps?


-人造人間-サイコ・ショッカー
function c77585513.initial_effect(c)
--cannot trigger
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_TRIGGER)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(0xa,0xa)
e1:SetTarget(c77585513.distg)
c:RegisterEffect(e1)
--disable
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_DISABLE)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(LOCATION_SZONE,LOCATION_SZONE)
e2:SetTarget(c77585513.distg)
c:RegisterEffect(e2)
--disable effect
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_CHAIN_SOLVING)
e3:SetRange(LOCATION_MZONE)
e3:SetOperation(c77585513.disop)
c:RegisterEffect(e3)
--disable trap monster
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetCode(EFFECT_DISABLE_TRAPMONSTER)
e4:SetRange(LOCATION_MZONE)
e4:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e4:SetTarget(c77585513.distg)
c:RegisterEffect(e4)
end
function c77585513.distg(e,c)
return c:IsType(TYPE_TRAP)
end
function c77585513.disop(e,tp,eg,ep,ev,re,r,rp)
local tl=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
if tl==LOCATION_SZONE and re:IsActiveType(TYPE_TRAP) then
Duel.NegateEffect(ev)
end
end
Back to top Go down
XxDragoulxX




Member Title : Fire Guardian
Posts : 17
Join date : 2013-11-09

Jinzo Alpha help Empty
PostSubject: Re: Jinzo Alpha help   Jinzo Alpha help Icon_minitimeThu Feb 18, 2016 3:06 pm

is the effect exacly the same as jinzos, or are there more effects attached onto this, other than stopping your opponent from activating traps?
Back to top Go down
Marc1




Posts : 43
Join date : 2013-08-03

Jinzo Alpha help Empty
PostSubject: Re: Jinzo Alpha help   Jinzo Alpha help Icon_minitimeThu Feb 18, 2016 5:32 pm

yes, the same effect as Jinzo but only stops my opponent from using traps.
Back to top Go down
Project Leviamon

Project Leviamon


Member Title : Busy with high school sadly
Posts : 320
Join date : 2013-08-03
Age : 25
Location : Digital World

Jinzo Alpha help Empty
PostSubject: Re: Jinzo Alpha help   Jinzo Alpha help Icon_minitimeSat Feb 20, 2016 11:59 pm

Look at Naturia Bamboo and remove the spell card part of it's effect.

EDIT: Nvm, using Naturia Bamboo won't work, I'll try finding something else.

EDIT 2: 

function c77585513.initial_effect(c)
--act limit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(0,1)
e1:SetValue(c77585513.aclimit)
c:RegisterEffect(e1)
end

function c77585513.aclimit(e,re,tp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_TRAP)
end

This should work
Back to top Go down
http://www.pokecommunity.com/member.php?u=364458
Marc1




Posts : 43
Join date : 2013-08-03

Jinzo Alpha help Empty
PostSubject: Re: Jinzo Alpha help   Jinzo Alpha help Icon_minitimeSun Feb 21, 2016 10:00 pm

Thank you! It works!
Back to top Go down
Sponsored content





Jinzo Alpha help Empty
PostSubject: Re: Jinzo Alpha help   Jinzo Alpha help Icon_minitime

Back to top Go down
 

Jinzo Alpha help

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Mackpro :: MackPro :: Custom cards - Single cards-