On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Thanks for the question (and your English is fine, don't apologize)! Yes, it is possible to check if one or more specific cards are in a zone using Eval expressions to access the _cardHand, _cardDeck and _cardDiscard variables of each party battler. For example, the expression

 $gameParty.leader()._cardHand.includes(X) 

will return true if a Card of Skill ID X is in the Party Leader's Hand.

You can also use this with the Require keyword in a Card Passives notetag with one of following expressions:

- user._cardHand.includes(Y)
- user._cardDeck.includes(Y)
- user._cardDiscard.includes(Y)

In the above expressions, Y is the Skill ID of the specific card you are checking for. The expression will return true if a card of that ID is in that zone and allow you to play the card.

Hope that explanation helps. Let us know if you have any more questions :)

Thanks! It's exactly what I wanted! This gave me more ideas, so I would like to know if it is also possible to know how many specific cards are in that zone? Thanks again!

(1 edit)

Yes, this is possible using a filter function on the zone's array of Skill IDs for a given party battler. For example,

$gameParty.leader()._cardDeck.filter(x=> x==7).length

will give you the number of Cards in the Party Leader's deck that have the Skill ID 7. You can change the battler, the zone or the specific ID you are looking for to use this expression in multiple ways.

(+1)

Awesome! Thanks again!