Skip to content

Card.GetCurrentScale ​

Signature ​

lua
Card.GetCurrentScale(Card c) -> int

Description ​

Returns the Pendulum Scale c currently uses. In a Pendulum Zone, this returns the left or right current scale according to c's zone sequence. Outside a Pendulum Zone, it returns c's printed left scale value.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 23 indexed script(s).
  • Search this function in the Script Explorer with Card.GetCurrentScale.
CardIDScriptDetected Calls
DoSolfachord Coolia80776622Scripts/c80776622.lua2
Odd-Eyes Pendulum Dragon, Four Heavenly Dragons75787708Scripts/c75787708.lua2
LaSolfachord Angelia27993919Scripts/c27993919.lua4
TiSolfachord Beautia54387923Scripts/c54387923.lua2
Solfachord Happiness93481594Scripts/c93481594.lua1
GranSolfachord Musecia37972500Scripts/c37972500.lua5
Mayosenju Hitot21364070Scripts/c21364070.lua1
ReSolfachord Dreamia92610868Scripts/c92610868.lua1
Solfachord Primoa11688916Scripts/c11688916.lua1
GranSolfachord Coolia84521924Scripts/c84521924.lua2
SolSolfachord Gracia91598270Scripts/c91598270.lua1
Exceed the Pendulum92812851Scripts/c92812851.lua2
Pendulum Pendant65914127Scripts/c65914127.lua1
Solfachord Elegance27870337Scripts/c27870337.lua4
Solfachord Harmonia29650040Scripts/c29650040.lua3
Solfachord Symphony56510115Scripts/c56510115.lua2
Performapal Classikuriboh55554175Scripts/c55554175.lua1
FaSolfachord Fancia54100561Scripts/c54100561.lua1
Solfachord Musica56058749Scripts/c56058749.lua2
MiSolfachord Eliteia28115467Scripts/c28115467.lua1
DoSolfachord Cutia55226153Scripts/c55226153.lua2
Pazuzule77384395Scripts/c77384395.lua1
Tempura of Fortune - EBI86304179Scripts/c86304179.lua1

Script Examples ​

DoSolfachord Coolia (80776622) ​

Source: Scripts/c80776622.lua

lua
end
function c80776622.pfilter(c)
	return c:GetCurrentScale()%2~=0
end
function c80776622.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)

Odd-Eyes Pendulum Dragon, Four Heavenly Dragons (75787708) ​

Source: Scripts/c75787708.lua

lua
	local l,r=Duel.GetFieldCard(e:GetHandlerPlayer(),LOCATION_PZONE,0),Duel.GetFieldCard(e:GetHandlerPlayer(),LOCATION_PZONE,1)
	if not (l and r) then return 0 end
	local ls,rs=l:GetCurrentScale(),r:GetCurrentScale()
	if ls==rs then return 0 end
	return math.abs(rs-ls)*300

LaSolfachord Angelia (27993919) ​

Source: Scripts/c27993919.lua

lua
	return (c:IsControler(tp) or c:IsFaceup()) and Duel.GetMZoneCount(tp,c)>0
		and c:IsSetCard(0x162) and c:IsType(TYPE_PENDULUM)
		and Duel.IsExistingMatchingCard(c27993919.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetCurrentScale())
end
function c27993919.spfilter(c,e,tp,sc)