So far, the Skill Restriction script is working with flying colors!
Oh, first of all, I forgot to mention, I'm using this Card Game script
So far, I managed to use the Skill Restriction with an eval to check if the actor has many cards in grave, hand or deck to being able to activate a skill(Card). But I was wondering if I could go a little beyond that.
This script allow you to use special tags to define some things on the skill(cards), like the rarity, type, and I created several more myself. I was wondering if I could use the Skill Restriction Script to check if some amount of cards in the player graveyard contain for example one of those tags.
More specifically, at this moment I'm trying to check if the player has 7 cards with "Dark" element in the graveyard to be able to activate a card.
I can use the :
<restrict eval>
self.grave.size <= 6
</restrict eval>
So the player won't be able to activate a card unless it have 7 or more cards in the GY, but I want to see if I could also check that among the cards in grave, there's card with the special tag of "Dark" element.
I tried adding something like:
self.grave.(item.damage.element_id = 5).size <= 6
but it return me an error related to the "item" and the "Game_actor". So of course, there most be a more specific method check for that?
(In the card script, the elements are the same elements that we found in the database, not elements created by special tags of the script like the type or rarity.
But if it would possible, I would also love to see if I could check for those special tags.)
Oh, first of all, I forgot to mention, I'm using this Card Game script
So far, I managed to use the Skill Restriction with an eval to check if the actor has many cards in grave, hand or deck to being able to activate a skill(Card). But I was wondering if I could go a little beyond that.
This script allow you to use special tags to define some things on the skill(cards), like the rarity, type, and I created several more myself. I was wondering if I could use the Skill Restriction Script to check if some amount of cards in the player graveyard contain for example one of those tags.
More specifically, at this moment I'm trying to check if the player has 7 cards with "Dark" element in the graveyard to be able to activate a card.
I can use the :
<restrict eval>
self.grave.size <= 6
</restrict eval>
So the player won't be able to activate a card unless it have 7 or more cards in the GY, but I want to see if I could also check that among the cards in grave, there's card with the special tag of "Dark" element.
I tried adding something like:
self.grave.(item.damage.element_id = 5).size <= 6
but it return me an error related to the "item" and the "Game_actor". So of course, there most be a more specific method check for that?
(In the card script, the elements are the same elements that we found in the database, not elements created by special tags of the script like the type or rarity.
But if it would possible, I would also love to see if I could check for those special tags.)