Card.GetReasonPlayer
Signature
lua
Card.GetReasonPlayer(Card c) -> intDescription
Returns c's current reason player, the player recorded in c's current reason state.
Parameters
cCard
Returns
int
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3513
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 167 indexed script(s).
- Search this function in the Script Explorer with
Card.GetReasonPlayer.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Flowering Etoile the Melodious Magnificat | 83793721 | Scripts/c83793721.lua | 1 |
| Gravity Balance | 37930737 | Scripts/c37930737.lua | 1 |
| Cyberse Reminder | 56337500 | Scripts/c56337500.lua | 1 |
| Dragon Master Magia | 12381100 | Scripts/c12381100.lua | 1 |
| Gunkan Sushipyard Seaside Supper Spot | 62200831 | Scripts/c62200831.lua | 1 |
| Synchro Panic | 83962752 | Scripts/c83962752.lua | 1 |
| Neo Super Quantal Mech King Blaster Magna | 95493471 | Scripts/c95493471.lua | 1 |
| World Legacy Collapse | 36197902 | Scripts/c36197902.lua | 1 |
| Zefra Metaltron | 85216896 | Scripts/c85216896.lua | 1 |
| Pendulum Witch | 43502497 | Scripts/c43502497.lua | 1 |
| Dream Tower of Princess Nemleria | 18458255 | Scripts/c18458255.lua | 1 |
| Ultimate Crystal Magic | 36328300 | Scripts/c36328300.lua | 1 |
| X-Krawler Qualiark | 92781606 | Scripts/c92781606.lua | 1 |
| Icejade Erosion | 53742162 | Scripts/c53742162.lua | 1 |
| Loris, Lady of Lament | 50699850 | Scripts/c50699850.lua | 1 |
| Stardust Warrior | 74892653 | Scripts/c74892653.lua | 1 |
| Hidden Village of Ninjitsu Arts | 26232916 | Scripts/c26232916.lua | 1 |
| Red-Eyes Retro Dragon | 53485634 | Scripts/c53485634.lua | 1 |
| Icejade Gymir Aegirine | 86682165 | Scripts/c86682165.lua | 1 |
| Mirrorjade the Iceblade Dragon | 44146295 | Scripts/c44146295.lua | 1 |
| Galactikuriboh | 46261704 | Scripts/c46261704.lua | 1 |
| Chronomaly Acambaro Figures | 24506253 | Scripts/c24506253.lua | 1 |
| Twilight Specter Rayrage | 71222649 | Scripts/c71222649.lua | 1 |
| Lancea, Ancestral Dragon of the Ice Mountain | 96402918 | Scripts/c96402918.lua | 1 |
| ...and 143 more |
Script Examples
Flowering Etoile the Melodious Magnificat (83793721)
Source: Scripts/c83793721.lua
lua
local c=e:GetHandler()
return c:IsPreviousPosition(POS_FACEUP) and c:IsSummonType(SUMMON_TYPE_FUSION) and c:IsPreviousLocation(LOCATION_MZONE)
and c:IsPreviousControler(tp) and c:GetReasonPlayer()==1-tp
end
function s.spfilter(c,e,tp)Gravity Balance (37930737)
Source: Scripts/c37930737.lua
lua
function c37930737.repfilter(c,tp)
return c:IsFaceup() and c:IsLocation(LOCATION_MZONE) and c:IsControler(tp) and c:IsSetCard(0x186)
and (c:IsReason(REASON_BATTLE) or (c:IsReason(REASON_EFFECT) and c:GetReasonPlayer()==1-tp)) and not c:IsReason(REASON_REPLACE)
end
function c37930737.reptg(e,tp,eg,ep,ev,re,r,rp,chk)Cyberse Reminder (56337500)
Source: Scripts/c56337500.lua
lua
function c56337500.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return (c:IsReason(REASON_BATTLE) or (c:IsReason(REASON_EFFECT) and c:GetReasonPlayer()==1-tp and c:IsPreviousControler(tp)))
and c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_XYZ)
end