Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Sorry if i disturb you, but another question. Perhaps is there any way(maybe card action) to replace specific cards to another cards?

For example, replace all the cards of 'fire(skill no. 10)' in the deck  into the cards of 'superfire(skill no. 11).

Thank you.

There are few different ways to do this, this one is the easiest. It uses keywords from both Card Action Pack 1 and Card Action Pack 2:

<Card Actions>
Select All from Deck Eval var win = SceneManager._scene._cardSelectionWindow; win._cardsSelected = win._cardsSelected.filter(card => card._skillId == 10); Transform Selected into 11 Clear Selection </Card Actions>

We grab the Deck, then filter the Selection to all Cards that match the Skill ID of 10 ("Fire"). Once we have all the Cards which match the Skill ID, we Transform the Selection to Skill ID 11 ("Superfire"). Once this operation is done we clear the Selection for future operations. When you check your Deck after playing this card, you will see that all Fire cards in the Deck have changed to Superfire.

Let me know if this works for you or if another solution is required.

(+1)

It really works. You're so kind. Thank you for your favor!!