The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

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.


Advertise here

Reply
 
Thread Tools
  #1    
Old September 1st, 2012, 11:17 AM
Prof Oakley's Avatar
Prof Oakley
JourneyofPossibilities Creator
 
Join Date: May 2012
Location: Imaginary Land
Age: 21
Gender: Female
Nature: Quiet

Advertise here
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 pokemon fan game

Check out my other sites below, I have more hobbies than just pokemon
Reply With Quote
  #2    
Old September 2nd, 2012, 09:27 AM
FL's Avatar
FL
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
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
JourneyofPossibilities Creator
 
Join Date: May 2012
Location: Imaginary Land
Age: 21
Gender: Female
Nature: Quiet
They are showing up but now they are all in one row:

Spoiler:

__________________
Check out my pokemon fan game

Check out my other sites below, I have more hobbies than just pokemon
Reply With Quote
  #4    
Old September 3rd, 2012, 01:30 PM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
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.
__________________

Last edited by Maruno; September 3rd, 2012 at 01:49 PM. Reason: Fixed the code.
Reply With Quote
  #5    
Old September 3rd, 2012, 01:45 PM
Prof Oakley's Avatar
Prof Oakley
JourneyofPossibilities Creator
 
Join Date: May 2012
Location: Imaginary Land
Age: 21
Gender: Female
Nature: Quiet
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 pokemon fan game

Check out my other sites below, I have more hobbies than just pokemon

Last edited by Prof Oakley; September 3rd, 2012 at 01:57 PM. Reason: Figured it out
Reply With Quote
Reply
Quick Reply

Sponsored Links


Advertise here
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 06:18 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 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 - 2014 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.