Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Reload this Page [Question] Is this Trainer Card Usable?

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.



Reply
 
Thread Tools
  #1    
Old May 12th, 2012 (04:10 PM). Edited May 12th, 2012 by Prof Oakley.
Prof Oakley's Avatar
Prof Oakley Prof Oakley is offline
JourneyofPossibilities Creator
 
Join Date: May 2012
Location: Imaginary Land
Age: 21
Gender: Female
Nature: Quiet
Posts: 75
I made a trainer card with all of the badges on one side (with name, picture, time, money, date started spots too).

It has a spot for all 5 region's 8 badges and I didn't see anywhere you couldn't do that but I just wanted to know if there's a special script or code I have to write or put somewhere to make it align properly. (so the first region shows up on the top row, in the box it's supposed to be in)

Also, I added a second side of the card with 49 boxes for the 47 Legendaries to go into. I wanted to know if they could be used like badges in the way that when you catch one it shows the picture on the trainer card. It seems like a similar script to the gym badges showing up but I don't know if it would be the same or if I'd have to do some advance tweaks.

If I can use the second side, how do you activate the flip control on the trainer card?

I have a picture on DeviantART but I can't post the url since I don't have enough posts on here.

EDIT: The pngs of the cards are saved to the specifications on the wiki and of the default trainer cards in my graphics folder.
__________________
Check out my other sites/profiles below, I have more hobbies than just pokemon
My official Website, my Etsy Shop (in progress), my Blog, my FB Page
My Website has cosplay, etsy shop, youtube channel, writing, game information, and more.
The blog is the place for where I update in more blog form about those topics and my personal life as well.
~~~
Others
Game Guides on Hubpages, DeviantART, Wattpad (Stories)
Reply With Quote
  #2    
Old May 12th, 2012 (06:33 PM).
Nickalooose Nickalooose is offline
--------------------
 
Join Date: Mar 2008
Gender: Female
Posts: 1,130
You could always put the images as attatchments... I myself can understand what ur trying to make... But we would need to see some sort of image to what you want... The flipping of the card is a slight edit to trainer card script probably an if statement if button right is pressed show one side if left show the other... As for badges position... Once a visual is given help would be easier but we can't just throw code at you without ore info
Reply With Quote
  #3    
Old May 12th, 2012 (06:59 PM).
Prof Oakley's Avatar
Prof Oakley Prof Oakley is offline
JourneyofPossibilities Creator
 
Join Date: May 2012
Location: Imaginary Land
Age: 21
Gender: Female
Nature: Quiet
Posts: 75
Its on my deviantart which has a link in my signature. I cant put a direct link because i dont have enough posts yet.

Where do i find the trainer card scrpt?
__________________
Check out my other sites/profiles below, I have more hobbies than just pokemon
My official Website, my Etsy Shop (in progress), my Blog, my FB Page
My Website has cosplay, etsy shop, youtube channel, writing, game information, and more.
The blog is the place for where I update in more blog form about those topics and my personal life as well.
~~~
Others
Game Guides on Hubpages, DeviantART, Wattpad (Stories)
Reply With Quote
  #4    
Old May 12th, 2012 (07:50 PM).
Cykes's Avatar
Cykes Cykes is offline
Gold Tier
 
Join Date: Dec 2008
Location: Canada, BC
Posts: 354
For convenience, here is the trainer card design Oakley is talking about.
Spoiler:


The trainer card script is called PokemonTrainerCard. It's one of the easier scripts to edit, but I'm still not exactly sure how you should go about making the second side with the legendaries. Sorry!
__________________
I have a Twitter.
Why not post your game on Relic Castle?
I'm sure you have a lovely game. <3
Reply With Quote
  #5    
Old May 13th, 2012 (06:24 AM).
FL's Avatar
FL FL is offline
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Posts: 1,409
Quote originally posted by Daedalus:
For convenience, here is the trainer card design Oakley is talking about.
Spoiler:


The trainer card script is called PokemonTrainerCard. It's one of the easier scripts to edit, but I'm still not exactly sure how you should go about making the second side with the legendaries. Sorry!
Even be the easier, if you don't know about script you can't do.

Example: '$Trainer.owned[PBSpecies::ARTICUNO]' returns true if the Articuno is caught. You can put an 'if' clause to display the icon.
__________________
Reply With Quote
  #6    
Old May 13th, 2012 (06:29 AM).
Prof Oakley's Avatar
Prof Oakley Prof Oakley is offline
JourneyofPossibilities Creator
 
Join Date: May 2012
Location: Imaginary Land
Age: 21
Gender: Female
Nature: Quiet
Posts: 75
So I could take the badge script:

if $Trainer.badges[i+region*8]
imagePositions.push(["Graphics/Pictures/badges",x,310,i*32,region*32,32,32])
end
x+=48
end

And add a script that says:

if $Trainer.owned[PBSpecies::ARTICUNO]
imagePositions.push(["Graphics/Pictures/legendaries",x,310,i*32,region*32,32,32])
end
x+=48
end
__________________
Check out my other sites/profiles below, I have more hobbies than just pokemon
My official Website, my Etsy Shop (in progress), my Blog, my FB Page
My Website has cosplay, etsy shop, youtube channel, writing, game information, and more.
The blog is the place for where I update in more blog form about those topics and my personal life as well.
~~~
Others
Game Guides on Hubpages, DeviantART, Wattpad (Stories)
Reply With Quote
  #7    
Old May 13th, 2012 (09:20 AM).
Nickalooose Nickalooose is offline
--------------------
 
Join Date: Mar 2008
Gender: Female
Posts: 1,130
That's pretty much how to do it $Trainer.owned[species number] works too, less writing that's all... But add ==true at the end so

$Trainer.owned[144]==true

This checks to see if species is owned and returns true if it is and false if it isn't.

But that's only if you want that certain species to show the whole side other wise you would need to find positions of all PNG files separately but use the same method.
Reply With Quote
  #8    
Old May 13th, 2012 (10:03 AM). Edited May 13th, 2012 by Prof Oakley.
Prof Oakley's Avatar
Prof Oakley Prof Oakley is offline
JourneyofPossibilities Creator
 
Join Date: May 2012
Location: Imaginary Land
Age: 21
Gender: Female
Nature: Quiet
Posts: 75
and the pictures will show up in the right boxes like with the badges?

EDIT: I put in the legendaries on the back of the card to give an idea of what it will look like (not the sprites I'm using but I haven't gotten that far yet).
Each Box is 62x39 pixels (while badges are 32x32 I believe).

So if I put in the script:

$Trainer.owned[151]==true

when they catch mew it would show up like when they get a badge?
or would I have to put a new picture with the legendaries lined up like the badges and put in some sort of grid/coordinates system?

Spoiler:
__________________
Check out my other sites/profiles below, I have more hobbies than just pokemon
My official Website, my Etsy Shop (in progress), my Blog, my FB Page
My Website has cosplay, etsy shop, youtube channel, writing, game information, and more.
The blog is the place for where I update in more blog form about those topics and my personal life as well.
~~~
Others
Game Guides on Hubpages, DeviantART, Wattpad (Stories)
Reply With Quote
  #9    
Old May 15th, 2012 (05:20 AM).
FL's Avatar
FL FL is offline
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Posts: 1,409
Quote originally posted by Nickalooose:
That's pretty much how to do it $Trainer.owned[species number] works too, less writing that's all... But add ==true at the end so

$Trainer.owned[144]==true

This checks to see if species is owned and returns true if it is and false if it isn't.

But that's only if you want that certain species to show the whole side other wise you would need to find positions of all PNG files separately but use the same method.
I prefer to use the internal names for better code maintenance. The "==true" for booleans isn't needed.
Quote originally posted by Prof Oakley:
and the pictures will show up in the right boxes like with the badges?

EDIT: I put in the legendaries on the back of the card to give an idea of what it will look like (not the sprites I'm using but I haven't gotten that far yet).
Each Box is 62x39 pixels (while badges are 32x32 I believe).

So if I put in the script:

$Trainer.owned[151]==true

when they catch mew it would show up like when they get a badge?
or would I have to put a new picture with the legendaries lined up like the badges and put in some sort of grid/coordinates system?

Spoiler:
You can do this putting separate pictures or one big and putting coordinates system.
The example of second way (note that I haven't tested):

Code:
 
#Put all legendary pokémon in order that it show in picture
legendary=[
  PBSpecies::ARTICUNO,PBSpecies::ZAPDOS,PBSpecies::MOLTRES,
  PBSpecies::MEWTWO,PBSpecies::MEW,PBSpecies::RAIKOU,
  PBSpecies::ENTEI,PBSpecies::SUICUNE,PBSpecies::LUGIA
]
basex=180 #Base x coordinate, change it to fill in card.
basey=180 #Base y coordinate, change it to fill in card.
imgwidth=62
imgheight=39
columnmax=7
#Base y coordinate
for i in 0...legendary.length
  if $Trainer.owned[legendary[i]]
   imagePositions[imagePositions.length]=[
      "Graphics/Pictures/legendaries",
          basex+imgwidth*(i%columnmax),basey+imgheight*(i/columnmax),
          imgwidth*(i%columnmax),imgheight*(i/columnmax),imgwidth,imgheight
   ]
  end
end
__________________
Reply With Quote
  #10    
Old May 15th, 2012 (07:10 AM).
Prof Oakley's Avatar
Prof Oakley Prof Oakley is offline
JourneyofPossibilities Creator
 
Join Date: May 2012
Location: Imaginary Land
Age: 21
Gender: Female
Nature: Quiet
Posts: 75
and I just add a new if $Trainer.owned... for each legendary pokemon? with ii, iii, iv, v, vi?
__________________
Check out my other sites/profiles below, I have more hobbies than just pokemon
My official Website, my Etsy Shop (in progress), my Blog, my FB Page
My Website has cosplay, etsy shop, youtube channel, writing, game information, and more.
The blog is the place for where I update in more blog form about those topics and my personal life as well.
~~~
Others
Game Guides on Hubpages, DeviantART, Wattpad (Stories)
Reply With Quote
  #11    
Old May 15th, 2012 (07:16 AM).
FL's Avatar
FL FL is offline
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Posts: 1,409
Quote originally posted by Prof Oakley:
and I just add a new if $Trainer.owned... for each legendary pokemon? with ii, iii, iv, v, vi?
No, this script already checks every one in "legendary" array. Just fill it with other legendaries.
__________________
Reply With Quote
  #12    
Old May 15th, 2012 (07:25 AM).
Prof Oakley's Avatar
Prof Oakley Prof Oakley is offline
JourneyofPossibilities Creator
 
Join Date: May 2012
Location: Imaginary Land
Age: 21
Gender: Female
Nature: Quiet
Posts: 75
oh alright, so I just add them in the PBSpecies list in the order they are in the picture.

Side question, is there a site or some program I can learn all this so I don't bug you guys all the time? even if it's just the basics so I learn things like array?
__________________
Check out my other sites/profiles below, I have more hobbies than just pokemon
My official Website, my Etsy Shop (in progress), my Blog, my FB Page
My Website has cosplay, etsy shop, youtube channel, writing, game information, and more.
The blog is the place for where I update in more blog form about those topics and my personal life as well.
~~~
Others
Game Guides on Hubpages, DeviantART, Wattpad (Stories)
Reply With Quote
  #13    
Old May 17th, 2012 (04:25 AM).
FL's Avatar
FL FL is offline
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Posts: 1,409
Quote originally posted by Prof Oakley:
oh alright, so I just add them in the PBSpecies list in the order they are in the picture.

Side question, is there a site or some program I can learn all this so I don't bug you guys all the time? even if it's just the basics so I learn things like array?
http://www.pokecommunity.com/showthread.php?t=279936
__________________
Reply With Quote
  #14    
Old May 27th, 2012 (03:05 PM).
Prof Oakley's Avatar
Prof Oakley Prof Oakley is offline
JourneyofPossibilities Creator
 
Join Date: May 2012
Location: Imaginary Land
Age: 21
Gender: Female
Nature: Quiet
Posts: 75
I should have asked this before but I didn't seem to think of it >< the basex and basey numbers are the pixels right? and they start at the upper right corner of the first pokemon's box?
__________________
Check out my other sites/profiles below, I have more hobbies than just pokemon
My official Website, my Etsy Shop (in progress), my Blog, my FB Page
My Website has cosplay, etsy shop, youtube channel, writing, game information, and more.
The blog is the place for where I update in more blog form about those topics and my personal life as well.
~~~
Others
Game Guides on Hubpages, DeviantART, Wattpad (Stories)
Reply With Quote
  #15    
Old May 27th, 2012 (03:18 PM).
Maruno's Avatar
Maruno Maruno is online now
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,058
Top left corner, but yes. The locations of things are always determined by their top left point, unless you do fancy things by changing picture origins (but that's not the case here).
__________________
Reply With Quote
Reply
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

Forum Jump


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