KitsuneKouta
狐 康太
- 442
- Posts
- 15
- Years
- Seen Nov 20, 2017
Sorry, I should have clarified. In a trainer event, put the $PokemonGlobal.triads.pbStoreItem(PBSpecies::ARCEUS,2) inside of the conditional branch (it's the part that determines what happens if you win, and usually says Control Self Switch A = ON). But as I said, if the player hasn't already used the shop (buy or sell, it doesn't matter), you get an error for whatever reason. Also, you will have to add a message of some kind to tell the player that they received that card, since it is added silently.Hi!
THXs for the answer, but I did not mean that a shop has a rare card.
I did mean that your triple-triad opponent has a rare card.
For Example:
You opponent is RED and ONLY he and no one else has a ARCEUS-Card.
You can only get this card if he use this card in the game and if you beat him.
The same way you can get an ARBOK or any other PKMN-Card, if you beat the guy in the demo.
~ Kareth
EDIT: I tried a few more things and figured out how to add a specific card if you beat an opponent at a triad duel. It didn't work like trainers (with a conditional branch), but using a variable works just as well. In the PokemonTriad script, find elsif playerCount>opponentCount (should be line 810) and add $game_variables[30]=1 below it. This will set the variable to one on victory. Then, in an event after the pbTriadDuel(opponent,#,#), make a conditional branch that checks the value of the variable. If it is equal to one, add the card (you will receive two cards, one upon victory and one after the match). After that, reset the variable to 0 so that if you challenge them again and lose, you won't end up winning anyways. Note that the 30 in $game_variables is arbitrary, you may use whatever variable you like. Also, to add a card for the first time without requiring the use of the Triad shop, use this in a script command:
$PokemonGlobal.triads=TriadStorage.new
$PokemonGlobal.triads.pbStoreItem(
PBSpecies::ARCEUS,2)
I'd recommend supplying the player with a few weak cards in this way at the start, so that you don't have to worry about it when adding cards later.
Last edited: