Triple Triad Card Game

Discussion in 'JS Plugin Releases (RMMV)' started by Raizen, Jun 24, 2019.

  1. Raizen

    Raizen Veteran Veteran

    Messages:
    198
    Likes Received:
    210
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    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
     
    Last edited: Jun 25, 2019
    #1
  2. bgillisp

    bgillisp Global Moderators Global Mod

    Messages:
    12,419
    Likes Received:
    12,653
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMVXA
    Images are now the MV RTP which is fine as long as they credit Kadokawa. I approved the thread, but please add that to your credits too. Also can you edit the video to show the new images?
     
    #2
  3. Raizen

    Raizen Veteran Veteran

    Messages:
    198
    Likes Received:
    210
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    Yep! Sorry guys xD! I got this a little messed up hahah, but I think its all good now :)! If there is any issue I will happily modify to be ok!
     
    #3
  4. Neo Soul Gamer

    Neo Soul Gamer Veteran Veteran

    Messages:
    617
    Likes Received:
    333
    Location:
    Nova Scotia, Canada
    First Language:
    English
    Primarily Uses:
    N/A
    @Raizen I totally thought you gave up on this. Didn't you have a post about this in the development plugin forum like, years ago? It's amazing that you actually finished it! Thanks!
     
    #4
  5. Raizen

    Raizen Veteran Veteran

    Messages:
    198
    Likes Received:
    210
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    Posting here to keep all questions relative to the plugin on its thread x).

    I didn't use eval so that won't work, I would need to adapt the plugin to accept that, I'm not sure how RM MV handles the Plugin parameters, I think they are loaded once when the application starts, so I'm not sure I can make it work like that also. I will try to adapt it on a future version x).



    Yeah I was very away hahah, I had planned doing this waaaay back, but just wasn't in a mood to program it xD. Anyway thanks for the ups :)! I am really happy to be doing this kind of work again!
     
    #5
  6. AdamSakuru

    AdamSakuru [Null_Value] Veteran

    Messages:
    314
    Likes Received:
    169
    First Language:
    English
    Primarily Uses:
    N/A
    After the first NPC says some stuff and it's supposed to give you cards I got this error.
     

    Attached Files:

    #6
  7. Raizen

    Raizen Veteran Veteran

    Messages:
    198
    Likes Received:
    210
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    I think its not recognizing the plugin, is it on and all? I tested in a PC without RPG Maker MV and it worked all good.
     
    #7
  8. deathsia

    deathsia Pegisister Veteran

    Messages:
    618
    Likes Received:
    52
    First Language:
    English
    I just ran your demo as well Raizen and I hit the same error at the very start of the demo upon walking onto a touch event after some dialogue.

    [​IMG]

    As a precaution, i disabled the touch event and talked to another npc who is supposed to give me cards and the same error occurred.

    UPDATE: I figured out what the problem is! You coded this for version 1.6.2 of MV which means games using previous versions of MV CAN NOT run this mini-game...

    I have plugins which can not run on anything higher than version 1.5.2. Is it possible you can make a version that works with 1.5.2 or make your current version backwards compatible with 1.5.2?
     
    Last edited: Jun 26, 2019
    #8
    AdamSakuru likes this.
  9. AdamSakuru

    AdamSakuru [Null_Value] Veteran

    Messages:
    314
    Likes Received:
    169
    First Language:
    English
    Primarily Uses:
    N/A
    I was actually thinking it might have been the RPG Maker MV Version.
    I'm using V 1.5.2 because moving to V 1.6 and above seems to break things in my game project.
     
    #9
  10. Raizen

    Raizen Veteran Veteran

    Messages:
    198
    Likes Received:
    210
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    Oh ok, I will see that, I don't have any idea how MV js works with backward compatibility haha, and I find it so strange since I didn't even know I used something specific from version 1.6 and on XD. Anyway don't worry this should be very easy to fix so today later on I will probably update the demo :)

    Edit: Ok it works on any browser, but is not working specifically for the versions 1.5.2 and under from RPG Maker MV hahah, I need to understand why is this XD
     
    Last edited: Jun 26, 2019
    #10
    AdamSakuru likes this.
  11. BlueMage

    BlueMage Slime Lv99 Veteran

    Messages:
    116
    Likes Received:
    147
    First Language:
    English
    Primarily Uses:
    RMVX
    Legendary Raizen is back!
     
    #11
  12. ray0989

    ray0989 Villager Member

    Messages:
    6
    Likes Received:
    0
    First Language:
    Chinese
    Primarily Uses:
    RMMV
    @Raizen Hello guy, can you tell me how to edit the card data?I tried to find it in the “data” folder, but I didn't find it.
     
    #12
  13. ave36

    ave36 Veteran Veteran

    Messages:
    90
    Likes Received:
    34
    First Language:
    Russian
    Primarily Uses:
    RMMV
    You edit the plugin config. One of the options there is Card List.
     
    #13
  14. haobanfn

    haobanfn Warper Member

    Messages:
    1
    Likes Received:
    0
    First Language:
    english
    Primarily Uses:
    RMMV
    Awesome!!! Thank you for your great work!

    But a little question here :

    I try to change the code line 457 from

    function tripleTriadHasCard(card_id) {
    return ($dataTripleTriad.self_tt_cards.includes(card_id) && $dataTripleTriad.all_cards.includes(card_id));
    };


    to

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



    maybe the latter one is more intuitive?
     
    #14
  15. Raizen

    Raizen Veteran Veteran

    Messages:
    198
    Likes Received:
    210
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    it isn't more intuitive, it is just right hahahah, I will change that, it was my mistake thanks to notice that x)!

    I also forgot to add the touch support, it was working before already, I'll try to update today!




    Ah, I'm having a lot of problems to make this run on RM MV 1.5 and below, it actually does work, but the playTest will not work on the executable, I really am guessing it is probably because of the JS version on the program itself. If you have version 1.5.x or below, you can use this script, but it does not run on the RMMV playTest mode, you can run it on any updated browser though.
     
    #15
  16. ave36

    ave36 Veteran Veteran

    Messages:
    90
    Likes Received:
    34
    First Language:
    Russian
    Primarily Uses:
    RMMV
    Will the function I requested, namely support for variables and evals in the rules section, in the update?
     
    #16
  17. BlueMage

    BlueMage Slime Lv99 Veteran

    Messages:
    116
    Likes Received:
    147
    First Language:
    English
    Primarily Uses:
    RMVX
    @Raizen
    Why is that? I thought the only different thing between ver1.6x and 1.5x is that
    1.6x support arrow function "=>" while 1.5x doesn't
     
    #17
  18. Raizen

    Raizen Veteran Veteran

    Messages:
    198
    Likes Received:
    210
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    I'll try to add that, I'll see how easy I can add that for you x), will update it tomorrow actually today I had some work to do.

    I don't quite understand why hahah, but a lot of things were not working, like adding default parameters in functions does not work for 1.5, I guess 1.5 is using ES 5 and 1.6 is using ES 6, even though I didn't find documentation saying that. Even after I changed that there was some issues also, but... I did not find any single issue when using 1.5 and just using another playTest method, any other actually. I wanted to fix that, but if I have to change too much to make it work, it kind of bothers me to downgrade the script hahah. XD

    Btw, thanks for the legendary before hahaha XD
     
    #18
  19. keizz

    keizz Veteran Veteran

    Messages:
    57
    Likes Received:
    17
    First Language:
    English
    Primarily Uses:
    RMMV
    Sorry but I don't know rules for this card games, Can you explain for me?
     
    #19
  20. bgillisp

    bgillisp Global Moderators Global Mod

    Messages:
    12,419
    Likes Received:
    12,653
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMVXA
    The reason it won't work under playtest mode is the code for playtest was changed in one of the versions of MV (1.5.1 I think). Anyone who tried to run a project lower than that with the editor updated playtest didn't work either, they just got white screen.

    Also around 1.5 or so Mv changed how plug-in data is read, so odds are high you would have to rewrite it completely to make it work for version 1.0 - 1.4.1. This is also why almost no plug-ins written for version 1.0 - 1.4.1 work in 1.5 on up too.
     
    #20

Share This Page