Dr. Sexy M.D.
So, I have this card (pictured below) that I'm trying to make whose pendulum effect is giving me a hard time. It says "You can discard one 'Aetherial Girl' Monster to target 2 Spell/Trap cards on the field; destroy the first target and return the second target to the hand. You can only use this effect of 'Aetherial Girl Morgana' once per turn. There are very few examples where you target 2 cards, and even fewer where a different effect was applied to the targets. In fact, the only few I could find that do that are Cross Attack, Variable Form, and Number C5: Chaos Chimera Dragon. As there were only 3 examples, none of them have effects even close to what I'm going for, and the code is rather complicated in them, I'm at a loss for how to do it. Can someone please help me out?

Aetherial Girl Morgana

Additionally, I copied the code from D/D Swirl Slime for the "from hand" portion of her second effect, and I'm trying to get it to let me use monsters from my field as well. I believe I've found where I can do that, but I'm not sure because I don't know how most of the Duel.XXX functions work. Where are those declared? I want to look at them so that I can understand how the functions work and what they actually do, but the code isn't in any of the .lua files in the scripts folder.

Also, because I forgot to say it earlier, the setcode for the "Aetherial Girl" archetype is 324, or 0x144 in hex. Thanks in advance to whomever decides to help me with this (assuming someone does).
Michael Lawrence Dee
Check Book of Life. It should have the part of the script checking how targeting cards work.
Now this is how I play: