So for start, I'm using this old script that change the battle system for cards:
Card Game Script
But I did several custom script calls (some with thanks of members of this awesome forum. Thanks guys)
And for some time I deal with creating more custom script calls by my own. But now I'm having a little of a hard time with this one.
I have a variable that store the ID of the actors based on an state with the Yanfly Lunatic State Script. And I want to create a custom script call for the card game script that check if in the array of my variable is the ID of the actors on the current party. So, how should I make this script call? This is the script call to check if a card is in the graveyard of any member of the party:
I tried some things but doesn't seem to work:
And several other tries... Any kind of help is welcome!
Card Game Script
But I did several custom script calls (some with thanks of members of this awesome forum. Thanks guys)
And for some time I deal with creating more custom script calls by my own. But now I'm having a little of a hard time with this one.
I have a variable that store the ID of the actors based on an state with the Yanfly Lunatic State Script. And I want to create a custom script call for the card game script that check if in the array of my variable is the ID of the actors on the current party. So, how should I make this script call? This is the script call to check if a card is in the graveyard of any member of the party:
Ruby:
def has_x_cards_in_grave?(id, count)
for actors in $game_party.members
return actor.grave.count { |card| card.id == id } >= count
end
end
I tried some things but doesn't seem to work:
Ruby:
def numinous_in_grave?(id, count)
for actors in $game_variables[36]
return actors.grave.count { |card| card.id == id } >= count
end
end
Ruby:
def numinous_in_grave?(id, count)
for actors in $game_party.members[$game_variables[36]]
return actors.grave.count { |card| card.id == id } >= count
end
end
And several other tries... Any kind of help is welcome!