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? 😅
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.