Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

How would I do this? (Q&A Thread) Sticky

A topic by MythAtelier created Jun 07, 2022 Views: 3,689 Replies: 97
Viewing posts 1 to 35
Developer (1 edit)

This is a thread where you can ask the topic question with regards to your game design ideas. Describe what you would like to get working using the plugin in as much detail as possible (pictures are good!) so that either we (the devs) or the community can provide you with suggestions on how to implement it. Hopefully we can find a solution together :)

You can also post these in the #cgc-general channel of our Community Discord where we can respond to your questions in real-time.

(1 edit)

Say I wanted to get basic functions going with the RMMV SRPG Engine (The SRPG Engine is a battle system similar to Final Fantasy Tactics or Fire Emblem) which basically makes all combat occur on a map instead of in a normal battle, it has turns and all of that like a normal battle does, would it be possible to do so?

Developer(+1)

Thanks for your question! As of the current version (v.1.1.1), there is no way to set up Card Battles using the plugin outside of the battle scene. As a result, we unfortunately can't guarantee that there is compatibility with SRPG engine at this time. We are looking finding a solution for this in the future. We will keep you updated when the plugin does a reach a point where it is compatible :)

(+1)

Thank you, please do

Hi, i am Luan, codename: Hawkzera - I from Brazil, Excuse me, my english is bad ;-; 

So you didn't notice your plugin as skills to transform on cards, and the skill icon turn the image on the card, right? The question is whether somehow to customize the image on the letter, that it does not have a low resolution.

Any idea?

Developer (1 edit)

Hi Hawkzera, if we are understanding your question correctly: you would like to use higher resolution icons for the Card Art.

To do this, we would recommend making the icons into separate high resolution images and placing those in the Card Art Directory. Then using the <Card Art: file_name> notetag to specify the image for each Skill so that the Card is using the high resolution icon. 

Pictured below are the steps you would need to do to achieve this:

1. Create the high resolution icon image and place it in your Card Art Directory.

2. Add the <Card Art: file_name> notetag to the Skill you want to give this image to (it will override the default icon).

3. Run the project can see it in action. Make adjustments based on how you would like it to appear.


You can also change the dimensions of the Card itself based on the image provided to the Card Design plugin parameter.

Let us know if we have answered your question. We are happy to help :)

(+2)

Perfect, thank you very much

Hello. I have a question.

I am considering purchasing plug-ins. Is it possible to separate cards that can be used and cards that cannot be used according to their status?

(e.g., cards that can be used with a level of 10 or higher, cards that can be used with an ATK of 30 or higher, etc.)

Developer

Thanks for your inquiry! As of v.1.2.0 of the Card Game Combat plugin, you can do this using the Require keyword in the Card Passives notetag. Here's an example of one such requirement below:


This Card can be in a Deck but can't be played until the Require conditions are met. This keyword makes the check whenever the player attempts to play the card so if something changes during battle it may be possible to play this Card at a later point. If you want to go the extra step to hide the Card in the Deck if the user doesn't meet the requirement, you will need to set up either a Troop or Common Event to remove or include cards based on Card requirements at the start of battle. We can look into offering a keyword or plugin parameter that does this automatically in the future if there is demand for it.

Hope that helps. Let us know if you have  more questions :)

(+1)

Thank you very much. It was very helpful. This is a good plugin. I know it is a lot of work to develop it, but I support it.

(1 edit)

 *It may be difficult to understand my English because I am using a translator. Sorry!* I know I have to put the end turn button on the right, but I can't think of a better UI at this moment. Is there a way to activate the end turn button by pressing the left key on the item button?

Developer (1 edit)

Our plan is to eventually look into allowing users to define their own buttons, which would let you create a new End Turn button with control over whether it was at the beginning or the end of the list.

In the meantime I wrote a short fix - you'll need to download this as a .js file and place it below IsiahCardGameCombat.

IsiahCGCEndButtonIndexFix (EDIT: for anyone else wanting the same thing, please use the updated link posted further down the thread instead)

This code will move the End Turn Button to the beginning of the list of options instead of the end.

There will be a graphical glitch while you're using v1.2.2 which our upcoming update should fix - the button won't highlight properly in v1.2.2. Everything else should work just like you want it! Let me know if it doesn't.

-Isiah

God this is a solution beyond what I expected! It is working perfectly in v.1.2.5. Thank you so much!

(2 edits)


It was almost perfect, but the discard button doesn't work when I discard or remove the card. I think it's working like a decision key.

Developer

Oh, whoops! Yeah, the plugin is trying to make sure you don't select the Item button when in discard mode, and since the item button is between the cards and the Discard button you can't reach the Discard button.

I've written a fix but it has one small issue: The item button can be highlighted (but not activated), just as a necessity to get to the discard button using the keyboard. Hopefully this is fine for you.

Here's the new version of that plugin. Once again, let me know if there are any issues aside from the one I just mentioned.

(+1)

Both discard and remove work smoothly. Thank you so much! Thanks to you, I think I can complete the game soon.

Developer

Glad to hear it! Let us know if you anything else comes up, we'll be happy to take a look at it :)

Developer(+1)

Hey MALGOOSIX, hope you are doing well! Our lead programmer Isiah (who is on vacation now) told me to give you this update to the Button Fix plugin before he left. It should make your specific Button changes compatible with the latest version of the Card Game Combat plugin (v.1.3.0) is you decide to update to it. We will be incorporating this Button fix into the Core plugin itself in our next minor update thanks to your help identifying this issue :)

- Neel

I won't update it because I finished the game now, but it can be useful in the next game. Thank you so much to your team!

Developer

Glad to hear your game is complete! As always, happy to help :)

(+1)

Hi! I'd like to create a card that does "Deal damage to an enemy. If Fatal, Draw a Card."

I'm using Yanfly's plugins, and found a way to have an effect trigger if the skill used is fatal. However, I don't know how to make the player draw through this method. Is there a way I'm not seeing?

Developer(+1)

Thanks for your question! With Yanfly Plugins, this makes the solution a lot easier. Using YEP Skill Core, you can set up a skill similar to this:


YEP Skill Core has the After Eval notetag which lets us put in code to check if the target is either Dead or at 0 HP after the execution of the Skill. If the condition is met then it will call the drawCards function from our Card Game Combat plugin to draw 1 Card. You can change the number of cards drawn by changing the number in the parameter of the function. You can also use this function as part of an Eval step in a YEP Action Sequence.

Once we get to Card Game Combat v1.4.0, we hope to implement some popular Card Keywords such as in this case Mortal / Lethal / On Death which should help with these types of trigger conditions. Until then, hope this workaround helps. Let us know if you run into any issues or if you have any further questions :)

(+1)

Thanks for answering, especially with a helpful screenshot! Not only did it answer my question, it opens up a whole new way of making skills for me. I'm looking forward to the future updates!

this needs the ability to see what the enemy is about to do to make good decisions as a player

in slay the spire theres a relic that removes the ability to see
but it was
dagger icon + damage its about to do
shield icon if it will gain block (temp hp)
swirly green smoke if debuffing you
swirly purple if hex (not sure whats different about it, maybe permanent reductions instead of temp states)

sorry, didn't see the feature request thing, but it really is important

i was gonna use my cardgame setup from my last game with srd's choice pictures but it didnt look very good, only thing i couldnt solve was how i'd do enemy intent

What I've been using is a combination of enemy states + enemy AI. The intents are the states, visible as icons, and the enemies can only use specific skills skills depending on their "intent" state.  Can't tell you the exact plugins I'm using right now cause I'm on the go, but I'm pretty sure you can do it with Yanfly's stuff.

before i found this i thought of doing that, but id have needed a different state icon for every amount of damage an enemy attack could do, and then theres multiple attacks

(1 edit)

I have another question! If it looks specifically at your skills for your cards, would it be possible to tie what cards are present in your deck based on your equiped items assuming you used a plugin that allowed you to tie whether you knew skills or not to your items?

Developer(+1)

Thanks for your question, Chessa1! While the plugin doesn't currently (as of Version 1.3.0) support any special features that tie Skills to Equipment, many of our users have found a workaround using a combination of Scripting and/or Common Events. We actually did end up developing an extension plugin for this for another community member, however, they seem to have found another solution which they went with instead. I've cleared it with our lead programmer, so I'll share the extension plugin here: IsiahEquipCommonEvents.

Here's how to use this extension plugin:

1. Add it to your RPG Maker Project's plugin folder and then add it in the Plugin Manager below IsiahCardGameCombat


2. For each Equipment that you want to have add/remove Skills, put an <Equip Common Event X> and a <Remove Common Event X> notetag


3. Create the corresponding Equip and Remove Common Events. While here we are showing one Common Event per piece of Equipment, with some clever scripting you might be able to get it down to just 2 Common Events: one for Equipping, the other for Removing.


4. Test in game to see if equipping the Item adds the Cards to the Actor's Deck (Note: this extension was made before the Party Combat, so it may not support Equipment based Cards for multiple party members)

We want to stress that this extension plugin was unfinished and so there may still be some wonkiness with it (for example, if you choose Optimize in the Equip Menu it duplicates cards that you already have). However, it will hopefully give you a starting point to prototype your concept with. We plan on properly implementing States and Equipment support to the Core plugin by Version 1.5.0. Let us know if that helps :)

- Neel

(1 edit) (+1)

Hello! I had two questions, was wondering if anyone had a way to achieve the following:

  • Is it possible to add effects to cards that activate when they're discarded for the cost of another card? For example, I have a card that discards 1 to draw 2 -- I would want to have some cards that say like, when discarded add X amount of MP/TP, etc, to allow for little combos/interactions like that.
  • Is it possible to summon party members to the current battle with a card (and then have them disappear after the battle)? So basically a little summon mechanic. Or is there a plugin that would do this without having to set card skill effects?

Thank you! really enjoying the plugin so far!

Developer

Hey dcucco, thanks for your questions! Apologies for the late reply, but here goes:

- Activation on Discard, Draw and Removal effects are planned to be added in Version 1.4.0. It should work exactly as you have outlined.

- As of Version 1.3.5 (current version as of this post), it is now possible to summon party members who have their own deck! You can do this either via Eval or through a Common Event attached to a Skill. Some funkiness does happen when you summon the same party member twice, we should have that smoothed out by Version 1.4.0.

Hope that helps. Let us know if you have any other questions or requests :)

Hi! Absolutely amazing plugin, I've been looking all over for something like this for a long time. Just a question - I know that you mentioned that due to VisuStella plugins being encrypted, it's impossible to offer compatibility with their plugins, but is it currently possible the features of this plugin with something like the VisuStella Free Turn Battle? (http://www.yanfly.moe/wiki/Battle_System_-_FTB_VisuStella_MZ)

What I would be hoping for is a team-based combat system where every party member draws their hand of cards, and then you would be able to cycle between the party members freely to play any party member's cards in any order, with the only limit being the energy points of the FTB system. Almost like a party-based Slay The Spire variant. Would this be possible, currently?

Thank you very much for your hard work!

Developer

Thanks for your inquiry HeyItsNeo! We are sorry to say that even after reaching out to them VisuStella will not allow us to extend Card Game Combat to have compatibility with their plugins and as such we are unable to support an extension to Free Turn Battle. However, we can certainly look into adding some settings that allow the player to choose the party member in any order. Hope that helps :)

(2 edits)

How do I make the item button work? for me, the item menu isn't accessible it shows the item icon but doesn't let me open the inventory, I can't seem to figure it out, if you don't mind telling me. I'm kind of new to this. (RPG Maker MV)

Man, I found the same problem. You can turn off IsiahCGCPartyUI_ A, but it's not a good idea.

Developer

Hi, thanks for the reporting this in! We are looking into it and should be able to issue a patch to fix it soon :)

Developer (1 edit)

Hello again, we have patched a fix for the Party UI Plugin (v.1.03) that should help. Try downloading the new version of the plugin and see if that resolves the issues. Let us know if the problem with the Item Button continues to persist in your project :)

(+1)

This is amazing. Thx, that fixed it :

(+1)

Hi there! This might be a silly question, but is there a way to make the player have two separate decks? Something like Griftlands, where each character has a Battle deck and a Negotiation deck.

Developer (1 edit)

Hey Flow9881, thanks for the question! While we do not currently support multiple decks per Actor, there is a definitely a way to do this:

1.  Create two Actors which will serve as the player. One is the Combat character, one is the Negotiation character.

2. Before a Combat Encounter, remove the Negotiation character from the party and add the Combat character. Before a Negotiation encounter, remove the Combat character from the party and add the Negotiation character. This ensures that the correct deck is being used in each case.

3. If you have level and stat progression in your game, create a Common Event that you call which sets the levels and stats of both characters whenever a switch happens. Call this Common Event before you swap the characters before each encounter.

4. When you are adding new Cards, you can choose which character learns it by using the script call:

$gameActors.actor(X).learnSkill(Y)

where X is the ID of the Actor and Y is the card added to their Deck. We don't want a case where the Combat character is getting Negotiation cards or vice versa.

There is a downside with this method currently in that when your player looks at their Deck, they will only see the deck of either the Combat or the Negotiation character. You can have an Event that the player can interact with which switches the characters to alleviate this issue.

We will be adding support for Card Types soon with the v.1.4.0 of the plugin. That should allow you to specify what are Combat cards and what are Negotiation cards so that when looking at the Deck screen, the player is clear on which Deck they have for a given situation. Once we have support for switching Classes in (by v.1.5.0), this will become as easy as switching the class of a single character.

Hope this method helps. Let us know if you have any other questions or would like to troubleshoot this until we get it working :)

Thanks so much for the quick reply! Can't wait to try this!

(+1)

How do I change the default hand size from five? For example a piece of equipment that lets you draw more cards at the start of your turn.

Developer (3 edits)

Thanks for the question! You can change the default drawn by changing the Battle Start Actions and Turn Start Actions parameters. For example, let's say your Hand Size is determined by Variable 7 called MaxHandSize. You can edit the Battle Start Actions parameter to say: "Shuffle Deck, Draw \\v[7]" and the Turn Start Actions to say: "Discard Until 0, Draw \\v[7]". The number of cards drawn in each case will be based on the value of Variable 7.

If you want to tie this to Equipment, you can use the IsiahEquipCommonEvents plugin and have one Common Event for equipping the Item and one for unequipping the Item specified in the Equipment's notetags. The Common Events should manipulate that MaxHandSize variable value to give you the intended effect.

Hope some of this helps. Let us know if you have any other questions or wish to troubleshoot further :)

(+1)

Great, thanks very much!

(+1)

I just played KAIJU and I have three questions!
Sorry if you already have the same questions or how to use it.

Q1.How do you put the mana position to the left?

Q2.How did you put the debuff icon under the mana?

Q3.In Kaiju, the skill names appear to be centered. Is this manipulated by some plugin?

I was surprised to see the card art, text and UI in KAIJU.
I didn't know RPGMaker could create such a stylish card game...
I would like to know how to do it if possible.
I'm looking forward to the implementation if you plan to make it an additional plugin in Patreon; )

Developer(+1)

Hi gamemakeru, thanks for playing the game! Here are some answers:

1. We used YEP_SkillCore for the Energy Costs and then edited CGC plugin to customize the skillCostX and skillCostY position. These can be found in line 859 - 860 of IsiahCardGameCombat.js. We are adding this feature in the CGC v1.4.5 update so you will be able to manipulate the coordinates using plugin parameters.

2. The Speed Icons are baked into the Card Base. For each Kaiju, there are three card frames for each speed: Regular, Fast (yellow arrow), Slow (blue arrow), We do want to provide support for custom icons for CGC in the future, but that may not happen for a few versions.

3. This was once again achieved by editing the CGC plugin. The X and Y coordinates for the Card Names can be found in line 856 - 857 of IsiahCardGameCombat.js. We are adding this feature in the CGC v1.4.5 update so you will be able to manipulate the Name coordinates using plugin parameters. The Card Names don't have an alignment yet, but we are hoping to add that in the future.

All of these additions will be made available to all CGC users, including those that support the Patreon :)

(1 edit) (+1)

Thanks for getting back to me so quickly!

1,3. I thought you were using YEP_SkillCore to make the adjustments, but it was code.
2.I didn't realize you were setting up a diff that only changed the icon.

I'm relieved that you can't do it by changing the current plugin parameters.
As for 1 and 3, I'm looking forward to the v1.4.5 update :>.

(+1)

Hi! Congratulations on the excellent plugin! I would like to know if it is possible to check if one or more specific cards are present in the hand/discard pile/deck. It's possible?

*sorry for my english

Developer (1 edit)

Thanks for the question (and your English is fine, don't apologize)! Yes, it is possible to check if one or more specific cards are in a zone using Eval expressions to access the _cardHand, _cardDeck and _cardDiscard variables of each party battler. For example, the expression

 $gameParty.leader()._cardHand.includes(X) 

will return true if a Card of Skill ID X is in the Party Leader's Hand.

You can also use this with the Require keyword in a Card Passives notetag with one of following expressions:

- user._cardHand.includes(Y)
- user._cardDeck.includes(Y)
- user._cardDiscard.includes(Y)

In the above expressions, Y is the Skill ID of the specific card you are checking for. The expression will return true if a card of that ID is in that zone and allow you to play the card.

Hope that explanation helps. Let us know if you have any more questions :)

Thanks! It's exactly what I wanted! This gave me more ideas, so I would like to know if it is also possible to know how many specific cards are in that zone? Thanks again!

Developer (1 edit)

Yes, this is possible using a filter function on the zone's array of Skill IDs for a given party battler. For example,

$gameParty.leader()._cardDeck.filter(x=> x==7).length

will give you the number of Cards in the Party Leader's deck that have the Skill ID 7. You can change the battler, the zone or the specific ID you are looking for to use this expression in multiple ways.

(+1)

Awesome! Thanks again!

Games such as Pathfinder Adventure Card Game and Aeon's End are doable with this plugin, or they'll be in the future? Both features a single deck for campaign events and enemies, so a minion is just a card instead of having cards by itself. Also, Aeon's End does have cards at table to be buy at any time. Thanks!

Developer (1 edit)

We don't currently support Campaign Decks as it is handled in PACG or Aeon's End. It might be possible to get them working using a dummy Actor that has Cards of a specific type, however, given that Card Actions don't work on the Map Scene that might make things difficult. You would need to handle the entire game inside the Battle Scene as the plugin works currently.

We could look into supporting that in the future as there has been demand for giving the Enemy Troop a single deck and this feature would be an extension of that. Once we have Cards working on Map that let you do this, we will let you know :)

is it possible to make non card skill that can only be activated after using cards?

i tried to make 2 skill types (cards and specials) but when i choose the "specials" skill, it still open as card menu, instead of skills listed in special type.

Developer

By using CGC you are converting any Skills in the Database into Cards so you would not be able to turn the plugin off and on in the middle of a battle. You might be able to use a Common Event which creates a Choice Menu with a selection of Specials and then for each choice you use the Force Action command to execute these skills. This is a limited solution but it would at least let you prototype what you are going for.

Hi there!

I wanted to make an effect happen, or tick up a variable when players run out of cards and have to draw. Can you tell me how I might do this? I don't want it to trigger when they draw a full hand or when their turn ends, but specifically when they run out of cards and have to redraw their hand. 

Developer

Hey SolidusPrime, if you are building your project on MV, this should be possible using YEP Buffs & States Core and YEP Passive States plugins along with Card Game Combat. Create a Passive State that has a <Custom Action End Effect> Notetag. Within the Notetag create an if statement which is looking for the following condition to be met:

<Custom Action End Effect>
if($gameParty.leader()._cardHand.length < 1)
{
  //Make your effect happen here via script calls
}
</Custom Action End Effect>

This condition will check if your Hand is emptied at the end of each Action (in this case, after you have played any card). Set the Passive state to your Actor so that you can see the effects of this happen. Currently it will also check when you End your Turn so you may want your End Turn Skill to set a switch to OFF and prevent this if statement from executing. You will want this switch turned ON at the start of your next Turn so that this effect can trigger again when your hand is emptied. This can be done in the Turn Start Actions parameter of the Card Game Combat plugin.

Hope some of this helps. Let us know if you want to troubleshoot this further :)

(1 edit)

Can we use more than one actor per battle? For example, in games you summon minions such as War of Omens

Or can we pick a few cards from each hero, such as Fate/Grand Order allows (e. g., each hero has 3 cards, but you randomly only pick 5 from the whole party deck)? 

If not, would be it possible in a future update? Thanks.

Developer

Yes, you can definitely use more than one Actor per Battle. You can see how this works in the Demo Project by talking to the other characters on the Island and adding them to your party. We recommend using the Party Battle UI plugin for this purpose as it arranges all the necessary information for an entire party in a much more easily accessible manner.

For the second request, we are still working on the battle system where the Enemy and Player parties have one Deck each and cards are applied to them. Once this system (known as Party Battle Type C) is complete, you should be able to set up battles to work in the manner of Fate G/O.

We recommend using the Party Battle UI plugin

Sorry but, what is this plugin? I googled it but I'm unsure what plugin are you referring. 

Developer

This is one of the plugins we offer in our plugin suite when you buy CGC! It remodels the Battle UI to work better for a card game :)

(+1)

Hey, how are you? Pardon my English again, I'm from Brazil.

Would I be able to set the cost of a card in another attribute, without being the rpg maker default?

For example, I could take the luck parameter, rename it energy, and have heroes that spend energy, while others would use the default that would name it mana.

Or can I only use one attribute for card cost?

Developer

Hey Hawkzera, if you would like to do Custom Costs for Cards and are working in RPG Maker MV, we would recommend adding the YEP Skill Core plugin which our plugin is compatible with. YEP Skill Core allows you to use the <Custom Requirement> and <Custom Cost Display> notetags which can let you use other attributes instead of just HP/MP/TP as part of the Cost. This will requirement some JavaScript knowledge to use, luckily it is well documented on their plugin page. Let us know if this solution works for you or if you require another :)

Does this plugin work for rpg maker mz? I'm using it.

Developer

YEP Skill Core is no longer available in MZ. I believe it is part of the VisuStella plugin suite now which unfortunately is not compatible with Card Game Combat (as per their request). An alternative plugin for MZ would be Eli's Skill Costs which will allow you to specify other attributes as the costs for your skills. While this plugin is not currently compatible with CGC now, we can offer to extend compatibility to it as part of the upcoming Version 1.5.0 patch (which should be out by end of January).

Use Side-View Battle is UNCHECKED, yet whenever I  do combat it will show up normal for half a second and then go to side-view battle and push all of the monsters to the side.  How do I make it so it's  not side-view battle?\

 



On top of that, how do I make it so your money doesn't show up in the top right. If you notice, it overlaps your name and looks really bad.

Developer

Hi Xyphien,

For the first issue, If you are editing the Demo Project, there are two places you will need to change in order to make Battles in Front View. The first place is the Common Event called Initialize, here we do a script call that sets Side View as the default. You can feel free to remove this line or set the value to false in order to make Front View battles the default.

Next,  you will want to clear the Battle Events in the Enemy Troops. All of them have script calls are set to change the configuration if the Settings are in Side View. If you delete the Conditional that is asking for $dataSystem.optSideView that should do the trick.

 

For the second issue, if your project is using the PartyUI_A plugin, you can increase the width of the Status Window in the plugin parameters. This will allow the  name, resources and health to spread out more evenly. Right now it looks like the Micro Status Window width is really small which is causing issues. Try increasing it to 384 px or higher and see if that makes a difference.

If you are not using PartyUI_A plugin for your game project then you will need to use another plugin to modify the UI.

Hope this helps. Please let us to know if you run into any further issues and we can help you troubleshoot them here.

Whenever an enemy uses Wound Strike it says it adds a Wound Card to the deck but it never actually adds it while you're in battle or at any point. It just says it does and nothing actually happens. Why is this? Isn't everything set up correctly?

Developer

Wound Strike does work properly in the base Demo Project. However, if you are editing the Demo Project (as was the case with your previous post) there could be some changes that you have made which are preventing it from working as initially implemented.  Please post screencaps of the following from your project:

- Your project's Plugin Order

- Console after Wound Strike has been used (press F8 to open while in Battle)

- Screenshot of the PostLearnShuffle Common Event

If you can give us this information, we can certainly help you troubleshoot this issue further.

(+1)

I just sent an email. This is my 8th attempt at sending a reply, the last reply took me a full day because of the same issue. Itch.io's reply system is honestly garbage lol. Hopefully you don't mind replying via email since I literally cannot seem to send anything here. The moment I add any sort of pictures it just craps out on here.

Developer(+1)

Yeah, no worries, will follow up over email :)

(1 edit)

How would I make it so that a character's turn automatically ends when they run out of MP, then restore it at the beginning of their next turn?

(edited from original because the original mechanic wasn't very good)

Is there a way to make it so that the amount of cards drawn is determined by a characters AGI?

Developer (1 edit)

Thanks for the question! You will need to know a bit of Scripting to achieve this. You will need to edit the Battle Start Actions and Turn Start Actions plugin parameters in IsiahCardGameCombat. Both of these plugin parameters take in a series of instructions that determines what Card Actions are taken at each of those times.

We can edit Battle Start Actions to be:

Shuffle Deck, Eval BattleManager.actor().drawCards(Math.floor(BattleManager.actor().agi * 0.1))

And edit Turn Start Actions to be:

Discard Until 0, Eval BattleManager.actor().drawCards(Math.floor(BattleManager.actor().agi * 0.1))

The Eval Card Action allows us to process a script call to determine how many cards we draw. Here's what each part of the Eval does:

BattleManager.actor()This grabs the current Actor who is taking their turn.
drawCards()This is the function we call to tell the current Actor to draw Cards.
Math.floor(BattleManager.actor().agi * 0.1)This is the formula used to determine how many Cards are drawn. This divides the current Actor's Agility by 10 and then makes sure that value is floored to a whole number.

You can supply your own formula in between those braces of the drawCards() function. Just make sure that resolves to a whole number as you can't draw a fractional number of Cards (it won't break anything but just make sure to be safe).

Let us know if you need help troubleshooting this solution for your game project. We would be happy to help :)

So I got Everything working pretty well so far on mv, my only problem at the moment tho is that when the enemies attack are lack luster, they don't do any animations, is there a plugin recommendation or something I have overlooked for front view battle where I can make an enemies attack animation play when they attack? since the default settings of this plugin have the party stats at the top right, I don't need any fancy plugin, just for the animation to play on the screen.

Developer

So, for default Front View Battle the options are special animations are a little limited, but there are ways to use Sideview Battle and then change settings so that it matches the coordinates for Front View. If you are on MV, would recommend getting YEP Battle Engine Core, YEP Action Sequence Packs 1 - 3 and YEP Animated SV Enemies plugins into your project (all of which are compatible with Card Game Combat). Between those plugins you should be able to do pretty much everything you need to in terms of enemy animations.

Howdy!

I have been searching various Game Maker's and other engines out there as well as their plugins for a system very similar to this project(By the way, amazing work! :) ). I wanted to ask if the plugin would allow for Multiple Party members who have their own unique decks to be drawn in the same hand. For instance, there are 3 members in the battle, each have a deck of 5 cards. It takes a  set of random 5 cards between the 15 available, and by turn 3, the deck is reshuffled. This is inspired by Fate/Grand Order's battle system, but I wanted to know if this ruleset could be possible because I have ideas I've had for a long time and I feel this might be what I need to finally start working on something real with what I am able to do.

I read that the closest thing to this might be Party Type C,  if there are any updates on that I would be interested. Thank you for your time in answering questions :) .

Developer (2 edits) (+1)

Hey cragedus,

So we do have Multiple Party members with individual decks, however, currently each of their turns would need to be processed so they each have a hand. You are right that Party Type C would likely be the closest to what you are looking for. Once that plugin is done, we can modify it to better suit Fate G/O style card battles.

We will let you know once Party Type C is complete. Because that is dependent on Patron votes it could be a few months from now. If you would like more immediate updates, we would recommend keeping an eye on our community Discord as we directly post update announcements for the plugin there :)

Thanks,

MythAtelier Team

Hi there, is there a way to randomly discard a card from your hand zone?

like say an enemy has an ability that causes you on your next turn to discard / remove 1 card at random after you draw?
or maybe you use a card that discard or removes a card at random?

and what about an ability like scry that lets you look at 3 random cards from your deck then can put a card of the 3 on top of the deck?

Developer

Hey Kobaltblue, while we don't have Random Discard as a Card Action keyword, you can do this using a Card Action Eval.

<Card Action>
Eval SceneManager._scene._skillWindow.discardCard(Math.floor(Math.random() * (BattleManager.actor().handSize) + SceneManager._scene._skillWindow._itemsBeforeCards))
</Card Action>

This will discard a random card from your Hand. If you wanted to remove the card instead, you can use the following:

<Card Action>
Eval SceneManager._scene._skillWindow.removeCard(Math.floor(Math.random() * (BattleManager.actor().handSize) + SceneManager._scene._skillWindow._itemsBeforeCards))
</Card Action>

If you wanted to discard/remove multiple at random, using the Conditional Card Actions statements, you can create a Loop like so:

<Card Actions>
Eval $gameVariables.setValue(1, 3);
Label Start
If ($gameVariables.value(1) <= 0)
Jump to End
Eval SceneManager._scene._skillWindow.discardCard(Math.floor(Math.random() * (BattleManager.actor().handSize) + SceneManager._scene._skillWindow._itemsBeforeCards))
Wait 5
Eval $gameVariables.setValue(1, $gameVariables.value(1) - 1)
Jump to Start
Label End
</Card Actions>
This would Discard 3 Cards at Random from the hand of the current Actor.

As for Scry type effects, we have that working! You will need the new Card Action Pack 1 plugin that is available to supporters of our Patreon. We will eventually grandfather in the Patron plugin into CGC proper a few months down the line :)

(+1)

Oh thats really cool, thank you so much!

(1 edit)

Hello there! I really like this plugin and was messing around with it,

one thing I wanted to do was make it so that the player's turn automatically ends after they've used a certain amount of cards (by default it's 2 but I wanted to make it adjustable so I can add skills that grant more actions and such), the only issue is there didn't seem to be a way to do this with the plugin, so I attempted to do a makeshift action-count system in-game, by setting the number of actions  to the player's default action count at the start  of the battle. Then once the player uses a card it calls a "consume action" common event that does as follows


This works fine at first, but an issue arises upon reaching 0, for some reason, I cannot force the turn to the end with my end turn skill, instead the game softlocks as seemingly nothing happens forever.  After doing some tests I came to the conclusion that for some reason the game was stuck trying to use the end turn skill, but it couldn't (I did this by giving the end turn skill a common event which just put up a dialogue box with some text) I tried to fix this by using switches to make the force action part happen in a troop event with the "moment" condition but that just gave me the same result.

So with seemingly no other options left I come here to ask if there's a way I can get the effect I want here? or at the very least force the turn to end after a set amount of cards used if I can't make it dynamic/adjustable?

Developer

Hey D.R.G,

We would recommend using YEP Battle Engine Core and YEP Standard Turn Battle (STB) system plugins for this purpose. That will make it such that you can queue force action Turn Ends and that all the Turn End triggers happen after the Actor has completed their Action. Place these plugins above IsiahCardGameCombat for best compatibility. Once both of these are in, you should be able to use an Eval Card Action or an Action Sequence to fire a skill end the user's turn if their Action Count is reduced to 0.

If you are still having trouble implementing this system, we would be willing to troubleshoot it further with you on our community Discord. We have a dedicated forum by which we can help users with such implementation problems that may be easier than using the ones on itch.io. If however, you would prefer to continue the discussion here, we can do that as well :)

Thanks,

MythAtelier Team

(2 edits)

I think I would prefer to keep that discussion here, thank you for the offer though!

With that aside following your recommendations did provide some progress, where i was able to get the skill to successfully get the end turn skill to go off by using action sequences (common event 1 just forces the action since I couldn't find a way to do that in the action sequence itself) 

The only issue was that when the End Turn action was forced, it seemed to have just used the skill like any other card, and i could continue my turn without receiving new cards or experiencing the enemy attacks, but it would also have strange side effects like allowing me to pick a card/end my turn even when all the enemies die (though selecting anything seems to just crash the game in that state)

Hello everything is fine? I'm coming back here after a while with more questions... Is it possible, after selecting a card (card action pack 1), to modify its variables (using idenpendent card variables)? Something to simulate Yu-Gi-Oh equip cards?

Taking this opportunity to also ask if it is possible to modify a card variable depending on the number of specific cards and/or a type in a zone?

Sorry if it's confusing, I'm using a translator ^^'

Developer

Is it possible, after selecting a card (card action pack 1), to modify its variables (using idenpendent card variables)? Something to simulate Yu-Gi-Oh equip cards?
Yes, that is what one of the Card Actions in Independent Card Variables is set to do. You will want to use these to achieve it:

Selected Var(X) set Y 
Selected Var(X) mod [+/-]Y

Taking this opportunity to also ask if it is possible to modify a card variable depending on the number of specific cards and/or a type in a zone?

Yes, you would need to make use of Conditional Card Actions to check how many of a specific Cards or type there are in a Zone and then change those variables on a Selection of Cards.

Let us know in this thread or on the Discord if you need any help setting these up. We can troubleshoot it with you :)

(+1)
Sorry for the delay, it works!
And I have one more question, if you could answer: how do I make it so that when a card is discarded from the hand it goes back to the deck? Or be removed? Thank you again!
Developer

This is unfortunately a feature that is not available yet. But with the upcoming Card Game Combat v1.6.0 update, you should be able to make cards with these kinds of effects :)

Nice! Thank you ^^

I know this is probably an incredibly stupid question, but I can't figure out how to get the 'End Turn' button to work. I've tweaked the settings a bit, but it still doesn't work. Thanks!

Developer

Hey hibjgalaphor, thanks for the question. You can set up the End Turn button by setting its settings in the plugin parameter. The most important of these is the End Turn skill which corresponds to the ID of a Skill in the Database which is used by the Actor when the button is pressed in Battle.

https://cdn.discordapp.com/attachments/235557488794009600/1200614165488881706/image.png?ex=65c6d213&is=65b45d13&hm=40baba806ccb1dee67c9979398e1135955ff3e2fcb1a600795689d934c98b222&

In the Demo Project, we have set up the End Turn Skill to look like this in the Database. This Skill must use the <willEndTurn> notetag to indicate that it will end the Actor's turn once the Skill has been used so that it can move onto the turns of other Actors in the party or onto the Enemy Troop depending on the initiative order.

https://cdn.discordapp.com/attachments/235557488794009600/1200615104119590954/image.png?ex=65c6d2f3&is=65b45df3&hm=9ca2ea396072f8a4ca9b4e71667ab4f12ed2cddfc0f2d13234e7099d5ffbcdc2&

That should be all there is to it, but please follow up and let us know how this looks like in your project so we can help troubleshoot any issues you have been running into :)

Thanks,

MythAtelier Team

(+1)

Thank you so much, works flawlessly!

Hello, I have a stupid question:

As you can see, old cards were discard at the same time when the new cards deal. But, is there have anyway I can immediately discard all hand cards when I click the "End Turn"? cause I want to set some images at there between the turn, but the old cards will in front of it. Thanks!

Developer

Hey MESA, thanks for your question! Don't worry, there are no stupid questions.

You can do this by adding Card Actions to your End Turn Skill. This is the Skill that is activated when you hit the End Turn button, you can set it in the End Turn Button Plugin parameters. For example, the following Notetag:

<willEndTurn>
<Card Actions> Discard Until 0 </Card Actions>


Will Discard all Cards in your Hand and then End your Turn. This makes it such that when you draw cards at the start of your next turn, you will have an empty Hand before cards are drawn. Hope that helps :)

Thanks, this works perfectly!