MZ Draw Card-like Item Command.

Hello!

I know that many people ask for battle plugins/engines for card games, and I also know those are one of the hardest to do due to how complex they are. But I was wondering if its possible (either by scripting or by eventing) to do the this:

While in battle, at the start of each turn (Turn Battle System), have the game check the items the player have at the moment (I'm not picky about the Item Category. I'm fine be either Regular, Key or Hidden Item), and then at random only show 5-6 of them to be usable. Once the player turn end, the items that were not used that turn get 'shuffled' in the inventory again to await next turn.

I'm planning to have only one character being able to use the Item Command so there if not problem if the event repeat itself with all the battle members of the party.

Also, if possible, the script/event should respect if an Item is consumable or not.

And that's it all. I tried doing it via events but I ended using a lot of variables, many 'If'/'Else' and even then I wasn't able to do it. Any help please? 😅
this kinda reminds me of the gameplay of that dungeon crawler mobile card game called "dungeons and girls"

Dungeon & Girls: Card RPG

I'm kinda curious, are the items you're talking about includes attack and skills of the character?

(I'm sorry if I can't help, I just think this is really cool and got curious.)
@Wyrde If I can make it work, the battle system will more or less be like this:

You will have Character Cards, Skill Cards and Item Cards.

Character Cards are used to summon more battlers, to a max of 5 (The Main Character included). Those Characters always start Initialized and with no skills.

Skill Cards are used to give your battlers skills based on their Element.

Items Cards can range from 'Potions' to 'Buff' and even 'Exp Potions' or 'Escape battle'. Those are wild cards, but consumables.

And the Main Character will have 3 actions per turn. The idea is Summon Characters, Buff them as much as you can, and then off to battle the enemies.

I want the 'draw card' system to make it more random so the player doesn't do the same strategy again and again.

Or that is the plan, at least XD
The setup is quite big, but I managed to do something akin to this when I tried to make a Megaman Battlenetwork style of fighting. and I did it without a plugin.

Now if I got this correctly, you want each battle to start with new characters. or, "empty party"
You draw a hand of character cards and set up your party.

You then draw hand 2 And select a hand of skills/gear

3, here you get a set of "buff potions" that are consumed.

4. Battle starts using party you have "created"


I would do this by doing the following:
Common Event:Battle //intiate this on turn 0/0 each battle.

CommonEvent:Battle
If PartyMember in Party -> Remove Partymember (This to empty the party)
Add PartyMember "DrawCard" ->This party member is a filler he only keeps you from losing/game over. (He has no sprite or look, unless you want him to. He is just there to manipulate your party.)
Call CommonEvent😀rawPartyMembers.
Call CommonEvent:EquiptMembers
Call CommonEvent:BuffMembers
Remove Member "DrawCard"
(The battle starts since the common event is finished)

CommonEvent😀rawPartyMembers.
//This event, depending on how you want to set it up, will present an option of 5 "heroes". How you do this is up to you, but you could make it everything from a simple chioce meny to clickable pictures, it all depends on how advanced you want it to be.
Once triggered the choices simply adds said party member to your party, using the intial phase to make the member lvl 1 and be "nude".

CommonEvent:EquiptMembers
//This event draws cards, and give skills to party member "DrawCard", the skills reflected by the cards in turn. These skills target allies and runs common events depending on their type, armour/weapon/skill. and with a script, gives the target of the skill the gear/skill that was selected. Basically running the "Change equiptment" command as a script, since the command doesn't allow you to select the target dynamically. (Sorry i don't know the script command by heart, but you should be able to find it) All commands have a script call that is basically :"Scriptcall(X,Y,Z)" where X is the target and Y and Z depends on what you want to do with it.)
Once again, how flashy and advanced you do it is how much time and effort you want to invest in it.

CommonEvent:BuffMembers
//This basically draws item cards and gives the party the items matching the cards. you then force the action on Drawcard to use an item on an ally. (this might require a script/speciall skill or yet another common event as you don't want DrawCard to target himself, or you could just remove draw card one you have the items, and force the party leader to use the items selected.)


So yeah, you will need 2-3 minor script calls, but a plugin isn't needed as far as I can tell.
Granted when I made my MMBN style fighting style, I needed to have 2 copies of each item, since in that you collected cards (key items) that when used in battle gave you cards (skills) that you could use to trigger skills on the enemies. skills that had ammo (consumable items given by the key item) and in turn, were unlearned/lost after you used them, or the battle ended.

It required time, dedication and will, but it was possible.
Saddly I never managed to mimic the movement part and had to give it up, but I managed the cards system pretty well, and it is more or less what you are after, except you wanted to only do it once every battle, I had it run once every 3 turns instead, but the principle is the same. I think.

Good luck.
@The Row Sorry for the late reply. Fate/Grand Order event got me distracted a lot (since I'm such an idiot that for some reason decided to complete it in a day. Someone, kill me :|).

Thanks for your anwer! This is not exactly what I was looking for but I tried your system and, while I could not make it work at 100% (I will give more tries, I almost got it, I know!), I think I can modify my game a little so it can be done like this.

Again, thanks for the help! I was about to give up on the card-like system and try something else. If I can make this work, I will be sure to name my firstborn child after you!

...Or put your name on the credits of my game, that works too :LZSsmile:.

Cheers 👍!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/draw-card-like-item-command.126279/