deathsia

Pegisister
Regular
Joined
Feb 26, 2014
Messages
659
Reaction score
59
First Language
English
Primarily Uses
Why do people insist on using older versions?
Because many of us use plugins that are not compatible with newer versions of rpg maker mv and the plugin developers have moved on to new things with no intent to come back and update their older plugins. So if we want to keep the features that our plugins provide in our game, we have to keep using an older version.
 

falken14

Regular
Regular
Joined
Dec 6, 2016
Messages
81
Reaction score
52
First Language
English
Primarily Uses
Why do people insist on using older versions?
Some people have built their game mechanics around certain plugins that now break in V1.6+, due to various changes in javascript features used, so they have rolled back to older versions to keep these plugins working. (For instance, I had been using some of SRDude's plugins, but many seem to not work for me any more.) Of course, this leads to problems with new plugins that are built specifically for V1.6+.

Edit: ninja'd ^
 

ave36

Legend of Terra Firma
Regular
Joined
Jun 23, 2019
Messages
184
Reaction score
69
First Language
not English
Primarily Uses
RMMV
Hello! Any updates on Elemental and other omitted rules?
 

porkoddio

Warper
Member
Joined
Apr 17, 2020
Messages
2
Reaction score
1
First Language
poland
Primarily Uses
N/A
Hello, who know if is it possible to make enemies to hold random cards instead the selected 5? i mean generate 5 random cards from a pool so i can set "rare" cards
 

falken14

Regular
Regular
Joined
Dec 6, 2016
Messages
81
Reaction score
52
First Language
English
Primarily Uses
Hello, who know if is it possible to make enemies to hold random cards instead the selected 5? i mean generate 5 random cards from a pool so i can set "rare" cards

I have the same problem, you must put the rare card in the initial hand, then not include it in reserve cards, but I want to be able to have the rare card not always appear immediately (like in FF8). I don't think you can with the current parameters. You might be able to change the parameter that sets enemy hand to accept 'v[x]' and set random variables (not sure if possible).

____________

I'm guessing other people might have tried using this with different resolutions and different-sized cards. I found the card preview image in the album didn't adjust automatically and its co-ordinates didn't appear to be modifiable via plugin parameters. I found that adjusting bits of the code for the 'Window_TripleTriad_CardDetails' function (from line 3478) allowed you to get around this:

TT resolution adjustment - album.png

(1280x720, I also created another parameter to add the 'Card View' text and scaled up the sprite with 'this._cardBitmap.scale.x/y' to take up more of the empty space).
 

porkoddio

Warper
Member
Joined
Apr 17, 2020
Messages
2
Reaction score
1
First Language
poland
Primarily Uses
N/A
@Raizen maybe is it possibile to make it? for example set enemy hands to hold cards by chance so we can set rare or difficult to find cards?
 

Raizen

Regular
Regular
Joined
Oct 24, 2012
Messages
446
Reaction score
785
First Language
Portuguese
Primarily Uses
RMMV
I think its okay to do it, but just a question, if you increase the hand size, or the reserve card list size, like this.:
wNsxE34.png
4Y1rXwB.png


lets say 1 is the rare one, doesn't it quite do the same thing? Like if you triple all other cards besides the rare one, it kind of makes it 3 times harder to have.

If its not this that you mean, I can try to help getting there :D
 

Bilalichwa

Regular
Regular
Joined
May 12, 2017
Messages
34
Reaction score
10
First Language
Indonesia
Primarily Uses
RMMV
Hi @Raizen, I like your plugin.. I have a problem with your plugin.

I want to know the number of cards in variable form.

For example I want to see the number of cards (ID Card 1) via Variables.
do you know how?

\v[1] = Total number of ID Cards 1

example: You have Heroic Card \v[1]x
You have Heroic Card 4x

sorry if I'm not very fluent in English.
 

Raizen

Regular
Regular
Joined
Oct 24, 2012
Messages
446
Reaction score
785
First Language
Portuguese
Primarily Uses
RMMV
oops, sorry I made a slight mistake, I will fix it on the main plugin, you can put this as a new plugin and it will fix yours :).

Code:
function tripleTriadHasCard(card_id) {
    return ($dataTripleTriad.self_tt_cards.includes(card_id) || $dataTripleTriad.all_cards.includes(card_id));
};

for the other part, I didn't program it before, but I made a really quick one here:

Code:
function tripleTriadCountCard(card_id) {
    var count = 0;
    var array =  $dataTripleTriad.all_cards + $dataTripleTriad.self_tt_cards;
    for(var i = 0; i < array.length; ++i){
        if(array == card_id)
            count++;
    }
    return count;
};


you can add both at the same new plugin.
 

Bilalichwa

Regular
Regular
Joined
May 12, 2017
Messages
34
Reaction score
10
First Language
Indonesia
Primarily Uses
RMMV
oops, sorry I made a slight mistake, I will fix it on the main plugin, you can put this as a new plugin and it will fix yours :).

Code:
function tripleTriadHasCard(card_id) {
    return ($dataTripleTriad.self_tt_cards.includes(card_id) || $dataTripleTriad.all_cards.includes(card_id));
};

for the other part, I didn't program it before, but I made a really quick one here:

Code:
function tripleTriadCountCard(card_id) {
    var count = 0;
    var array =  $dataTripleTriad.all_cards + $dataTripleTriad.self_tt_cards;
    for(var i = 0; i < array.length; ++i){
        if(array == card_id)
            count++;
    }
    return count;
};


you can add both at the same new plugin.
Thank you very much. but for function TripleTriadCountCard. does not seem to work, only reads number 1. if you have 2x (card id 1) it will return to number 0
 
Last edited:

Bilalichwa

Regular
Regular
Joined
May 12, 2017
Messages
34
Reaction score
10
First Language
Indonesia
Primarily Uses
RMMV
Thank you very much. but for function TripleTriadCountCard. does not seem to work, only reads number 1. if you have 2x (card id 1) it will return to number 0
Nevermind..

I fixed it, just adding

Code:
function tripleTriadCountCard(card_id) {
    var count = 0;
    var array =  $dataTripleTriad.all_cards + $dataTripleTriad.self_tt_cards;
    for(var i = 0; i < array.length; ++i){
        if(array[i] == card_id)
            count++;
    }
    return count;
};
 
Joined
Jul 20, 2018
Messages
2
Reaction score
0
First Language
Português
Primarily Uses
RMXP
I'm using google translator, sorry for any typos.

I would like to use your plug-in in my project, but I need to adapt the scenes before and after the battle. I wish that the rules window did not appear before each game, finally, I would like to skip the post-battle scene, without exchanging cards.

If you can show me how you can make these changes in the plugin I would appreciate it very much
 

DigitalWF

Regular
Regular
Joined
Apr 13, 2020
Messages
227
Reaction score
66
First Language
English
Primarily Uses
RMMV
This is a really cool plugin but I'm not able to figure out how to position them correctly with 1280x720 resolution? Has anyone managed to reposition this plugin correctly with 1280x720 resolution?
 

falken14

Regular
Regular
Joined
Dec 6, 2016
Messages
81
Reaction score
52
First Language
English
Primarily Uses
This is a really cool plugin but I'm not able to figure out how to position them correctly with 1280x720 resolution? Has anyone managed to reposition this plugin correctly with 1280x720 resolution?
Just look up a few posts on this thread - I have a post detailing the resizing process for 1280x720.
 

DigitalWF

Regular
Regular
Joined
Apr 13, 2020
Messages
227
Reaction score
66
First Language
English
Primarily Uses
RMMV
Just look up a few posts on this thread - I have a post detailing the resizing process for 1280x720.
Is it possible if you post the part that you changed in the code?
What about the positioning in the card battle scene?
 

falken14

Regular
Regular
Joined
Dec 6, 2016
Messages
81
Reaction score
52
First Language
English
Primarily Uses
Is it possible if you post the part that you changed in the code?
What about the positioning in the card battle scene?

Line 3478 to 3517:
JavaScript:
Window_TripleTriad_CardDetails.prototype.refresh = function (cardId) {
    this.contents.clear();
    if ($dataTripleTriad.self_tt_cards.includes(cardId) || $dataTripleTriad.all_cards.includes(cardId))
        card_name = JSON.parse(this.card_list[cardId])["Image_Player_1"];
    else
        card_name = this.aux_images['back_card_image'];
    this._cardBitmap = new Sprite();
    this._cardBitmap.bitmap = ImageManager.loadTripleTriad(card_name);
    this.addChild(this._cardBitmap);
    this._cardBitmap.x = 200;
    this._cardBitmap.y = 220;
    this._cardBitmap.scale.x = 1.45;
    this._cardBitmap.scale.y = 1.45;
    this._cardBitmap.anchor.x = 0.5;
    this._cardBitmap.anchor.y = 0.5;
    var count = 0;
    for (var i = 0; i < $dataTripleTriad.all_cards.length; ++i) {
        if ($dataTripleTriad.all_cards[i] == cardId)
            count++;
    }
    var total = parseInt(JSON.parse(this.card_list[cardId])["Power(UP)"]);
    total += parseInt(JSON.parse(this.card_list[cardId])["Power(LEFT)"]);
    total += parseInt(JSON.parse(this.card_list[cardId])["Power(RIGHT)"]);
    total += parseInt(JSON.parse(this.card_list[cardId])["Power(DOWN)"]);
    if ($dataTripleTriad.self_tt_cards.includes(cardId) || $dataTripleTriad.all_cards.includes(cardId)) {
        this.drawText(this.album_text["CardView"] + " ", 32, 10, this.width, 'left');
        this.drawText(this.album_text["TotalOwned"] + " " + count, 350, 42, this.width, 'left');
        //this.drawText(this.album_text["TotalPower"] + " " + total, 20, 60, this.width, 'left');
        this.drawText(this.album_text["Rarity"] + " " + JSON.parse(this.card_list[cardId])["Rarity"], 350, 82, this.width, 'left');
        this.drawText(this.album_text["Price"] + " " + JSON.parse(this.card_list[cardId])["Price"], 350, 122, this.width, 'left');
        this.drawTextEx(this.album_text["Description"] + " " + JSON.parse(JSON.parse(this.card_list[cardId])["card_description"]), 350, 162);
    }
    else {
        this.drawText(this.album_text["CardView"] + " ", 32, 10, this.width, 'left');
        this.drawText(this.album_text["TotalOwned"] + " " + count, 350, 42, this.width, 'left');
        //this.drawText(this.album_text["TotalPower"] + " " + "??", 160, 60, this.width, 'left');
        this.drawText(this.album_text["Rarity"] + " " + "??", 350, 82, this.width, 'left');
        this.drawText("Price: " + "??", 350, 122, this.width, 'left');
        this.drawTextEx(this.album_text["Description"] + " " + "??", 350, 162);
    }

This is customised to my card size (square, see above) - you might need to fiddle with the numbers depending on your own card size. I also commented out the 'card power' text because I didn't really need it. Positioning in the battle scene is done in the plugin parameters.
 

DigitalWF

Regular
Regular
Joined
Apr 13, 2020
Messages
227
Reaction score
66
First Language
English
Primarily Uses
RMMV
@falken14 Thank you for that, I tried messing with the plugins parameters but I just can't seem to get the card board position right.
Do you mind sharing yours? Sorry for the trouble.
 

deathsia

Pegisister
Regular
Joined
Feb 26, 2014
Messages
659
Reaction score
59
First Language
English
Primarily Uses
Triple Triad

Introduction
This is the Triple Triad Plugin!,
For those who never played, here is a big chance, it puts the card game in your project as a side mini-game, really addictive, and thanks a lot for square for the marvelous mini-game x).

Features
- Artificial Inteligence
- Card Album
- Aftermatch Scene

There will be a booster and Card Shop add-on later on!!

Portuguese user? Access the portuguese script here

Screenshots and videos



How to Use
Check the demo out for how to use this plugin!

Plugin

https://raizen884.itch.io/triple-triad-rpg-maker-mv-plugin

FAQ
Will there be future add-ons for the script?
Yes
Is this plugin ok for commercial use?
Yes commercially and non-commercially, I only ask if possible to credit me for the plugin :)

Credit and Thanks
- Raizen for the script
- Design if used by Raizen
- images are RM MV RTP (Kadokawa) or commercial free-use.

And of course, Square for Final Fantasy 8 and everything needed for the game mechanics


I deployed the plugin under version 1.5.2 since you said that if deployed it works, yet when I tested the deployed version I got the same error I got in playtest.
a42007023a.png


We need a version 1.5.2 otherwise those of us who run older versions will not be able to use this plugin. :/
 

Raizen

Regular
Regular
Joined
Oct 24, 2012
Messages
446
Reaction score
785
First Language
Portuguese
Primarily Uses
RMMV
oh, it wasn't that deployed it worked, but instead when I used the browser to test it worked. Even if you use 1.5.2 and update the nw.js version of your game, https://forums.rpgmakerweb.com/inde...upgrade-nwjs-and-chromium-67-68-64bits.96908/
It should work, also after you deploy it.

But you are not wrong, the best was if I made it also work for 1.5.2 and under, but since when I worked on it, I was using ES6 terms, it got that issue of only working for 1.6 and up. I will try to get some time to still work on this, I was doing it, but it was taking way too much time for me to fix it, do you mind trying the suggestion above maybe?
 

mardin

"...pretty please?"
Regular
Joined
Nov 8, 2015
Messages
273
Reaction score
131
First Language
German
Primarily Uses
Oh nice. I love the triple triad game mechanics!

But can this plugin even be used in a commercial release?
 

Latest Threads

Latest Posts

Latest Profile Posts

Watching all of you working on the Christmas game jam and posting updates from your games is making me want to get back into game making.
WHAT HAVE YOU ALL DONE???! HELP!WindRyder_AnabelleBathing_Chibi.jpg
Idle.gif
Juice FX is great lol... this is like 3 different 5 frame animations put together through various frames of each of the the 3 poses. I use to animate almost all of my idle animations like this since I'm definitely NOT an animator... just someone who can kinda draw somewhat decently.
The little Windows widget icon for searching today is an axolotl!

1701893595588.png
1701891367101.png
it continues in baby steps xD
want to optimize the new cover completely, before I rework the rest of the game^^

Forum statistics

Threads
136,791
Messages
1,270,009
Members
180,544
Latest member
neurosith
Top