- Dec 2, 2021
- 57
- 98
Okay, so I am going to assume you already can make some basic effects, and understand a bit of C#.1.
i want to create a deck with ability like succubus of peaceful submission's breast milk addiction
i want my squeezer to have different skill according to the number of "??? addiction" card my anime have
how can i add card to my enemy hand and make them visible and how can i know in code how many he have in is deck
You can get the number of a card in the hand of your enemy with:
C:
int cards = (from bc in player.hand
where bc.id == "TK021"
select bc).Count<BattleCard>()
Just in case, player in this situation is a Player object. You can get that with
C:
public override void Effect(Skill s)
{
Player owner = s.ownerCard.controller.Value;
Player opponent = owner.GetOpponent ();
Player target = s.suckPlayer;
}
In order to make a card visible of the hand of your opponent, just set
C:
card.SetLogicalBack(false)
And finally, I do not remember any cards actually adding to the deck, but... there are functions that appear to be made for that. So...
The complete code to add a card to the deck could be like this:
C:
public override void Effect(Skill s)
{
BattleCard battleCard = base.GenerateToken("TK021", s.ownerCard.controller.Value, s, s.ownerCard);
battleCard.SetLogicalBack(false);
s.suckPlayer.AddDeckBottom(battleCard);
s.suckPlayer.ShuffleDeck();
}
If the other users of the forum don't mind, I'd prefer to do that here so your questions (and my answers) can serve as documentation for others!2.
i feel like am gonna have a lot of question so is it ok that am gonna ask you for help and if so, do you want me to ask here or start a conversation with you
thanks a lot
Last edited: