DSI Card Matching Minigame

DSI Card Matching Minigame
By dsiver144
​
Introduction
I think you guys have heard about card matching minigame many times before. I created one for VXA. I don't you if someone has made this but I still want to release this. Have fun!
Features
  • Easy to use & config
  • Card flip animation
Screenshots
Spoiler: Click to see!
CKo00Q6.png

pH6Y7vs.png
Download
Dropbox (Demo)
Credit and thanks
created by dsiver144
Free to use in non-comercial projects. If you want to use it in a comerical projects, please contact me!
Author's Notes
I made assets for the demo. Please don't use it for your comerical project! xD
Very clean system - looks like it would be a lot of fun!

I could totally see this being used at a "Gold Saucer" area of sorts as a mini game where you can bet gold before you play, or play for points to exchange for prizes.

Nice work on this!
Thanks for kind words bro. I made this for a casino system for my project. But I think people should have this for their project too. It can be used in many purpose just like what you said there. 😤
This looks very nice and fun, thanks for sharing. 🙂
Yo, I actually was thinking of doing something like this for a battle system. You have read my mind. O_O
Yeah, I read your mind! *playing evil laugh SE" :mrsatan:
Great job!😂
You forgot to dispose the timer sprite. 😛
The ticking timer sound is still playing when the time gets low even if the game is finished already. Not a big issue (if it even is), just thought it would make more sense to stop it if the game is finished.

Nice game!
But the lack of instructions kinda destroys the part where you write "easy to use & config".
I got no problem with it, but people with no scripting knowledge at all might get some trouble configuring it.
Sometimes I get questions even about way easier setup layouts, so I imagine, there will be people asking about the settings in your script too. 😀
Oh, it's always happen when I release new script xD Thanks for pointing it out Sixth. About instrustion, I really am bad at English. Will add as soon as I can :3
DSI Card Matching Minigame
By dsiver144
​
Introduction
I think you guys have heard about card matching minigame many times before. I created one for VXA. I don't you if someone has made this but I still want to release this. Have fun!
Features
  • Easy to use & config
  • Card flip animation
Screenshots
Spoiler: Click to see!
CKo00Q6.png

pH6Y7vs.png
Download
Dropbox (Demo)
Credit and thanks
created by dsiver144
Free to use in non-comercial projects. If you want to use it in a comerical projects, please contact me!
Author's Notes
I made assets for the demo. Please don't use it for your comerical project! xD
Wow this is a really neat script!!!
I LOVE IT!! Thank you!!
Such a nice script and it works quite clean. :LZSjoy: Well done. Any chance this will work with the default resolution as well?
Also is there any option to close the game when pressing any button (esc for example) becase i can't exit it if i don't win or lose..
Also is there any option to close the game when pressing any button (esc for example) becase i can't exit it if i don't win or lose..
This would also be great in case you realize you can't win a game anymore so you have a way to cancel it.

Most important thing would be to make it work with default resolution (544*416) and maybe have a way to use a static background instead a scrolling one. :LZSjoy:
Fixed
Ruby:
#===============================================================================
# DSI Card Matching
# Author: dsiver144
# Release on: March 7th 2017
# MOD by Roniantor2
#==============================================================================
#==============================================================================
# + Updates
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# 2017.03.7 - Finish first version.
# Roninator2
# 2022/06/18 - Added scrolling background off option,
#              Added cancel game by B button
#              Added instructions for default resolution
#==============================================================================
#==============================================================================
# + Instructions
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#   Resolution is not an issue with the script
#   The card size is the problem.
# A game is setup as follows
#    STAGES[1] = {}
#    STAGES[1][:cards] = [1,2,3,4,5,6,7,8,9]
#    STAGES[1][:width] = 6
#    STAGES[1][:time] = [1,30]
# The cards are 'the cards' you will use in the game
# whatever number you use must be doubled. ( 9 cards = 18 cards in play )
#
# The width is divided into the number of cards in play ( 18 / 6 = 3 )
#   That means for this game there will be 6 columns and 3 rows
#
# The resolution is only an issue when the graphic images are too large.
# Reduce the size and they will fit on the screen.
#===============================================================================
module DSIVER144
  module CARD_MATCHING
    BG_SCROLL       = false
  end
end

class Scene_CardMatching < Scene_Base
  alias r2_dsi_card_match_input_cancel  update_input
  def update_input
    r2_dsi_card_match_input_cancel
    if Input.trigger?(:B)
      return_scene
    end
  end
  alias r2_background_scroll_stop update_background
  def update_background
    return if !CARD_MATCHING::BG_SCROLL
    r2_background_scroll_stop
  end
end
Thank you Roninator2! The new cards are required or optional?
they are just downsized cards to fit a default resolution
Thanks @Roninator2 for fixing the script.
Btw, guys. Should I port this to MV/MZ?
Planning to open the P@treon page for custom plugins for MV/MZ. So I can create more useful ones for community. I have been working on private plugins for so long that I think I can do something to contribute.
As I'm currently in the process of turning this gem of a script into a full game, is there a way to set a different BGM per stage or via a variable (depending on what value it has)?

The second idea would be that I set a variable to let's say 2, the script reads that value and plays the second value out of a BGM array set in the script itself.
different BGM per stage
Ruby:
#===============================================================================
# DSI Card Matching
# Author: dsiver144
# Release on: March 7th 2017
# MOD by Roniantor2
#==============================================================================
#==============================================================================
# + Updates
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# 2017.03.7 - Finish first version.
# Roninator2
# 2022/06/22 - Added feature to use different music on specific games
#==============================================================================
#==============================================================================
# + Instructions
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#   Add songs to each stage you want a specific BGM to play
#    STAGES[1][:song] = ["Scene5",90,100]
#   These can be placed here but preferably in the original script
#===============================================================================

module DSIVER144
  module CARD_MATCHING

    STAGES[1][:song] = ["Theme1",90,100]

    STAGES[2][:song] = ["Theme2",90,100]

    STAGES[3][:song] = ["Theme3",90,100]

  end
end


class Scene_CardMatching < Scene_Base
  include DSIVER144
  def play_scene_sounds
    $game_system.save_bgm
    song = RPG::BGM.new(*CARD_MATCHING::SCENE_BGM)
    if CARD_MATCHING::STAGES[@stage_id].has_key?(:song)
      song = RPG::BGM.new(*CARD_MATCHING::STAGES[@stage_id][:song])
    end
    song.play
  end
end

Original thread: https://forums.rpgmakerweb.com/threads/dsi-card-matching-minigame.75672/