Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials

Notices
For all updates, view the main page.

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.



Closed Thread
 
Thread Tools
  #1    
Old June 11th, 2012 (03:15 PM).
p.claydon
 
Join Date: Jan 2011
Gender:
is it possible for a player to receive cards from npc or for wild/traded pokemon to hold cards?
  #2    
Old June 11th, 2012 (03:42 PM).
Nickalooose
--------------------
 
Join Date: Mar 2008
Gender: Female
If you look at PokemonMinigameTriad, you can search up that you can buy cards that you own in your PokéDex, I don't think it would be hard adding an item with a descrition of what it does, stick that in your key items pocket, or, I would probably make a new pocket, and use a script directly after the adding of the card:

Which quickly browsing keep be any of the following;

TriadCard.new
$PokemonGlobal.triads.pbStoreItem(item,quantity)

The only thing I can see being a problem, Triad, registers cards in your PokéDex, so if you try to recieve a card that isn't in your Dex, I can't say what would happen... It's also possible that there is no way to do this, but as I said, I only had a quick scout and that's what looks to be the more achievable option... I can't offer you a solution but maybe this is a good place to start looking into, believe me, without actually playing aruond with the scripts you won't learn anything, I'm learning but Maruno still finds flaws in my methods, have a look in the Triad script section and see what you can come up with, then message back.
  #3    
Old June 11th, 2012 (04:22 PM).
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Receiving a card from an NPC is easy; it's just the same as receiving a regular item. Use $PokemonGlobal.triads.pbStoreItem(PBSpecies::BULBASAUR,quantity). That won't show any messages. You'll also need to make sure you're able to add them all first ($PokemonGlobal.triads.pbCanStore?(PBSpecies::BULBASAUR,quantity)).

Having a wild Pokémon hold a card is potentially difficult, depending on what exactly you want. If it should hold a "Mystery Card", which is just a random card (use it to discover which card it is and add it to your Library), then that's easy enough to do. If the card needs to be the species of the holder, then you might want to just auto-gain the card upon capture (adding it immediately to the Library) and "pretend" it was holding it, rather than have the card be an actual item (there's nothing similar to compare this to). Anything else (the card depends on some other factor) is even harder to do.

You could have an item usable in battle which scans the opposing Pokémon, and create a card out of it (which is immediately added to the Library). Probably not a Key Item, though, since that would just become a money generator by infinitely scanning Pokémon and selling the unwanted copies. Perhaps a "Blank Card" item which is just turned into a Triad card (ostensibly done by an invisible printer, like how TMs are ostensibly used by a device they go into to teach their moves). This could still be abused for infinite money, so maybe you could have tiers of cards, each of which costs a different amount and can scan a certain value of species, to at least reduce this effect.

There is absolutely no problem with giving the player a card of a species they haven't yet owned. That restriction solely applies to the available cards in the card shop.
__________________
  #4    
Old June 11th, 2012 (05:50 PM). Edited June 12th, 2012 by p.claydon.
p.claydon
 
Join Date: Jan 2011
Gender:
ah cool thank you wasnt too bothered about the wild pokekon thing but the npc card giving worked well

EDIT
ok made a basic item addon script thing that when you own an item then it brings up a list of your owned cards (you will need to make a new item called TRIADCASE in the items file

Code:
ItemHandlers::UseFromBag.add(:TRIADCASE,proc{|item|
  pbTriadList
  next 1
})
just add this in the PokemonItemEffects script
  #5    
Old March 19th, 2013 (06:43 AM).
bartyboy6's Avatar
bartyboy6
 
Join Date: Sep 2010
Gender: Male
Sweet! thanks for the script, mate.
Closed Thread
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 01:37 PM.