deathsia

Pegisister
Veteran
Joined
Feb 26, 2014
Messages
651
Reaction score
55
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

Veteran
Veteran
Joined
Dec 6, 2016
Messages
68
Reaction score
39
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

Veteran
Veteran
Joined
Jun 23, 2019
Messages
167
Reaction score
62
First Language
Russian
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

Veteran
Veteran
Joined
Dec 6, 2016
Messages
68
Reaction score
39
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

Veteran
Veteran
Joined
Oct 24, 2012
Messages
397
Reaction score
701
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

Veteran
Veteran
Joined
May 12, 2017
Messages
34
Reaction score
9
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

Veteran
Veteran
Joined
Oct 24, 2012
Messages
397
Reaction score
701
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

Veteran
Veteran
Joined
May 12, 2017
Messages
34
Reaction score
9
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

Veteran
Veteran
Joined
May 12, 2017
Messages
34
Reaction score
9
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
1
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

Veteran
Veteran
Joined
Apr 13, 2020
Messages
227
Reaction score
62
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

Veteran
Veteran
Joined
Dec 6, 2016
Messages
68
Reaction score
39
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

Veteran
Veteran
Joined
Apr 13, 2020
Messages
227
Reaction score
62
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

Veteran
Veteran
Joined
Dec 6, 2016
Messages
68
Reaction score
39
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

Veteran
Veteran
Joined
Apr 13, 2020
Messages
227
Reaction score
62
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
Veteran
Joined
Feb 26, 2014
Messages
651
Reaction score
55
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

Veteran
Veteran
Joined
Oct 24, 2012
Messages
397
Reaction score
701
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?"
Veteran
Joined
Nov 8, 2015
Messages
273
Reaction score
130
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

Vaguely toying with demon/tiefling type parts but will probably work on something else first because eventually I'm going to have to make wings and I don't feel up to it yet. In the meantime, this guy:

TestChara-15.gif

I ended up reworking the interface, and Poppet's animations so she has a wand now and waves it to fire a shot. Also I gave her a shadow. Still have to rerender other stuff with shadows but eh.... I like her new "pew pew" wand. :LZSexcite:
PSA: please stop putting the word 'Eternal' in your game titles.
RMMZ: "Simple enough for a child!"
also RMMZ: "What, you're trying to make an RPG and you didn't know about Euler angles?"
I kinda spent the day having my own little gamejam and came up with this Catastrophe!

GZOq45s.png

Forum statistics

Threads
113,630
Messages
1,076,302
Members
147,640
Latest member
RuddyKoeol
Top