The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Create & Discover > Game Development > Pokémon Essentials
Reload this Page Badges on Trainer Card
Sign Up Rules/FAQ Daily Battle Blogs Mark Forums Read


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 September 1st, 2012 (11:17 AM).
Prof Oakley's Avatar
Prof Oakley Prof Oakley is offline
JourneyofPossibilities Creator
 
Join Date: May 2012
Location: Imaginary Land
Age: 23
Gender: Female
Nature: Quiet
Posts: 75
I've been searching and searching for how to have more than 8 badges shown on the trainer card but I can't find anything that doesn't include adding another region. I have one region in my game, but there are 40 "badges" so anything after the 8th badge doesn't show up on the trainer card since it's still the first region. How can I change the scripts to make it so all 40 badges show up on the trainer card while still having one region?
__________________
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

Relevant Advertising!

  #2    
Old September 2nd, 2012 (9:27 AM).
FL's Avatar
FL FL is offline
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Posts: 1,623
Untested, in Trainer Card script change
Code:
    region=pbGetCurrentRegion(0) # Get the current region
    imagePositions=[]
    for i in 0...8
      if $Trainer.badges[i+region*8]
        imagePositions.push(["Graphics/Pictures/badges",x,310,i*32,region*32,32,32])
      end
      x+=48
    end
to
Code:
    for region in 0...5 # Five rows
      imagePositions=[]
      for i in 0...8
        if $Trainer.badges[i+region*8]
          imagePositions.push( ["Graphics/Pictures/badges",x,310,i*32,region*32,32,32])
        end
        x+=48
      end
    end
You needs to change the '310' to a lower number like '182'.
__________________
Reply With Quote
  #3    
Old September 3rd, 2012 (1:23 PM).
Prof Oakley's Avatar
Prof Oakley Prof Oakley is offline
JourneyofPossibilities Creator
 
Join Date: May 2012
Location: Imaginary Land
Age: 23
Gender: Female
Nature: Quiet
Posts: 75
They are showing up but now they are all in one row:

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
  #4    
Old September 3rd, 2012 (1:30 PM). Edited September 3rd, 2012 by Maruno.
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Posts: 5,145
Code:
y=198
imagePositions=[]
for region in 0...5 # Five rows
  x=72
  for i in 0...8
    if $Trainer.badges[i+region*8]
      imagePositions.push( ["Graphics/Pictures/badges",x,y,i*32,region*32,32,32])
    end
    x+=48
  end
  y+=32
end
Change/add the red parts.
__________________
Reply With Quote
  #5    
Old September 3rd, 2012 (1:45 PM). Edited September 3rd, 2012 by Prof Oakley.
Prof Oakley's Avatar
Prof Oakley Prof Oakley is offline
JourneyofPossibilities Creator
 
Join Date: May 2012
Location: Imaginary Land
Age: 23
Gender: Female
Nature: Quiet
Posts: 75
The badges aren't showing up at all now.

EDIT: Nevermind I must've missed something the first few times I tried. It's working now. Thanks
__________________
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
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 GMT -8. The time now is 9:18 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2016 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2016.