[VXACE] Would be this script call be possible?

Hello people. I'm using this CardGame script:


and I already made several script calls, some thanks to some of you. (Thanks in advance to everyone).
Now, I was trying a lot to make a more complicated one by myself the few 3 days. But my nul knowledge in ruby got me stuck...

Would it be possible to make a script call to check if a specific card/s was/were sent to the graveyard at the moment of an skill being used?
I already make a script call that check if a card is in the graveyard, but I need one to check AT THE MOMENT if a specific card was discarded.

The problem is: I have a card that discard 2 cards from the hand, and I want to have different effects depending on which cards were discarded (I make this with a common event). Now, with just the script call that check cards in graveyard could work, if only the 2 cards sent were the ones in the grave, the problem is... if there's more cards in the grave, the results could be anything of my other options, so the only way to accomplish this, is to check the card discarded at the moment.

If its not possible, I will try to resolve this in another way. Thanks in advance!

------------------------------------

The other thing I would love to make with this script, but I think this could be even more complicated... I want to make that "Cost" and "Impact" allow me to interact with an amount of cards "up to".
What do I mean is, let's say I have a card that has an impact/cost effect that send up to 3 cards from the hand to the grave, and depending on how much I sent the effect will be different (this is based on the script call requested below). Would it be possible to create an impact/cost command that let me sent UP to an amount of cards?
Is there a way to put the discard effects on the cards you want to discard themselves, but make the information hidden to the player, but visible where it counts? Maybe make the invisible effects triggered with a switch or something
Is there a way to put the discard effects on the cards you want to discard themselves, but make the information hidden to the player, but visible where it counts? Maybe make the invisible effects triggered with a switch or something
No, I wish. It would be cool to make several different effects. Once a card is discarded is basically useless. The only use is with an effect that add cards from the grave to the hand or deck, but after that, cards in grave don't do nothing.
No, I wish. It would be cool to make several different effects. Once a card is discarded is basically useless. The only use is with an effect that add cards from the grave to the hand or deck, but after that, cards in grave don't do nothing.
No.
I mean, i think your trying to make card A do something when it discards card B right? put the effect on Card B and find a way to make it trigger from a switch. Make card A turn on the switch if it discards card B. Then a common event executes the effect
No.
I mean, i think your trying to make card A do something when it discards card B right? put the effect on Card B and find a way to make it trigger from a switch. Make card A turn on the switch if it discards card B. Then a common event executes the effect
Actually, what I want to accomplish is:
Card A can discard any kind of card to do A effect.
Now, there's card from B to Z. Some of those cards, like let's say card B, H, J, and K, have different effects if are discarded. There's not a script call in this script or anything that check if an specific ID of a card was discarded. I have an skill that can check if some card ID is in the grave, which is cool, and is useful for some effects, but it won't work for what I want, cuz let's say I discard card B, and use a common event to check if B is in graveyard at A resolution, I could apply the effect, but if H, J, and or K are also in the grave, it will apply their effect too, as the common event start when I use card A, and check the id of any card in the grave.

Original thread: https://forums.rpgmakerweb.com/threads/vxace-would-be-this-script-call-be-possible.146933/