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

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 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: 22
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
  #2    
Old September 2nd, 2012 (09:27 AM).
FL's Avatar
FL FL is offline
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Posts: 1,455
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 (01:23 PM).
Prof Oakley's Avatar
Prof Oakley Prof Oakley is offline
JourneyofPossibilities Creator
 
Join Date: May 2012
Location: Imaginary Land
Age: 22
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 (01:30 PM). Edited September 3rd, 2012 by Maruno.
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,260
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 (01: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: 22
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 UTC -8. The time now is 09:57 AM.