SirFeikelton

Warper
Member
Joined
May 18, 2020
Messages
4
Reaction score
0
First Language
German
Primarily Uses
RMMV
Hello my dears,
I wanted to ask if there is a way to select the cards by using keyboard arrows and the spacebar (for example). It seems to do so in the demo video you just posted but in my game i can only Drag&Drop it with my mouse.

Also, thank you for the amazing Plugin, Triple Triad is one of my alltime favorite mini games!

Edit: nvm, figured it out. Go to "Image and Sound Configuration" -> "usingCursor" -> false
 
Last edited:

SirFeikelton

Warper
Member
Joined
May 18, 2020
Messages
4
Reaction score
0
First Language
German
Primarily Uses
RMMV
Aaaaand I ran into another problem. The card picking animation for a battle or in the album seems to be a bit janky. The x coordinate on the first arrival of said card is too low. But I just cannot figure out where to edit the code. Maybe you could help me? On the other hand the removal of a card is normal.

I think is has something to do with line 3140 an below.

Code:
Scene_Album_TT.prototype.move_card_to_hand = function () {

    if (this.triple_triad_frame_count >= 15) {
        this._cards_back_cards.x = this.card_end_position[0];
        this._cards_back_cards.y = this.card_end_position[1];
        this.phase = 2;
        this.phase_flip = 0;
        AudioManager.playSe({ name: this.aux_images['card_flipping_sound'], pan: 0, pitch: 100, volume: 100 });
    }
    else {
        var x = this.card_end_position[0] - this.card_start_position[0];
        var y = this.card_end_position[1] - this.card_start_position[1];
        this._cards_back_cards.x += parseInt(x / 15);
        this._cards_back_cards.y += parseInt(y / 15);
    }
};

I attached a video to show what I mean.
 
Last edited:

Jathan

Veteran
Veteran
Joined
Jun 10, 2020
Messages
45
Reaction score
20
First Language
English
Primarily Uses
RMMV
This is really cool. Honestly I want something like this for my project but what I want is closer to tetra master rather than triple triad. Hopefully I'll be able to find someone who will make it for me pretty soon.
 

ave36

Veteran
Veteran
Joined
Jun 23, 2019
Messages
167
Reaction score
62
First Language
Russian
Primarily Uses
RMMV
@Raizen Are there any updates concerning Elemental and other rules not implemented currently?
 

Raizen

Veteran
Veteran
Joined
Oct 24, 2012
Messages
397
Reaction score
700
First Language
Portuguese
Primarily Uses
RMMV
@Raizen Are there any updates concerning Elemental and other rules not implemented currently?
Hey friend! Not at the moment :( , I'm not really sure if I am going to add new content in short time, but I will fix any bugs if there happens to be any of course.

Aaaaand I ran into another problem. The card picking animation for a battle or in the album seems to be a bit janky. The x coordinate on the first arrival of said card is too low. But I just cannot figure out where to edit the code. Maybe you could help me? On the other hand the removal of a card is normal.

I think is has something to do with line 3140 an below.

Code:
Scene_Album_TT.prototype.move_card_to_hand = function () {

    if (this.triple_triad_frame_count >= 15) {
        this._cards_back_cards.x = this.card_end_position[0];
        this._cards_back_cards.y = this.card_end_position[1];
        this.phase = 2;
        this.phase_flip = 0;
        AudioManager.playSe({ name: this.aux_images['card_flipping_sound'], pan: 0, pitch: 100, volume: 100 });
    }
    else {
        var x = this.card_end_position[0] - this.card_start_position[0];
        var y = this.card_end_position[1] - this.card_start_position[1];
        this._cards_back_cards.x += parseInt(x / 15);
        this._cards_back_cards.y += parseInt(y / 15);
    }
};

I attached a video to show what I mean.
Oh sorry for the long time to answer, I will try to get this part to you, did you manage to fix it?
 

falken14

Veteran
Veteran
Joined
Dec 6, 2016
Messages
65
Reaction score
37
First Language
English
Primarily Uses
Oh sorry for the long time to answer, I will try to get this part to you, did you manage to fix it?
Hey Raizen, my game also does that sort of weird movement when the cards move across the deck selection scene to their designated spots, so whatever fix you come up with, I would be interested too. Thanks!
 

SirFeikelton

Warper
Member
Joined
May 18, 2020
Messages
4
Reaction score
0
First Language
German
Primarily Uses
RMMV
Oh sorry for the long time to answer, I will try to get this part to you, did you manage to fix it?
Hey Raizen, don't worry it's been a while but not too long. I am still working on my game and just put the card game to side for now. I made everything how I wanted except for this problem.
I still couldn't fix it.
So I will patiently wait for your response. Thank you in advance and please don't trouble yourself!

Btw, I am still so much in love with your great work, thanks again!
 

ave36

Veteran
Veteran
Joined
Jun 23, 2019
Messages
167
Reaction score
62
First Language
Russian
Primarily Uses
RMMV
@Raizen Would you be OK with another coder implementing Elemental, Random and Diff if you can't do so?
 

Raizen

Veteran
Veteran
Joined
Oct 24, 2012
Messages
397
Reaction score
700
First Language
Portuguese
Primarily Uses
RMMV
Hey Raizen, don't worry it's been a while but not too long. I am still working on my game and just put the card game to side for now. I made everything how I wanted except for this problem.
I still couldn't fix it.
So I will patiently wait for your response. Thank you in advance and please don't trouble yourself!

Btw, I am still so much in love with your great work, thanks again!
I'll check it out asap :( , sorry for the trouble

@Raizen Would you be OK with another coder implementing Elemental, Random and Diff if you can't do so?
For me, no problem! I think the code is a little messy, but if another coder does it, I don't see any issues.
 

ave36

Veteran
Veteran
Joined
Jun 23, 2019
Messages
167
Reaction score
62
First Language
Russian
Primarily Uses
RMMV
Ladies and gentlemen! My fork of this plugin now has a fully functional Random rule!

You still get to pick your hand at the beginning, because the pick your hand phase happens before the game rules are defined; it's just how the code is written. I've so far not found how to skip picking your hand with the Random rule in effect (maybe @Raizen has some advice, maybe no). However, when the actual game begins, your hand is randomized. The code correctly assesses win and loss of cards.

Minor QoL improvement: the Open and Sudden Death rules are now correctly displayed at the rules screen.

Next to be implemented: the Diff trade rule! Elemental I'll save for last.

1618047129863.png
 
Last edited:

ave36

Veteran
Veteran
Joined
Jun 23, 2019
Messages
167
Reaction score
62
First Language
Russian
Primarily Uses
RMMV
Good news, everyone: Diff now works, too! Elemental is next!

1618075081566.png
 

ave36

Veteran
Veteran
Joined
Jun 23, 2019
Messages
167
Reaction score
62
First Language
Russian
Primarily Uses
RMMV
This is the beta version of the Elemental rule. It is implemented as a game mechanic, but the AI so far cannot use it effectively. I'll be working on it.
Addendum: basic card flip Elemental AI is implemented. I tested it by making moves exposing a card with a 2 left side to the elemental square when the AI has 3 right side cards. The AI not even once tried to beat my Spider from the left with a Spider, Weed or Bug on the elemental square, realizing it will not work because of the elemental modifier. Though the combination of Same and Elemental still confuses the AI.

1618139197113.png
 
Last edited:

Raizen

Veteran
Veteran
Joined
Oct 24, 2012
Messages
397
Reaction score
700
First Language
Portuguese
Primarily Uses
RMMV
Hey friend! thanks for the new content :), sorry I wasn't much of a support lately, since I uploaded a fix, would you mind when the version is stable to request a merge? I fixed the album problem that was happening.
@SirFeikelton, fixed here:

@ave36 thanks a lot for the great work! Sorry for the messy code and all, I think I can manage to make the random work without the album screen, I just don't remember how exactly the random worked on the game if there was that function hahah.
 

ave36

Veteran
Veteran
Joined
Jun 23, 2019
Messages
167
Reaction score
62
First Language
Russian
Primarily Uses
RMMV
OK @Raizen, I'll send you my code. How would you like to receive it, by email, by PM or by making it public? Warning, it has even more dirty hacks than yours. At least I had the decency to comment them in English.
 

SirFeikelton

Warper
Member
Joined
May 18, 2020
Messages
4
Reaction score
0
First Language
German
Primarily Uses
RMMV
Hey friend! thanks for the new content :), sorry I wasn't much of a support lately, since I uploaded a fix, would you mind when the version is stable to request a merge? I fixed the album problem that was happening.
@SirFeikelton, fixed here:

@ave36 thanks a lot for the great work! Sorry for the messy code and all, I think I can manage to make the random work without the album screen, I just don't remember how exactly the random worked on the game if there was that function hahah.
Thanks for the quick fix! It's working just fine :D

When you and ave finished working on the elemental feature are you going to post it here as well? I would be interested in it too!

I also made a little random Card function (for like booster packs). But since I am not that good in javascript and especially not with the rpg maker js I didn't manage to do it in a visible manner for the player. If I ever get it to work as I wanted, I will let you know if you are interested.
 

Ophiucus Games

Ophiucus Games
Veteran
Joined
Nov 15, 2018
Messages
122
Reaction score
86
First Language
English
Primarily Uses
RMMZ
Excellent plugin, really great work. thank you so much!

I'm having trouble with the MZ version the mouse support and the use of the extra buttons (Return, Duel and Options).

1) The mouse is supported for the card select scene - you can click the return and duel buttons. BUT the return but is invalid (the buzzer sound is played) - why is this? If it's not possible to stop a duel before you start, then why have the button there?

2) The mouse is not supported on the duel scene. So the return and options buttons are displayed but there's no way to click on them
 

Latest Threads

Latest Posts

Latest Profile Posts

Bluh... glad this present heatwave is coming to a close...
Look what I found, it was my first ABS.

This project was never completed because I had lost the computer where it was stored.
Character Creator for RPGM 2000, VX, XP, & LPC Style Sprites | RPG Maker News #72

Is there any way to get more than 8 enemies in a troop in RMMV or is that limit pretty much hardcoded into the engine?
Stream will be live shortly with some game development! Feel free to drop by!

Forum statistics

Threads
112,273
Messages
1,066,994
Members
145,888
Latest member
Congo1977
Top