Skip to main content

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

Gaji666

16
Posts
2
Topics
A member registered Nov 01, 2022

Recent community posts

If card has action"Move 3 from deck Top to discard"and discard a card which have passive effect "Enter discard". It will happen error:

TypeError

Cannot read property 'item' of undefined


Card one action:

<Card Actions>

If user.isStateAffected(13)

Eval user.removeState(13)

If user.isStateAffected(38)

Eval $gameVariables.setValue(1, $gameVariables.value(1) + 1)

Move 3 from deck Top to discard

Eval user._firstFlag = true

Eval user._lastType = "Skill";

</Card Actions>


Card two action:

<Card Passives>

Enter discard: Skill 88

</Card Passives>

For example, this is a card target to teammate:

<Card Actions>

Select 1 from hand

Add Selected to "Target's" hand

Clear Selection

</Card Actions>

<Card Target Actions>

Select 1 from hand

Add Selected to "User's hand"

Clear Selection

</Card Target Actions>

This is my aim. But I dont know how to express" target". And I aslo tried this:

"<Card Target Actions>

Select 1 from discard

Eval user.actorId(2).addCardToZone([SceneManager._scene._cardSelectionWindow.selectedCards()[0]._skillId],"hand")

Clear Selection

</Card Target Actions>"

But I dont know why 2nd actor did not add card to hand

Thank you for your reply!! I am so love this system and I have too much question.. Is it possible to allow the person using the card to exchange a card in the deck or hand with the target (teammate)?

thanks to your demo. I solved this problem by replacing "Agility" with "agility"

I'm sorry I'm bothering you again. 

The effect I'm trying to achieve is “Draw a card, if it's an attack card add an extra 10 blcok”

 I'd like to ask what's wrong with the way I'm writing this, it didnt work:

Select 1 of 1 from deck Top

If $dataSkills[SceneManager._scene._cardSelectionWindow.selectedCards()[0]._skillId]._cardTypes.includes("Attack")

Add Block +10

Move Selected to hand

Clear Selection

1.Thank you for your detailed response! I have understood! Also are there other useful flag words like lasttype, firstflag?

2.Sorry, my english is not very well. I apologize for any misunderstanding. I mean 10 times the number of card types used this turn on an enemy.

Also I found out that the selected card cannot be added to the discard zone and deck after being converted, a TypeError occurs

Cannot read property 'id' of undefined

I really love your plugin, I've been supporting it for over two years now. Please help me! Thank you very much!

Hello Myth! I found a bug, when I use “Select 1 Type Attack from hand, Transform Selected into 13”, I find that that attack card just changes appearance to skill 13, but it's still the same attack card when played from hand

Hello Myth, I have 2 questions about CGC.

1. How do I implement ‘if this is the first card used, deal an extra 50 damage’?  I "used If user._firstFlag == true   draw 1 "from the demo to try to draw 1 card but for some reason it doesn't work in my game project

2. How to achieve the effect ‘Deal ✖10 damage to the type of attacking card used this turn’ 

Thank you

Thank you for your help! It is really help me. For the moving single card, I set the wait 90 to be effective.

Looking forward to next update!

Hello, MythAtelier! Hope you are well, I really like your plugin system. There are some bugs around Action Pack 2. When the target action of cards included "shuffle deck", such as "dazing hit, Burn sting"  has been activated, it will happen error:

"TypeError

Cannot read property 'x' of undefined"

Forgive me for repeating a report on an issue, as I've found that other reports get a response within 24 hours, and mine hasn't. I understand that your time is very valuable, after all 1.63 is about to be released. But I really need help about this.

Thank you,

Gaji

I found problem happened  on " Shuffle deck" . If I remove this word, the problem will be solved

When I use Action2 plugin, If I was used by skills from enemy, such as dazing hit, Burn sting, which is the type of skill that allows me to add cards from outside the deck into the deck

It will happen error:

TypeError

Cannot read property 'x' of undefined


Please help me! really thank you