Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(5 edits)

Hello, thanks for the feedback! The hand draws are randomised, however, we know from our previous conversations with you that your game adds the cards dynamically based on equipment rather than have a fixed deck. That slightly changes things.

We would recommend adding a Shuffle Deck action to the Battle Start Actions plugin parameter if that is not there already. If cards are being added dynamically AFTER this step through a script call, common event or troop event, then that might be what is causing static hand draws. If this is the case, you can shuffle the deck using the following set of script calls placed in a Troop or Common Event:

$gameParty.leader().discardCardsUntil(0);
$gameParty.leader().reshuffleDeck();
$gameParty.leader().shuffleDeck();
$gameParty.leader().drawCardsUntil(5);

Note: the 5 in that last function can be replaced with whatever your game's max hand size is. 

You can use the debugger (F8) to check the contents of your deck at any point using this function:

$gameParty.leader()._cardDeck; 

This outputs an ordered array with the IDs of the cards in deck. If you notice that the order is not changing after the set of script calls above it means something has gone wrong with the shuffle method which we will need to patch. We will add improved randomisation options and draw variance to our roadmap so that users have more control over this in the future.

Let us know if you continue to run into issues even after implementing this solution. Would be happy to help :)

(1 edit) (+1)

actually, I tried to add the cards the default way, before I reached out, so I have no idea what's going on xD.

Only happens first pass-through the deck, but will try some of your work arounds.

By default I mean through the class skill list.

(1 edit)

Seems Shuffle deck was missing from my plugin parameters. Thank you for the help!

That would do it! Glad you could resolve the issue :)