Venom
Activate only while you control a face-up "Venom" monster, "Vennominaga the Deity of Poisonous Snakes", or "Vennominon the King of Poisonous Snakes". Send 1 Reptile-Type monster from your Deck to the Graveyard and place 2 Venom Counters on 1 face-up monster your opponent controls.
local CARD_ID_0 = 8062132 --Vennominaga the Deity of Poisonous Snakes
local CARD_ID_1 = 54306223 --Venom Swamp
local CARD_ID_2 = 72677437 --Vennominon the King of Poisonous Snakes
local SETCARD_ID_0 = 0x50 --Venom
local COUNTER_ID_0 = 0x1009 --Venom

local CARD_ID_0 = 8062132 --Vennominaga the Deity of Poisonous Snakes
local CARD_ID_1 = 54306223 --Venom Swamp
local CARD_ID_2 = 72677437 --Vennominon the King of Poisonous Snakes
local SETCARD_ID_0 = 0x50 --Venom
local COUNTER_ID_0 = 0x1009 --Venom
local s, id, o = GetID()
function s.initial_effect(c)
	--Activate
	local e1 = Effect.CreateEffect(c)
	e1:SetCategory(CATEGORY_DECKDES)
	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
	e1:SetType(EFFECT_TYPE_ACTIVATE)
	e1:SetCode(EVENT_FREE_CHAIN)
	e1:SetCondition(s.condition)
	e1:SetTarget(s.target)
	e1:SetOperation(s.activate)
	c:RegisterEffect(e1)
end
function s.cfilter(c)
	return c:IsFaceup() and (c:IsCode(CARD_ID_2, CARD_ID_0) or c:IsSetCard(SETCARD_ID_0))
end
function s.condition(e, tp, eg, ep, ev, re, r, rp)
	return Duel.IsExistingMatchingCard(s.cfilter, tp, LOCATION_MZONE, 0, 1, nil)
end
function s.tgfilter(c)
	return c:IsRace(RACE_REPTILE) and c:IsAbleToGrave()
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	if chkc then
		return chkc:IsControler(1 - tp) and chkc:IsCanAddCounter(COUNTER_ID_0, 2)
	end
	if chk == 0 then
		return Duel.IsExistingTarget(Card.IsCanAddCounter, tp, 0, LOCATION_MZONE, 1, nil, 0x1009, 2) and Duel.IsExistingMatchingCard(s.tgfilter, tp, LOCATION_DECK, 0, 1, nil)
	end
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_FACEUP)
	local g = Duel.SelectTarget(tp, Card.IsCanAddCounter, tp, 0, LOCATION_MZONE, 1, 1, nil, 0x1009, 2)
	Duel.SetOperationInfo(0, CATEGORY_COUNTER, nil, 1, 0, 0)
end
function s.activate(e, tp, eg, ep, ev, re, r, rp)
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TOGRAVE)
	local g = Duel.SelectMatchingCard(tp, s.tgfilter, tp, LOCATION_DECK, 0, 1, 1, nil)
	if g:GetCount() > 0 then
		Duel.SendtoGrave(g, REASON_EFFECT)
		local tc = Duel.GetFirstTarget()
		if tc:IsRelateToEffect(e) and tc:IsCanAddCounter(COUNTER_ID_0, 2) and g:GetFirst():IsLocation(LOCATION_GRAVE) then
			local atk = tc:GetAttack()
			tc:AddCounter(COUNTER_ID_0, 2)
			if atk > 0 and tc:IsAttack(0) then
				Duel.RaiseEvent(tc, EVENT_CUSTOM + CARD_ID_1, e, 0, 0, 0, 0)
			end
		end
	end
end


Venom
Activate only while you control a face-up "Venom" monster, "Vennominaga the Deity of Poisonous Snakes", or "Vennominon the King of Poisonous Snakes". Send 1 Reptile-Type monster from your Deck to the Graveyard and place 2 Venom Counters on 1 face-up monster your opponent controls.
-- Venom
local CARD_ID_0 = 8062132 --Vennominaga the Deity of Poisonous Snakes
local CARD_ID_1 = 54306223 --Venom Swamp
local CARD_ID_2 = 72677437 --Vennominon the King of Poisonous Snakes
local SETCARD_ID_0 = 0x50 --Venom
local COUNTER_ID_0 = 0x1009 --Venom
local s, id, o = GetID()
function s.initial_effect(c)
	--Activate
	local e1 = Effect.CreateEffect(c)
	e1:SetCategory(CATEGORY_DECKDES)
	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
	e1:SetType(EFFECT_TYPE_ACTIVATE)
	e1:SetCode(EVENT_FREE_CHAIN)
	e1:SetCondition(s.condition)
	e1:SetTarget(s.target)
	e1:SetOperation(s.activate)
	c:RegisterEffect(e1)
end
function s.cfilter(c)
	return c:IsFaceup() and (c:IsCode(CARD_ID_2, CARD_ID_0) or c:IsSetCard(SETCARD_ID_0))
end
function s.condition(e, tp, eg, ep, ev, re, r, rp)
	return Duel.IsExistingMatchingCard(s.cfilter, tp, LOCATION_MZONE, 0, 1, nil)
end
function s.tgfilter(c)
	return c:IsRace(RACE_REPTILE) and c:IsAbleToGrave()
end
function s.target(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
	if chkc then
		return chkc:IsControler(1 - tp) and chkc:IsCanAddCounter(COUNTER_ID_0, 2)
	end
	if chk == 0 then
		return Duel.IsExistingTarget(Card.IsCanAddCounter, tp, 0, LOCATION_MZONE, 1, nil, 0x1009, 2) and Duel.IsExistingMatchingCard(s.tgfilter, tp, LOCATION_DECK, 0, 1, nil)
	end
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_FACEUP)
	local g = Duel.SelectTarget(tp, Card.IsCanAddCounter, tp, 0, LOCATION_MZONE, 1, 1, nil, 0x1009, 2)
	Duel.SetOperationInfo(0, CATEGORY_COUNTER, nil, 1, 0, 0)
end
function s.activate(e, tp, eg, ep, ev, re, r, rp)
	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TOGRAVE)
	local g = Duel.SelectMatchingCard(tp, s.tgfilter, tp, LOCATION_DECK, 0, 1, 1, nil)
	if g:GetCount() > 0 then
		Duel.SendtoGrave(g, REASON_EFFECT)
		local tc = Duel.GetFirstTarget()
		if tc:IsRelateToEffect(e) and tc:IsCanAddCounter(COUNTER_ID_0, 2) and g:GetFirst():IsLocation(LOCATION_GRAVE) then
			local atk = tc:GetAttack()
			tc:AddCounter(COUNTER_ID_0, 2)
			if atk > 0 and tc:IsAttack(0) then
				Duel.RaiseEvent(tc, EVENT_CUSTOM + CARD_ID_1, e, 0, 0, 0, 0)
			end
		end
	end
end

