Skip to main content

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

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

A topic by MythAtelier created Jun 07, 2022 Views: 13,767 Replies: 179
Viewing posts 21 to 40 of 61 · Next page · Previous page · First page · Last page

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!

If I use this plugin, can't I reduce the screen itself?! Please let me know...

Developer

We do include a basic Window Resizer plugin in the plugin suite if you want to make a game in smaller resolutions. For advanced options, we would recommend using another plugin solution such as YEP or SRD Core Engine. Cards change their dimensions based on what image you provide for them so all you would need to do is adjust plugin parameters (such as Hand Width, Button Positions) to fit the new resolution.

Are there script calls we can use to check if a card is the library equipped or not?  I'd also like to know if we can check how many of a card we have in the library. 

I've looked through this thread and all the plugins I have from the suite and came up empty. 

Developer

Hey spiderbob,

To check if an individual card in the library is equipped or not, you will want to use:

[Game_Card].origin()

This is will access the origin value of a Game_Card object which will return "learned" if obtained will Initialization or Skill Learn, "equip" if it was added through Equipment and "state" if it was added through a State on the Actor. You can find a Game_Card by accessing any collection of Cards such as:

$gameParty.members()[0]._cardDeck._data[0]

This gives you the top Card of the Deck as a Game_Card object which you can access the origin of using the above function.

To check how many of a card you have in the library, the script call you are looking for is:

[Game_Cards].amountOf(skillId)

This will return the amount of cards matching the Skill ID you pass in of the Game_Cards object you are calling it from (which is just any collection of Cards). A couple that might be useful to you:

[Game_Actor]._skillCards

This will give you all the cards an individual Actor has including ones they have in their Library which are not in their Deck.

$gameParty._allCards

This will give you all the cards in a Party's shared library if you have that plugin parameter enabled.

Hope that helped. Let us know if you have any further questions. We would be happy to assist :)

Cheers,

MythAtelier Team

(+1)

Awesome! Thank you so much for the swift reply. 

I have a bit of a strange question. I want to make a game where riichi mahjong is the combat system, and have been looking into card battle plugins for a head start on basics (drawing, discarding, effects etc.). I looked at the documentation on the wiki and I think I more or less understand how it works, but I had some questions on how much I can tweak the plugin:

-Monsters don't seem to use the card system at all, is it possible to change that? Ideally, having both the player and enemy drawing from the same deck of cards?

-Are visible discards possible? In riichi, your discards are faceup and visible (and can be stolen in some situations), and are arranged in rows of six until a player wins or you exaust draws from the "deck". 

-Is there a param in the plugin that influences opening hands? LIke say, if you equipped a necklace that guarantees a specific card will be in your hand

Developer

Thanks for your question, it's not that strange at all. Here are some answers to each of those questions:

- Enemy Cards and Zones will be a major feature of the Card Game Combat v1.7.0 update which is scheduled for 2025. There are workarounds that allow enemies to use Card abilities but you can't make them draw/discard/remove Cards as they don't have those game objects. For Mahjong, you can set it up to be actions between a party of 4 Actors with a dummy enemy (that is non-interactable so the Battle scene does not end until one Actor has achieved the victory condition). Actors have individual Hands, Deck and Discard Zones which would be perfect if you want to simulate Mahjong gameplay in this manner.

- Visible Discards are not possible with Enemies as they do not have their own Hands yet but are possible with other Actors who have their own Hands. You can also enable peeking at the other Hands of Actors or turn it off as I believe that is usually not allowed in most Mahjong variants. It terms of stealing Cards/Tiles, this can be done by creating a Custom Zone that serves as a shared Discard and allowing each Actor a chance to steal a Tile and add it to their Hand when it is added to the Discard.

- Yes, you can manipulate the Opening Hands by using the Equip Cards and Turn Start Plus plugins. This would allow you to give an accessory  item Notetags that add a specific Card to your opening Hand without fail each match/battle.

Hope some of this helps. What you are trying to do is possible, it will just require a lot of smart scripting to circumvent core behavior of Card Game Combat in order to achieve it. We would be happy to help point you to where in the plugin you will need to make the necessary changes to build your system :)

Goodness you were quick to respond, thank you very much! If you're planning a big update, I think I'll wait for that, and in the meantime I'll look into using eventing and such to accomplish what I need. I'll definitely keep an eye out on this plugin, thank you

Developer(+1)

Sounds good! Hope to see you in a couple of months :)

Deleted 1 year ago
Developer

Thanks for the question. It is currently not possible to play cards vs cards in this system. Cards are played individually and then resolve their action before the next can be played. You will need to wait for the v1.7.0 update happening in a few months where we enable Enemies to have their own Cards and Decks as well. Once that is available, it will be possible to use Custom Zones in order to have Skill Cards beat other Skill Cards like you are envisioning (both cards go to the same Zone, they are compared against each other and one Card wins out and resolves). Hope that helps :)

Deleted 1 year ago

Multiple questions!

  1. Is it possible to pick the card then initiate it at the end of the turn like in Library of Ruina as your description speaks by itself?
  2. Is it possible to make exclusive card deck for the said character which cannot be swapped to other characters?
  3. Is it possible to have multiple attacks in one card?
  4. Is it possible to have some perks like On Use, On Hit just like in Library of Ruina?
  5. Is it possible to have enemy using their own card decks as well?
Developer(+1)

Multiple answers!

1. Yes, while the base gameplay has cards resolve instantly as you play them, you can use the Start of Turn / End of Turn Card Passives to queue Actions for a specific timing step. May require some additional Eval work to get working but this is possible.

2. Yes, you can use the Deck Editor expansion's new Immutable notetag and Actor Restrictions to make a Decklist exclusive to one Actor. You can also restrict an Actor's card pool used to build Decks by not making the Library shared across all party member.

3. Yes, you can make a card that is a combination of smaller Skill effects from other cards. These could be in the form of multiple attacks.

4. No, effects firing based on gameplay triggers is not yet supported. This will need be achieved with another plugin such as YEP Buff States Core. That plugin is more suited towards creating the windows for triggered effects. You can also conceivably do this via some clever Eval work in Card Actions but we recommend using the other plugin for this purpose.

5. Not yet. This features is coming soon with the CGC v1.7.0 update which is currently scheduled for sometime mid-next year. There is a lot of foundational work that needs to be set up in order to support this system.

Hope that helps :)

(+1)

Thank you for answering my question, at least I know that some of the LoR Feature could be replicated in this plugin. Can't wait to see 1.7.0 version would offer!

Viewing posts 21 to 40 of 61 · Next page · Previous page · First page · Last page