Skip to content

Card.CreateRelation ​

Signature ​

lua
Card.CreateRelation(Card c1, Card c2, int reset) -> void

Description ​

Creates a relation from c1 to c2 that is cleared by reset.

Parameters ​

  • c1 Card
  • c2 Card
  • reset int

Source ​

  • D:\Programs\GitHub\ygopro-core\libcard.cpp:3612

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 16 indexed script(s).
  • Search this function in the Script Explorer with Card.CreateRelation.
CardIDScriptDetected Calls
Smile Action47870325Scripts/c47870325.lua1
Alien Mother24104865Scripts/c24104865.lua1
Victory Viper XX0393130021Scripts/c93130021.lua1
Overmind Archfiend24221808Scripts/c24221808.lua1
Power Capsule54289683Scripts/c54289683.lua1
Gladiator Beast Darius25924653Scripts/c25924653.lua2
Exodius the Ultimate Forbidden Lord13893596Scripts/c13893596.lua1
Light Law Medium52253888Scripts/c52253888.lua1
Morphtronic Vacuumen48868994Scripts/c48868994.lua1
Portable Battery Pack61840587Scripts/c61840587.lua1
Corrupted Keys67949763Scripts/c67949763.lua1
Future Visions87902575Scripts/c87902575.lua1
Elder Entity Norden17412721Scripts/c17412721.lua2
Morphtronic Repair Unit90239723Scripts/c90239723.lua1
Kinka-byo45452224Scripts/c45452224.lua2
Escape from the Dark Dimension31550470Scripts/c31550470.lua2

Script Examples ​

Smile Action (47870325) ​

Source: Scripts/c47870325.lua

lua
			if tc:IsLocation(LOCATION_REMOVED) then
				sg:AddCard(tc)
				tc:CreateRelation(c,RESET_EVENT+RESETS_STANDARD)
			end
			tc=og:GetNext()

Alien Mother (24104865) ​

Source: Scripts/c24104865.lua

lua
		Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP)
		tc:RegisterFlagEffect(24104865,RESET_EVENT+RESETS_STANDARD,0,0)
		c:CreateRelation(tc,RESET_EVENT+0x1020000)
		tc=sg:GetNext()
	end

Victory Viper XX03 (93130021) ​

Source: Scripts/c93130021.lua

lua
			or not Duel.IsPlayerCanSpecialSummonMonster(tp,93130022,0,TYPES_TOKEN_MONSTER,atk,def,lv,race,att) then return end
		local token=Duel.CreateToken(tp,93130022)
		c:CreateRelation(token,RESET_EVENT+RESETS_STANDARD)
		Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP)
		local e1=Effect.CreateEffect(c)