The RPG Maker Resource Kit

RMRK RPG Maker Creation => XP => XP Scripts Database => Topic started by: maximusmaxy on September 29, 2011, 06:16:54 AM

Title: [XP] Triple Triad XP
Post by: maximusmaxy on September 29, 2011, 06:16:54 AM
Triple Triad XP
Version: 1.3
Author: Maximusmaxy
Date: October 3, 2011

Version History



Description


Insert this script into your game to play the classic FFVIII minigame Triple Triad! Create/Edit/Modify your own cards and play your own way!

Features


Screenshots

(http://i55.tinypic.com/azdx6q.png)
(http://i54.tinypic.com/2qaqzci.jpg)

Instructions

To install the script simply paste it above the main, and below the default scripts. Make sure to copy the TT folder from the pictures folder in the demo, into your own pictures folder. If using the audio supplied in the demo, make sure that too is copied into your BGM folder. Instructions on how to use the script are in the demo.

Script


In the demo

Credit



Support

Feel free to email me or add me on MSN/Windows Live messenger if you have any questions. maximusmax3000@hotmail.com

Demo

http://www.mediafire.com/?d1clb0qg4iyoi08 (http://www.mediafire.com/?d1clb0qg4iyoi08)

Author's Notes

If you have anything you would like to add to the script or if it is incompatible with other scripts, feel free to tell me. If there are any error's or bugs (There are ALLOT of rules variations, too many to test myself), screenshots of what happened are always helpful. Also if you had added anything to the script i'd love to know and maybe implement it into mine aswell.

Restrictions

I wouldn't use this script in commercial games unless you want to be sued by Squaresoft/SquareEnix. But hey, your funeral.
Title: Re: [XP] Triple Triad XP
Post by: Xim on February 08, 2015, 06:52:49 AM
Sorry for the big bump but I have a bug issue that I am encountering.

I changed the game type for the winner to get gold instead of taking a card, but I get an error message that says "cannot convert fixnum into String"

This is a pretty awesome script otherwise. Love it. I just feel like winning only cards doesn't give it much practical use for overall gameplay as much.
Title: Re: [XP] Triple Triad XP
Post by: &&&&&&&&&&&&& on February 08, 2015, 02:47:17 PM
I took a look and I have no clue.
On line 1632 if you change the 0 to a 4, then you don't lose or gain cards... but I can't figure out how to make you lose/gain money.

Code: [Select]
    @trade_type = (@match_type == 0 ? $game_system.tt_trade : 5)
Title: Re: [XP] Triple Triad XP
Post by: Xim on February 08, 2015, 03:46:02 PM
 ;)Well thanks for trying anyways.

I do have an idea for a work around. I'm using Blizz ABS so I'm only using the "forced game" and I made an inventory item to view your card deck. What I'd like to have is a way to check if the player won or lost the game, that way I can have gold being won/lost or even have a part of the story where you have to try and defeat an npc in a card game.

I really just need a way to check with a conditional branch on if the player won or lost the card battle.
Title: Re: [XP] Triple Triad XP
Post by: &&&&&&&&&&&&& on February 08, 2015, 03:50:18 PM
I'll take a look.
Title: Re: [XP] Triple Triad XP
Post by: Xim on February 08, 2015, 03:54:54 PM
Awesome thanks!

I know the script stores the player's wins/losses. I just don't know too much about scripting so I can't really access it for a conditional branch.

But I was thinking the event would maybe something go something like making a variable equal to the amount of wins before the duel and then make another that's equal to the wins after the duel, then finally comparing the two variables.
Title: Re: [XP] Triple Triad XP
Post by: strike on February 08, 2015, 05:06:16 PM
well the reason triple triad was rewarding in FF8 was because you could mod cards into powerful items and spells which was more important than gold. Unless the economy in your game is really tightly controlled gold probably won't be a good reward to your players. (generally)

You could have a card trading shop where you could trade cards for gold or items maybe?
Title: Re: [XP] Triple Triad XP
Post by: Xim on February 08, 2015, 05:44:39 PM
Well, gold is a big deal in my game. Only a selected few enemies drop it (just humans).

I could have a card shop. I just don't know how I'd be able to do that.

I'd just like to know how to check stuff like what wins, losses and what cards the player has through an event.
Title: Re: [XP] Triple Triad XP
Post by: strike on February 08, 2015, 06:05:37 PM
sure just thought I'd mention it, in many jrpg's gold becomes pointless in short order and ceases to be a reward for time invested in things.
Title: Re: [XP] Triple Triad XP
Post by: Xim on February 08, 2015, 06:54:46 PM
sure just thought I'd mention it, in many jrpg's gold becomes pointless in short order and ceases to be a reward for time invested in things.

Well, my game is a little Japanese inspired, but it's a Canadian RPG  :P

Anyways, so I found out how to check if the player has won! And also how to check what cards the player has! I'll show everybody.

Code: [Select]
Have this before the battle

$game_variables[10] =
$game_system.tt_wins

and then have something like this after the battle. Now what I had to do what make it so a switch is called when the battle starts and that switch activates an invisible touch activated event that will determine if you've won after walking away from your opponent.

$game_variables[11] =
$game_system.tt_wins

And then have a conditional branch that compares variable 10 with 11!
Title: Re: [XP] Triple Triad XP
Post by: Xim on February 08, 2015, 09:29:10 PM
Okay, nevermind I give up on this script. It's not working anymore. It just crashes every time I win a game, none of my variable checks are working.

Thanks guys for at least giving me a hand with this stuff though. But this doesn't seem to work in BABS, I guess.
Title: The owing penoscrotal pleurisy, chloroquine immunocompetent, cramps.
Post by: oxidkayutpetn on August 23, 2019, 07:54:10 PM
Occasionally gup.ceuw.rmrk.net.xhi.mx practitioner kalika corporation cialis (http://charlotteelliottinc.com/cialis-5-mg/) price of chloroquine (http://huekymigia.com/chloroquine/) cheap generic viagra (http://charlotteelliottinc.com/viagra/) rocaltrol (http://telugustoday.com/rocaltrol/) oxytrol online (http://myonlineslambook.com/oxytrol/) levitra (http://neo-medic.com/levitra-20-mg/) administrative ammonium, symptomless, <a href="http://charlotteelliottinc.com/cialis-5-mg/">cialis online</a> <a href="http://huekymigia.com/chloroquine/">chloroquine</a> <a href="http://charlotteelliottinc.com/viagra/">viagra on line</a> <a href="http://telugustoday.com/rocaltrol/">rocaltrol online</a> <a href="http://myonlineslambook.com/oxytrol/">oxytrol online</a> oxytrol lowest price <a href="http://neo-medic.com/levitra-20-mg/">levitra.com</a> language; word, bodies, http://charlotteelliottinc.com/cialis-5-mg/ cialis http://huekymigia.com/chloroquine/ chloroquine http://charlotteelliottinc.com/viagra/ cheap viagra online http://telugustoday.com/rocaltrol/ cheap rocaltrol rocaltrol http://myonlineslambook.com/oxytrol/ order oxytrol online http://neo-medic.com/levitra-20-mg/ purchase levitra online analysed apparent, cricothyroidotomy.